Analysing http://ch.oddb.org/de/gcc/drug/reg/00485/seq/26 we remarked that this is a sequence which no longer exists in the swissmedic packungen.xlsx but was never updated. Therefore the substances included Neuraminidasum Inactivatum (Virus-Stamm A/california/7/2009 (H1N1)-Like: Reassortant Virus nymc X-181)
.
The http://ch.oddb.org/de/gcc/drug/reg/00485/seq/28 Influvac is corect.
Got an Out-Of-Memory error when parsing the textinfo for remodulin. Remarked that its yaml file is big -rw-r--r-- 1 apache apache 1363014 21. Okt 02:04 data/html/fachinfo/de/Remodulin__swissmedicinfo.yaml
. See Attach:remodulin_yaml.txt.
The HTML file 1.3 MB long and file reports Remodulin__swissmedicinfo.html: HTML document, UTF-8 Unicode text, with very long lines
. Looking via swissindex at its content I see that we some mathematical formulas and at the end some long tables.
In log/oddb/debug/2015/10.log I found the following lines
2015-10-21 02:04:38 +0200: /var/www/oddb.org/src/plugin/text_info.rb:1156:in `block in parse_and_update': parse_and_update: calls parse_fachinfo reparse dist /var/www/oddb.org/data/html/fachinfo/de/Remodulin__swissmedicinfo.html false iksnrs_from_xml "56120"] Remodulin__swissmedicinfo.html, name Remodulin® de title Remodulin® 20 2015-10-21 05:27:11 CESTlog notify Error: Fach- und Patienteninfo Updates (swissmedicinfo.ch): start outgoing process ["log"]. Must attach 0 files and 0 parts. Error: NoMemoryError Message: failed to allocate memory Backtrace: /var/www/oddb.org/src/model/text.rb:396:in `block in wrap' /var/www/oddb.org/src/model/text.rb:377:in `each' /var/www/oddb.org/src/model/text.rb:377:in `wrap' /var/www/oddb.org/src/model/text.rb:351:in `block (2 levels) in to_s' /var/www/oddb.org/src/model/text.rb:350:in `collect' /var/www/oddb.org/src/model/text.rb:350:in `block in to_s' /var/www/oddb.org/src/model/text.rb:345:in `collect' /var/www/oddb.org/src/model/text.rb:345:in `to_s' /var/www/oddb.org/src/model/text.rb:432:in `block in to_s' /var/www/oddb.org/src/model/text.rb:432:in `collect' /var/www/oddb.org/src/model/text.rb:432:in `to_s' /var/www/oddb.org/src/model/text.rb:491:in `block in to_s' /var/www/oddb.org/src/model/text.rb:491:in `collect' /var/www/oddb.org/src/model/text.rb:491:in `to_s' /var/www/oddb.org/src/plugin/text_info.rb:1166:in `inspect' /var/www/oddb.org/src/plugin/text_info.rb:1166:in `inspect' /var/www/oddb.org/src/plugin/text_info.rb:1166:in `inspect' /var/www/oddb.org/src/plugin/text_info.rb:1166:in `parse_and_update' /var/www/oddb.org/src/plugin/text_info.rb:1185:in `block (3 levels) in import_info' /var/www/oddb.org/src/plugin/text_info.rb:1184:in `each' /var/www/oddb.org/src/plugin/text_info.rb:1184:in `block (2 levels) in import_info' /var/www/oddb.org/src/plugin/text_info.rb:1183:in `each_pair' /var/www/oddb.org/src/plugin/text_info.rb:1183:in `block in import_info' /var/www/oddb.org/src/plugin/text_info.rb:1180:in `each_pair' /var/www/oddb.org/src/plugin/text_info.rb:1180:in `import_info' /var/www/oddb.org/src/plugin/text_info.rb:1388:in `block in import_swissmedicinfo_by_index' /var/www/oddb.org/src/plugin/text_info.rb:1387:in `each_pair' /var/www/oddb.org/src/plugin/text_info.rb:1387:in `import_swissmedicinfo_by_index' /var/www/oddb.org/src/plugin/text_info.rb:1449:in `import_swissmedicinfo' /var/www/oddb.org/src/util/updater.rb:573:in `block in update_notify_simple'
Comparing the content of Swissmedic and ch.oddb.org I found that state of information changed from May 2014 to September 2015 and it introduced a quite complicated formula. See
Trying to add a unit test for this case.
Running jobs/update_textinfo_swissmedicinfo --target=fi --reparse 56120
to see, whether we have a problem with just this FI. This one completed (After a change in the debug message at line 1166). Starting import_daily again.
Pushed commit Fix sort order of desitin
After some longer discussion with zeno I think I understood his ideas correctly. Pushed commit Another fix for resultsort evidentia.
Continuing work of yesterday. Current state is Attach:patch_cleanup_bsv_patch.txt.
Pushed commit Remove pharmacode from bsv-import