miracum/ahd2fhir

Medication.ingredient.itemCodeableConcept.coding.code is unset

Opened this issue · 3 comments

chgl commented

System and display are set, but it seems like code is missing:

https://github.com/miracum/ahd2fhir/blob/master/ahd2fhir/mappers/ahd_to_medication.py#L57

@medtechst Although system and display is set, as far as i understood, system is wrong (ATC). And we maybe need mapping to ingredients - which we don't have?!?

According to the core data set module for medication (https://www.medizininformatik-initiative.de/Kerndatensatz/Modul_Medikation/Medication-duplicate-2.html), ingredients should primarily be coded with codes from ASK, UNII, CAS or SNOMED. And ingredient is 1...* .
The ATC code should only be found at Medication.code.coding.

To still be able to create a valid Medication resource our suggestion would be to write a Data Absent Reason in the ingredients element.
An alternative would be to not create a Medication resource at all and to fill only in MedicationStatement.medication a CodableConcept with the ATC code.