view · edit · sidebar · attach · print · history

Index>

20150303-gtin2atc-with-package-size

Summary

  • Add package size info to gtin2atc
  • Add composition info for oddb2xml --calc

Commits

Index

Keep in Mind for work to do
  • Fix dojo error http://www.sitepen.com/blog/2012/10/31/debugging-dojo-common-error-messages/#forgot-dom-ready
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Import via data/medreg_companies.yaml

Add package size info to gtin2atc

After a long discussion with Zeno we decided to improve oddb2xml --calc. Tasks to work on were.

  • gtin2atc should emit selling units and dosis when oddb_calc.xml is present
  • gtin2atc should emit a file 'pharmacode_gtin_not_found.txt'

We must investigate why 200 entries are not emitted when using bundle exec bin/gtin2atc spec/data/bluecare.pharmacode

Pushed commits

Add composition info for oddb2xml --calc

  • Fix 7680555940018 "Nutriflex Lipid plus, Infusionsemulsion, 1250ml" which should have measure Infusionsemulsion. Done with commit Fix Infusionsemulsion for Nutriflex
  • For each measure, e.g. Tablette(n) add a tag compositions consiting of 1..n
    • composition_name
    • unit
    • quantity

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

view · edit · sidebar · attach · print · history
Page last modified on March 03, 2015, at 06:40 PM