view · edit · sidebar · attach · print · history

Index>

20150421-oddb2xml-with-parslet

Summary

  • Switch parsing composition for --calc in oddb2xml to use parslet

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
  • Fix problem with radioactivatum 99m-technetio when parsing Wirkstoffe

Switch parsing composition for --calc in oddb2xml to use parslet

Stuff to do today includes:

  • Adapt parsing packages-XLSX to use the new library
  • Fix up/lowercase issues for substance names
  • Fix 20 failing unit tests
  • Fix the 380 lines that cannot be parsed
  • Fix various issues in code and spec tests marked TODO
  • document design and decisions (2 or 3 pages in textile format, giving IKSNR/names for various examples)
    • 'ut' -> salts
    • howto handle entries like ratio
    • what is the meaning of DER?
    • shall excipiens and friends be a normal substance? But their quantity "pro" is used for various measures?
    • Join the various lines to form correct parts for a composition (using the indexes, Solvens, etc)
    • Howto handle stuff like Praeparatio cryodesiccata
  • Selling units for 7680611860045 should be 5 and not 12500
  • Substance name 7680656280013 for is Vipera Aspis > 1000 Ld50 Mus and must be corrected to Vipera Aspis > 1000 Ld50 Mus
  • IKNSR 7680616310026 does not creat a corret label A

Moviprep as as first line A): macrogolum 3350 100 g, natrii sulfas anhydricus 7.5 g, natrii chloridum 2.69 g, kalii chloridum 1.02 g, aspartamum, aromatica, excipiens ad pulverem pro charta.. It will be hard to distingish that 3350 belongs to the name and not to a dose.

Pushed commit Handle ratio: in oddb2xml --calc

Tried various stuff to handle name like . As I spent over 2 hours without finding a real solution, added just a failing spec and a hint on howto solve the problem with commit Unable to handle correctly names like 'Macrogolum 3500'

Pushed

view · edit · sidebar · attach · print · history
Page last modified on April 21, 2015, at 07:55 PM