view · edit · sidebar · attach · print · history

20110503-change-sequence-name_base-mapping_pharmacodes

<< | Index | >>


  1. Change name_base of all the sequences
  2. Mapping pharmacodes

Goal/Estimate/Evaluation
  • Mapping pharmacodes / 90% / 80%
Milestones
  • Change name base of all the sequences
  • Mapping pharmacodes
Summary
Commits
Keep in Mind
  • Update testcases
    1. fix src/state/drugs/compare.rb (coverage: 64.81%) Test-cases are not yet 100% covered

Change name_base of all the sequences

Problem

  • Name base of sequence includes the galenic form name with comma
  • Until the last month, there was no problem.
  • The cause may be in some parts that we updated in April

Solution

  • Rewrite all the name_base of sequences by bin/admin
 ch.oddb> sequences.each {|seq| self.update(seq.pointer, {:name_base => seq.name_base.split(/,/)[0]})}
 ch.oddb> Updater.new(self).update_swissmedic

Mapping pharmacodes

ToDo

  1. Get migel position number
  2. Get product and company names from the other site if there is not the data corresponding to the pharmacode in swissindex
  3. Command line option
  4. (Testcase)
  5. A case of timeout error

Error

/usr/lib64/ruby/1.8/timeout.rb:60:in `rbuf_fill': execution expired (Timeout::Error)
        from /usr/lib64/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
        from /usr/lib64/ruby/1.8/net/protocol.rb:116:in `readuntil'
        from /usr/lib64/ruby/1.8/net/protocol.rb:126:in `readline'
        from /usr/lib64/ruby/1.8/net/http.rb:2020:in `read_status_line'
        from /usr/lib64/ruby/1.8/net/http.rb:2009:in `read_new'
        from /usr/lib64/ruby/1.8/net/http.rb:1050:in `old_request'
        from /usr/lib64/ruby/gems/1.8/gems/ntlm-http-0.1.1/lib/net/ntlm_http.rb:821:in `request'
        from /usr/lib64/ruby/gems/1.8/gems/httpi-0.9.0/lib/httpi/adapter/net_http.rb:32:in `post'
         ... 13 levels...
        from swissindex.rb:109:in `each'
        from swissindex.rb:109
        from swissindex.rb:106:in `open'
        from swissindex.rb:106

view · edit · sidebar · attach · print · history
Page last modified on May 04, 2011, at 07:31 AM