view · edit · sidebar · attach · print · history

Index>

20140212-cleanup-interactions

Summary

  • Fix problem missing SL Flag at Xeljanz with correct sequence 01. Missing prices.
  • Fix problem that there are sequences '00' for products that have other sequences, too.
  • Cleanup interactions
  • Add links on ch.oddb.org homepage

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

---

Add links on ch.oddb.org homepage

The following links must be added to the ch.oddb.org Home below the Android link

Updated also readme for watir tests. Pushed the following commits

Remaining problem is that the links legal and donate are no longer centered. Found the reason: constants in components for paypal and legal_note were moved by the inseration of the new links and I forgot to change them in other places of the code. Fixed with commit Fixed centering of legal_note and paypal

Today I have a very bad day and my eyes don't catch errors! Therefore I needed yet another patch Fix nr2 for centering of legal_note and paypal. But not at least the legal_note and donate are correctly center. .

Fix problem missing SL Flag at Xeljanz with correct sequence 01. Missing prices

Xeljanz has IKSNR 62630. And has three entries under http://ch.oddb.org/de/gcc/search/zone/drugs/search_query/Xeljanz/search_type/st_oddb#best_result. One with prices and two without prices.

On my server I only have sequences 01 and 02 (both without prices).

  • Finding all products with sequence '00'
@res = registrations.find_all{|id, reg| reg.sequences and reg.sequences.first and reg.sequences.first[0].eql?('00') }; @res.size
-> 33
@res[1]
-> ["00041", #<ODBA::Stub:70132263563860#709533 @odba_class= @odba_container=70132265028620#22>]
  • Finding all products with sequence '00' and having other sequences, too
@res2 = registrations.find_all{|id, reg| reg.sequences and reg.sequences.first and reg.sequences.first[0].eql?('00') and reg.sequences.size > 1}; @res2.size
-> 2
@res2[0]
-> ["62781", #<ODBA::Stub:70132253953960#31074562 @odba_class= @odba_container=70132265028620#22>]
@res2[1]
-> ["62969", #<ODBA::Stub:70132254882420#31063552 @odba_class= @odba_container=70132265028620#22>]
  • 62781 has sequence 00 with Tafinlar® Hartkapseln (50 mg)
  • 62781 has sequence 01 with Tafinlar (75 mg)
  • 62969 has sequence 00 Relvar® Ellipta® (Fluticasoni Furoas 92 mcg, Vilanterolum 22 mcg)
  • 62969 has sequence 01 Relvar Ellipta

Now the question is, why were this errors not corrected when running the last swissmedic import?

  • Found no clues in the following log files
    • log/oddb/debug/2014/01.log
    • log/oddb/debug/2014/02.log
    • log/oddb/debug/swissmedic.rb/2014/01.log
    • log/oddb/debug/swissmedic.rb/2014/02.log

Next steps: reload recent dump of thinpower, add more debug info for swissmedic/bag import. Run swissmedic (after forcing latest) and bag import. Diff for debugging price info is

index fd7b063..9f4c6c2 100644
--- a/src/plugin/bsv_xml.rb
+++ b/src/plugin/bsv_xml.rb
@@ -314,6 +314,11 @@ module ODDB
       def tag_end name
         case name
         when 'Pack'
+          unless @pack.nil?
+            msg = " #{@iksnr} #{@ikscd} price_public #{@pack.price_public.inspect} -> #{@data[:price_public].inspect}"
+            $stdout.puts msg; $stdout.flush
+            LogFile.append('oddb/debug', msg)
+          end
           if @pack.nil? && @completed_registrations[@iksnr] && !@out_of_trade
             @deferred_packages.push({
               :ikscd    => @ikscd,

Cleanup interactions

Todo:

  • Replace "Medikamente wählen und dann die Interaktionen in 3D anzeigen" by "Interaktionen zur Verfügung gestellt durch Public Domain Daten von EPha.ch"
  • Add english and french translation for these changes
  1. Link epha with http://epha.ch/de/community

Remarked that the link to http://epha.ch/de/community created an error message.

Sent an email to support@epha.ch.

Made the changes. Changed page looks like Pushed commit https://github.com/ngiger/oddb.org/commit/bf575e845dfcc3df36e8a611304adeb4327f829e Added link to epha.ch/community.

Must also remove button with link to "Wechselwirkungen auf Epha 3D". Done with commits Remove epha 3d link and Corrected interaction tests. Added test for absence of 3D

view · edit · sidebar · attach · print · history
Page last modified on February 12, 2014, at 08:25 PM