After a long discussion with Zeno we decided to improve oddb2xml --calc. Tasks to work on were.
We must investigate why 200 entries are not emitted when using bundle exec bin/gtin2atc spec/data/bluecare.pharmacode
Pushed commits
E.g. 7680384170969, "Tolvon 30 mg, Filmtabletten", should contain one composition name="mianserini hydrochloridum", qty=30 unit=mg.
Later on we must be able to compare with the corresponding DDD (from atc.csv) "N06AX03|Mianserin|60 mg O|".
Looking in oddb.org's src/plugin/swissmedic to try to understand how Hannes extracted the active agents. He uses the contents of column O 'Wirkstoff' to extract its name.
Trying to think how we should handle IKSNR 56089 (Nutriflex Lipid plus ohne Elektrolyte, Infusionsemulsion 1250ml) , Seq 1, Package 2 which has Packungsgrösse of '5 x 1250' and Einheit of 'ml'. And the composition is a loarge field, namely
I) Glucoselösung: glucosum anhydricum 150 g ut glucosum monohydricum, acidum citricum anhydricum, aqua ad iniectabilia q.s. ad solutionem pro 500 ml. II) Fettemulsion: sojae oleum 25 g, triglycerida saturata media 25 g, lecithinum ex ovo, glycerolum, natrii oleas, aqua q.s. ad emulsionem. III) Aminosäurenlösung: isoleucinum 2.82 g, leucinum 3.76 g, lysinum anhydricum 2.73 g ut lysinum monohydricum, methioninum 2.35 g, phenylalaninum 4.21 g, threoninum 2.18 g, tryptophanum 0.68 g, valinum 3.12 g, argininum 3.24 g, histidinum 1.50 g, alaninum 5.82 g, acidum asparticum 1.80 g, acidum glutamicum 4.21 g, glycinum 1.98 g, prolinum 4.08 g, serinum 3.60 g, acidum citricum anhydricum, aqua ad iniectabilia q.s. ad solutionem pro 500 ml. . I) et II) et III) corresp.: aminoacida 48 g/l, carbohydrata 150 g/l, materia crassa 50 g/l, in emulsione recenter mixta 1250 ml. Corresp. 5300 kJ.
Decided to make unit-test pass.
Pushed commit Emit compositions for --calc
Must output qty as float, not integer. Fixed with commit Emit qty as floats