view · edit · sidebar · attach · print · history

Index>

20140813-fix-prescription-errors

Summary

  • Fix some errors in prescription

Commits

Index

Keep in Mind
  • 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!
  • One unit-test for searchbar fails and might be a clue why searching does not work correctly.
  • Added two skip in test/test_plugin/rss.rb. Why does the mocking not work there anymore?
  • Make ext/swissindex/test/test_swissindex.rb and skipping tests in migel-gem pass.

---

Fix some errors in prescription

Should fix the following errors in prescription:

  • Add two empty lines for the signature. Fixed with commit Added two empty lines for the signature
  • ZSR should be preserved when logged in
  • Watir-Test mus work when oddb.org was just started
  • Replacing a correct ZSR by an empty value must delete ZSR-Info
  • No Watir-test may fail

To add the ZSR to the preferences I need a view for entering the ZSR and getting ZSR_json. Refactoring view/drugs/prescription to extract zsr and moving the old zsr -> zsr_json

Added tests test/test_view/user/preferences.rb and spec/preferences_spec.rb. Looked closer at coockie_input for :search_type and found the pattern I was looking for to get/save the ZSR. Cookie got only stored when I added :zsr_id to the STRINGS in src/validator.rb.

Now the watir tests for the preferences work, but show that the instant search is not preserved always. Pushing commit Added zsr to user/preferences

Some minor refactoring in session.rb drugsFromUrl -> choosen_drugs and using persistent_user_input(:drugs) and URL to select drugs, to be able to deal with stuff like atc_code, iksnr for home_interactions. Still have three failing unit tests I will deal with next week:

  • ./spec/fachinfo_search_spec.rb:76 # ch.oddb.org should show the chapter unwanted effects for Schwindel and show 61374 Quetiapin Sandoz:
  • ./spec/rezept_and_instantsearch_spec.rb:204 # ch.oddb.org should not throw a an error with a problematic combination of drugs
  • ./spec/rezept_and_instantsearch_spec.rb:398 # ch.oddb.org should be possible to print a presciption with 10 drugs

Pushed commits Fix interaction chooser et al. and Fix home_interactions for iksnr and atc

With commit Fix nil pointer. Cleanup debugging puts one of the three problems seems to go away.

Merging all changes into the master branch.

view · edit · sidebar · attach · print · history
Page last modified on August 13, 2014, at 07:21 PM