view · edit · sidebar · attach · print · history

Index>

20150112-oddbdat-f-80-dat

Summary

  • oddb2xml -f 80 dat -a nonpharma
  • cleanup evidentia look-and-feel

Commits

Index

Keep in Mind for work to do in 2015
  • 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!
  • search for registration holder like mepha should work. bin/admin works for search_companies('Mepha')
  • info registration holder like mepha should should include fields like ydim-i. Mepha (No) and Novartis Ophthalmics AG (Yes, but fields are empty)
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Display 10 recalls not only those from this month
  • Import via data/medreg_companies.yaml

---

The CSS file for evidentia is http://swiss.mailr.se/css/oddb.css. Must remove lnf for mymedi, mymigel, provita, carenaschweiz and konsuminfo. Done with commit Use correct css for evidentia. Remove unused lnf

Must remove some code which was only used by mymedi. See commit Removed unused code for mymedi

Removed display csv_export with commit Disable csv_export for evidentia

Don't display a select list if only one search_type is enabled. See commit Simplify if only one search_type

One should never, ever push a change before runnning the specs. I did not follow this rule and got punished by real life. There was nil access in my simple change. Fixed with commit Avoid nil access

oddb2xml -f 80 dat -a nonpharma should work

Set set public price for all non-Pharma and non sl prodcuts to ZurRose public price + 80%. I must first test whether optparse allows me to add a optional parameter (80) and a required parameter (dat).

Moved parsing the options into a new class under lib/options.rb and added spec tests for all. Added tests for all options. Cleaned up some unpure code, e.g. opts[:nonpharma] = :true, which should be opts[:nonpharma] = true. See Moved option parsing to separate file. Changed all tests to use the new Options class instead of passing an options hash. See Tests use now new Options class

Found an error in the existing code. When generating *.dat files, many articles have a price of 0 even when we have a ZurRose price and the option -p zurrose is given.

Fixed the problem with commit Added option -r x to increase prices by x percent when generating .dat

Updated history and version with commit Bumped version to 1.8.10.

Running tests. When comparing the output I see, that some prices are not outputted correctly, e.g oddb_with_migel.dat has now 1120020209ERYTHROCIN i.v. Trockensub 1000 mg Ampulle 1 Stk 37616010.03000000000076802025804752 instead of 1120020209ERYTHROCIN i.v. Trockensub 1000 mg Ampulle 1 Stk 0037616010003000000000076802025804752

Fixed this problem with commit Fixed output for (increased) prices in oddb.dat

After discussing with Zeno we decided to simplify the options. Pushed commit

Now adding a check whether running oddb2xml -a nonpharma -I 80 is really increasing the prices, too.

Zeno tested my changes and remarked, that I had completly misunderstood his intentions. I have to add 80% to the ext_factory and not the public price. Changing tests and implementation. Fixed with commit Fixed prices for doctor. Added more tests

Changed test_options.rb and letting it run. This will take some time. Will continue tomorrow.

Tests looked good. Pushed Corrected test_options.rb

view · edit · sidebar · attach · print · history
Page last modified on January 13, 2015, at 08:25 AM