view · edit · sidebar · attach · print · history

20130308-debug-extport-fachinfo-yaml

<< | Index | >>


Summary

  • Update swissmedicinfo updater.
  • Debug Error on yaml exporter and EBook generator.

Commit

Index


Debug export fachinfo yaml

Ebook generator of fachinfo_yaml

NoMethodError: undefined method `force_encoding' for
#<EBPS::Text::Chapter:0x000000014a3ba8>
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/fachinfo_yaml.rb:142:in
`encode'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/fachinfo_yaml.rb:133:in
`assemble_document'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/fachinfo_yaml.rb:38:in
`block in <module:EBPS>'
/usr/lib64/ruby19/1.9.1/yaml.rb:217:in `call'

EBPS conversion/fachinfo_yaml.rb

def self.assemble_document chapters, yaml_value
   ...
   doc.title = Conversion::FachinfoYaml.encode(yaml_value['name'])
   ...
end

def self.encode txt 
   txt.force_encoding 'UTF-8'
   txt
end
[1] 1.9.3-p194(EBPS::Conversion::FachinfoYaml)> txt.class
=> EBPS::Text::Chapter
[2] 1.9.3-p194(EBPS::Conversion::FachinfoYaml)> txt.to_s
=> "Docetaxel Fresenius i.v."
commit

Link


Update swissmedicinfo job, report

Update swissmedicinfo DE/FR updater, report.

Updated report sample to have FR name.

New/Updates FI/PI from swissmedicinfo.ch
  NEW : Fachinfo - DE - LEV DESITIN® Infusionskonzentrat - [62616]
  NEW : Fachinfo - FR - LEV DESITIN® solution concentrée pour perfusion - [62616]
Skipped FI/PI form swissmedicinfo.ch
  CHANGE : Fachinfo - DE - Not Found xxx
  CHANGE : Fachinfo - FR - Not Found xxx

FR (LEV DESITIN® solution concentrée pour perfusion)

commit

Error in fachinfo RSS generator

in postprocess after job.

Plugin: ODDB::TextInfoPlugin
Error: TypeError
Message: can't convert String into Integer
Backtrace:
/var/www/oddb.org/src/util/language.rb:30:in `[]'
/var/www/oddb.org/src/util/language.rb:30:in `description'
/var/www/oddb.org/src/util/language.rb:44:in `method_missing'
/var/www/oddb.org/src/view/rss/fachinfo.rb:52:in `block (2 levels) in to_html'
/var/www/oddb.org/src/view/rss/fachinfo.rb:50:in `each'
/var/www/oddb.org/src/view/rss/fachinfo.rb:50:in `block in to_html'
commit

Debug-textinfo-news2

Fachinfo parser hat problem for changed PI of compendium.ch

Unknown Iks-Numbers: 10
AZILECT Tabl 1 mg  (13112)
...
...

These unknown iksnrs come from unexpected text.

13112012FI
    when nil # special chapers without heading
      case chapter.to_s
      when /^\d{5}/u
        @iksnrs = chapter
      when /\b\d{4}\b/u
        @date = chapter
      end
    ...
commit
view · edit · sidebar · attach · print · history
Page last modified on March 08, 2013, at 11:13 AM