We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2d4290 commit a5b98a1Copy full SHA for a5b98a1
1 file changed
src/processing/drug_normalizer.py
@@ -75,12 +75,11 @@ def normalize_drugs(df: pd.DataFrame) -> pd.DataFrame:
75
for row in df.to_dict(orient="records"):
76
77
base_drugs = split_combination_drug(row["generic_name"])
78
-
79
dosage_forms = extract_dosage_forms(row["dosage"])
80
81
normalized_rows.append(
82
{
83
- **row._asdict(),
+ **row,
84
"base_drugs": base_drugs,
85
"combination": len(base_drugs) > 1,
86
"dosage_forms": dosage_forms,
0 commit comments