Running jobs/import_swissmedic_only update_compositions
.
When looking at IKSNR 00277 via http://oddb-ci2.dyndns.org/de/gcc/search/zone/drugs/search_query/00277/search_type/st_registration?#best_result I get NoMethodError undefined method `de' for Excipiens pro Suppositorio:ODDB::ActiveAgent
. Looks as if the import did not correctly handle the different languages. No. The problem is that ActiveAgents to not have a descriptions field for localized names. Therefore replacing gf.send @session.language
by gf.to_s
. Now the excipiens is displayed but without a label Excipiens.
While running the import I detected an error, which is corrected now. Dropping and reloading the database before starting the import again. Pushd commit Fix creating substances
The new fields are displayed now. Example is IKSNR 00603 "Hiberix, Stechampulle mit Lyophilisat und Solvens". See
I dislike the following:
Registration is crated, company and name_base are wrong. Fixed. But packages.size is still 0. Fixed it. But why do the unit-tests and the real DB have so different behaviour. This is not good at all.
Pushed commit Create registration if found in text_info and Better test for text_info creating package/seq/pack
Zeno remarked that import_daily creates now the registration/sequence/package, but does not update the fachinfo. Looks for me as if the option :reparse must be set to true. Dropping and reimporting the databse and running import_daily confirmed, that this fixes the problem. Pushed commit Force reparse import_daily
This updated too many FI/PI. Therefore committed Fix updating of fachinfo in import_daily