could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
---
Zeno remarked that my last commits broke the json requests from genericacc.
Looking around genericacc/oddb.org I found
Fixed with commit Rollback part of change in api_search.rb
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
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"}]
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?