view · edit · sidebar · attach · print · history

Index>

20150105-add-e-option-to-oddb2xml

Summary

  • Add option -e x to add x percent to public prices for non SL products
  • Display 10 recalls not only those from this month
  • create eventia look and feel based on "atupri/atupri-web"

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!
  • medreg gem should skip adress lines consisting of a single '.'. e.g. medregom displays for 7601000264015 and address
  • medreg gem should generate csv files, too. If more than 1 address/experiences, etc per doctor, then generate additional lines
  • 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

---

create eventia look and feel based on "atupri/atupri-web"

Create and adapt evidentia lookandfeel using URL evidentia.oddb.org. Must adapt Apache config, too.

Changed all src/test files to match the new name. Changed /etc/apache2/vhosts.d/oddb.conf and added evidentia.oddb-ci2.dyndns.org to /etc/hosts (as 127.0.0.1). Now chromium starts up.

Will continue tomorrow.

Display 10 recalls not only those from this month

Investigating the problem.

Add option -e x to add x percent to public prices for non SL products

I muss add an option "-e" to oddb2xml. It has a parameter x (a positive integer) indicating to add x percent to all zu public prices (not in SL). E.g public price = Zur Rose preis + 80%.

Pushed commit Added ruby 2.2 for travis-ci. Tried to make it pass under travis with commit Bumped version to 1.8.9 and Tried to fix travis error. Pushed another fix because of the safe_yaml problem Updated Gemfile.lock because of safe_yaml errors on travis

Had to replace in the spec tests should be_true by should eq true to adapt to the new rspec behaviour. Done with commmit Fixed rspec errors. Now travis-ci passes finally its tests.

Currently we have -e --extended pharma, non-pharma plus prices and non-pharma from zurrose. Products without EAN-Code will also be listed.. Therefore we must add an optional parameter.

Added a (failing) test for -e 80. Must improve the test to add an item with an SL-Entry and one without. Must find out how to distinguish sl_entries when building the article.xml. Finally it is quite easy, as sl-entries do not set the field zurrosepub but only ppub.

Now the new spec tests passes. Running rake test to verify the integrity.

Results looked okay. Pushed commit Added option -e x to increase ZurRosePub

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