fix: resolve #403/#404 missing fields in medical order group application and editing
#403 - Removed 'dose: undefined' override in setValue() that was clearing dose values from group packages when applied to patients #404 - Added explicit column aliases in OrdersGroupPackageAppMapper.xml to ensure proper field mapping for dose, rate_code, method_code, dose_quantity, dispense_per_duration, and therapy_enum Both fixes address the root cause where medication detail fields (dose, administration route, frequency, duration) were being lost during group package application and editing.
This commit is contained in:
@@ -42,12 +42,13 @@
|
||||
togpd.quantity,
|
||||
togpd.unit_code,
|
||||
sdd.dict_label AS unit_code_name,
|
||||
togpd.dose,
|
||||
togpd.rate_code,
|
||||
togpd.method_code,
|
||||
togpd.dose_quantity,
|
||||
togpd.dose AS dose,
|
||||
togpd.rate_code AS rate_code,
|
||||
togpd.method_code AS method_code,
|
||||
togpd.dose_quantity AS dose_quantity,
|
||||
togpd.group_id,
|
||||
togpd.dispense_per_duration,
|
||||
togpd.therapy_enum AS therapy_enum,
|
||||
togpd.dispense_per_duration AS dispense_per_duration,
|
||||
CASE
|
||||
WHEN togpd.order_definition_table = 'med_medication_definition' THEN
|
||||
med.NAME
|
||||
|
||||
Reference in New Issue
Block a user