view · edit · sidebar · attach · print · history

20120612-import-patinfo-only-setup-de-oddb-org

<< | Index | >>


Summary

  • Created update_patinfo_only job.
  • Added Swissmedic-Nr chapter into Patinfo
  • Debuged fiparsed, Patinfo importer
  • Started setup de.oddb.org

Commits

Index


Update import_patinfo_only

Command name update_patinfo_only.

patinfo only
ch.oddb> Updater.new(self).update_patinfo_only 'desitin', 'pfizer'
fachinfo and patinfo
ch.oddb> Updater.new(self).update_company_textinfos 'desitin

I created jobs/update_patinfo_only job.

job
$ ruby jobs/update_patinfo_only 'desitin'
result mail (patinfo only)
Searched for desitin, pfizer
Stored 112 Patinfos
Ignored 12 up-to-date Patinfo-Texts

Checked 3 companies
Desitin
Pfizer
Pfizer Consumer Healthcare

Unknown Iks-Numbers: 0


Session failures: 0

Download errors: 0


Parse Errors: 0
commit

Setup de.oddb.org

see my setup page


Debug Patinfo date chapter

SwissmedicNumber(:date) chapter is missing in patinfo.

z.B

http://ch.oddb.yasuhiro.org/de/gcc/patinfo/reg/31706/seq/01/chapter/date

check patinfo data
ch.oddb> registration('31706').sequence('01').patinfo.description('de').date.class
-> ODDB::Text::Chapter
ch.oddb> registration('31706').sequence('01').patinfo.description('de').date
-> Diese Packungsbeilage wurde im März 2008 letztmals durch die Arzneimittelbehörde (Swissmedic) geprüft.
ch.oddb> registration('31706').sequence('01').patinfo.description('de').date.heading
-> 
ch.oddb>
HTML source
<div>
  <h3>Zulassungsinhaberin</h3>
  <p style="font-size: 13px; margin-top: 4px; line-height: 1.4em">
    <span style="font-style: italic"></span>
    <span style="padding-bottom: 4px; white-space: normal; line-height: 1.4em;">AstraZeneca AG, 6301 Zug.</span>
    <br>
  </p>
</div>
<div>
  <p style="font-size: 13px; margin-top: 4px; line-height: 1.4em">
    <span style="font-style: italic"></span>
    <span style="padding-bottom: 4px; white-space: normal; line-height: 1.4em;">
Diese Packungsbeilage wurde im
    <span style="font-style:italic;"> März 2008</span>
letztmals durch die Arzneimittelbehörde (Swissmedic) geprüft.
    </span>
    <br>
  </p>
</div>

Title h3 (Stand der Information) is missing.

fachinfo
ch.oddb> registration('31706').sequence('01').fachinfo.description('de').date.class
-> ODDB::Text::Chapter
ch.oddb> registration('31706').sequence('01').fachinfo.description('de').date
-> Stand der Information
Oktober 2010.
ch.oddb> registration('31706').sequence('01').fachinfo.description('de').date.heading
-> Stand der Information
experiment

in ext/fiparse/src/patinfo_hpricot.rb

...
  def identify_chapter(code, chapter)
    p "====="
    p code
    p "-----"
    p chapter
    p "====="
    case code
...
output of date chapter
"====="
nil
"-----"
Cette notice d’emballage a été vérifiée pour la derničre fois en mars 2010 par l’autorité de contrôle des médicaments (Swissmedic).
"====="

This was not problem.
Because original Patinfo also does not have date chapter title.

z.B.


Added Swissmehic-Nr chapter to patinfo

Added Swissmedic-Nr (:iksnrs) chapter into Patinfo.

Notes

Old Patinfo does not have :iksnrs data by comment.

in src/model/patinfo.rb

...
 attr_accessor :distribution, :date, :fabrication
 attr_accessor :iksnrs # interface only, no data
...

I added Swissmedic-Nr chapter into PatinfoDocument2001 object.

commit
view · edit · sidebar · attach · print · history
Page last modified on June 12, 2012, at 12:17 PM