FreeHealth / freehealth

Free and open source Electronic Health Record
https://freehealth.io
Other
45 stars 16 forks source link

FreeRx: INN / drug mismatch #87

Open jeromecc opened 7 years ago

jeromecc commented 7 years ago

Possible regressions from FMF 0.9.0 -> FMF 0.9.8 / FHIO 0.9.9

Caused by update of database scheme (<= 0.8.4 not compatible with recent versions)?

jeromecc commented 7 years ago

Propacetamol (ATC N02BE05) and Paracetamol (N02BE01) are members of the same ATC group: N02BE Anilides FreeRx code needs to be updated to use this way of retrieving INN from the database:

  1. DID aka Drug ID) -> MID aka Molecule ID (t4 COMPO): SELECT `f3` FROM `t4` WHERE `f2` = "DID";
    1. MID -> INN (t3 MOLS): SELECT `f3` FROM `t3` WHERE `f1` = "MID";