view · edit · sidebar · attach · print · history

Index>

20140312-enable-edit-swissmedic-category

Summary

  • Enable editing of swissmedic category
  • since last changes queries by the genericacc don't work anymore

Commits

Index

Keep in Mind
  • Search nach Anwendung (indications), z.B. Konjunktivitis, does not report all occurrences in the section "Anwendung" of Fachinfo. Probably index is corrupted or not set up correctly.
  • Error: Patents with could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
  • vagrant-oddb.org: cleanup installation for yus with ruby 1.8, logrotate.conf and local vhosts for tests

---

since last changes queries by the genericacc don't work anymore

Zeno remarked that my last commits broke the json requests from genericacc.

Looking around genericacc/oddb.org I found

  • No tests (only an empty tests) in genericacc and oddb.org
  • No documentation for how the json really works
  • In https://github.com/zdavatz/generikacc/blob/master/generika/Product.m one finds a comparision with 7680 which will mean, that the generica in any case will not find the newly imported pseudo-fi e.g. Sinovial
  • Must have a closer look at the changes made by in src/model/ean13.rb (none were done).

Fixed with commit Rollback part of change in api_search.rb

Enable editing of swissmedic category

E.g. http://oddb-ci2.dyndns.org/de/gcc/drug/reg/54642/seq/03/pack/059 One should be able to edit the value 'B' between Stärke and SL Eintrag. Analysing src/views/admin/package.rb and comparing it with fields like photo_link.

Fixed with commit admin/package.rb allow edit of ikscat

Looks like

Zeno remarked that we should allow only input on single line. Fixed with patch admin/package: input ikscat on single line

Must be able to add several medicals to a given prescription

Added a puts in src/state/global to track calls to Rezept with ean. Adding a second medicament did not lead to display anything there.

Got when clicking on search the following error

ODDB::View::SponsorHead::COMPONENTS[[1, 0, 1]] in create(welcome)  
ODDB::View::Drugs::Result::COMPONENTS[[0, 1]] in create(head)
error in SBSM::Session#http_headers: /de/gcc/search/zone/drugs/search_query/Xeljanz
RangeError
0x003fb4fcf15c98 is not id value

Found out that also ajax_add_drugs in the src/state/drugs/prescription.rb did not receive any message. Did my work with the interaction_chooser break this functionality? Must add debug output to src/view/searchbar.rb where the field prescription_searchbar is constructed (as looking at the HTML source code called when opening Rezept

Openening the webtools and beginning to debug the Rezept:

[{"search_query":"7680612120056","drug":"xelevia 100 mg, 28 tablette(n), a. menarini ag"},
{"search_query":"7680612120063","drug":"xelevia 100 mg, 98 tablette(n), a. menarini ag"},
{"search_query":"7680612120018","drug":"xelevia 25 mg, 28 tablette(n), a. menarini ag"},
{"search_query":"7680612120025","drug":"xelevia 25 mg, 98 tablette(n), a. menarini ag"},
{"search_query":"7680612120032","drug":"xelevia 50 mg, 28 tablette(n), a. menarini ag"},
{"search_query":"7680612120049","drug":"xelevia 50 mg, 98 tablette(n), a. menarini ag"},
{"search_query":"7680626300048","drug":"xeljanz 10 mg, 56 tablette(n), pfizer ag"},
{"search_query":"7680626300017","drug":"xeljanz, 56, pfizer ag"},
{"search_query":"7680626300017","drug":"xeljanz 5 mg, 56 tablette(n), pfizer ag"},
{"search_query":"7680546570132","drug":"xeloda 150 mg, 60 tablette(n), roche pharma (schweiz) ag"},
{"search_query":"7680546570217","drug":"xeloda 500 mg, 120 tablette(n), roche pharma (schweiz) ag"}]

galenic_form does not show up

src/view/drugs/package.rb find that the sequence 09 of sinovial has an empty division

    if seq = @model.sequence and div = seq.division and !div.empty?

The comes as we did not create an composition when we added a part to the package. Package and sequence give different values for compositions.empty? in bin/admin

registration('1229109224').sequence('09').compositions.empty?
-> false
registration('1229109224').sequence('09').package('224').compositions.empty?
-> true

What is the difference between compositions for a package and for a sequence?

view · edit · sidebar · attach · print · history
Page last modified on March 13, 2014, at 10:01 AM