view · edit · sidebar · attach · print · history

Index>

20150408-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

Adding a spec-test and alternate implementation of lib/oddb2xml/parse_compositions.rb as lib/oddb2xml/parslet_compositions.rb using Parslet. Tasks to handle are:

  • Labels with descriptions, e.g I) DTPa-IPV-Komponente (Suspension):
  • Preprations, e.g. Praeparatio cryodesiccata: virus rabiei inactivatum
  • Substances:
    • with or without a dose
    • with or without a correspnding chemical substance (and optional dose)
  • handle coresp.
  • handle residui:
  • handle stuff like pro/et/ex

probably all combinations of above is found once or more.

Added the mimimal infrastructure to parse '2 mg' via commit Added new minimal ParseDose using parslet. Next goal is to support float and various other units for dose.

Pushed commits

Now we want to able to split a simple line, eg. pyrazinamidum 500 mg, excipiens pro compresso.. Or may be we start parsing a single substance, eg paracetamolum 500 mg or E 320.

Pushed Parsing simple substances and Parsing simple compositions

view · edit · sidebar · attach · print · history
Page last modified on April 08, 2015, at 05:42 PM