view · edit · sidebar · attach · print · history

Index>

20140714-print-prescription

Summary

  • Printing a prescription must work. Also must add a watir test for it

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.

---

Printing a prescription must work. Also must add a watir test for it

Zeno wants to add

  • a possibility to create a QR-code. E.g. display it on the right side, where a patient could scan it. Or add a button "Create QR-Code"
  • Remove fields:
    • Einmaliges Rezept
    • Dauerrezept Wiederholungen
    • Dauerrezpt: Gültigkeit in Monaten

(My question is: Remove it from the print page or in the edit page, too)

Having a look at gem rqrcode from http://whomwah.github.io/rqrcode/ which has over 250K installations.

But first pushed commits to remove details. Had to change a few watir tests because of changed description from epha.

Improving the the watir tests for printing a prescription, as neither the first nor the family name showed up in the printed output.

Now they appear, but I remarked that my watir test did not work correctly. As printing opens a new tab, I must tell watir to switch to this new windows. Therefore add the line @browser.windows.last.use if @browser.windows.size != oldWindowsSize.

Must still fix the problem, why the prescription comment is not shown in the print dialog. Analysing the POST-data via HttpFox. This is okay and they appear like this prescription_comment[0] Eins. Fixed this problem with commit Fix printing prescription.

Now must correct wrong indent of comment field when displaying prescription. Must also fix:

  • ordering of fields when printing
  • printing iterates over n+1 drugs instead of n drugs.

Simplified the layout in view/prescription. Now the comment is correctly aligned, but the interactions don't show up as they should. Fixed this problem. Now must correct printing the descriptions. Fixed this problem, too. Running rspec spec (Watir-Tests) before pushing commit. I see an error when running the spec for medical_products, but doing a slightly different manual check works. Therefore pushing commit Fixing comment in prescription and printing

view · edit · sidebar · attach · print · history
Page last modified on July 14, 2014, at 07:11 PM