view · edit · sidebar · attach · print · history

Index>

20150617-oddb2xml-with-vcr

Summary

  • Use vcr with oddb2xml

Commits

(VCR branch)

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
  • Fix galenic_forms when parsing swissmedic.xlsx
  • Cleanup generic_type. Replace it everywhere by sl_generic_type and adapt code accordingly.
  • Get updated ATC-codes from EPha for oddb.org, too.
  • Display new fields (LABEL, MORE_INFO, CORRESP) for compositions in oddb.org.
  • Use refdatabase for oddb.org, too.

Use vcr with oddb2xml

Must fix builder_spec.rb for the changed items. Must find new correct values and item to check reseller, price_public for SL and non SL product. Putting these info into a global structure for easier maintenance.

This took me way to long, but finally paid off and should be cleaner. Builder_spec.rb lost over 100 lines. Using many more global variables to use the common parts.

Pushed commit Reorganized spec tests. Using GTINS_DRUGS/MEDREG for items to test

Fixed an error in calc_spec (because of missing gtins) with commit Fixed calc_spec

Fixed errors introduced with last commit by Fixed last failing unit specs

view · edit · sidebar · attach · print · history
Page last modified on June 17, 2015, at 11:15 PM