view · edit · sidebar · attach · print · history

Index>

20140723-print-prescription-with-qrcode

Summary

  • add a qrinfo file when printing a 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.

---

First fixed unit test for printtemplate, then committed it. Documented it in yesterdays blog.

must print headers for interactions and comment in bold and italic

Fixed with commit Print description with italics in headers for comments and interactions

Test combining ruby and javascript to generate a qrcode-png

Decided we Zeno to implement a spike on a separate branch ob oddb.org to solve interaction between javascript and ruby code using the following sequence

  • javascript make AJAX POST request to Ruby
  • Ruby generates image and
  • ruby replies with a JSON object containing a URL to the QR image
  • JS displays img

add a qrinfo file when printing a prescription

Continue work of last week. Add 2src/model/prescription.rb and test/test_model/prescription.rb. Creating unit tests for creating, to_s, valid?, qr_code. Pushed commit Print description with italics in headers for comments and interactions

UnitTests are able to calculate the correct checksum for the example now. But the definition is missing clarity, as e.g it demands to create the checksum on ASCII-values which is just not defined for UTF-8 values like 'ü', not to mention that we could have chinese names on a prescription too.

Tried gem rqrcode_png to create a png. But this did not work. Now trying pngqr which seems to work fine.

view · edit · sidebar · attach · print · history
Page last modified on July 23, 2014, at 04:52 PM