view · edit · sidebar · attach · print · history

Index>

20170213-fix-analysis

Summary

  • Fix new anaylsis link
  • The field division (Teilbarkeit) is no longer shown
  • Keep in Mind
  • Cibacen as 5 times nr of tablets

Commits

Index

Fix new anaylsis link

The import_analysis failed with

Plugin: ODDB::AnalysisPlugin

Error: Mechanize::ResponseCodeError
Message: 404 => Net::HTTPNotFound for
https://www.bag.admin.ch/themen/krankenversicherung/00263/00264/04185/index.html?lang=fr
-- unhandled response
Backtrace:
/var/www/oddb.org/vendor/bundle/ruby/2.4.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:308:in
`fetch'
/var/www/oddb.org/vendor/bundle/ruby/2.4.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:976:in
`response_redirect'
/var/www/oddb.org/vendor/bundle/ruby/2.4.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:300:in
`fetch'
/var/www/oddb.org/vendor/bundle/ruby/2.4.0/gems/mechanize-2.7.3/lib/mechanize.rb:440:in
`get'
/var/www/oddb.org/src/plugin/analysis.rb:69:in `get_latest_file'
/var/www/oddb.org/src/plugin/analysis.rb:42:in `update'
/var/www/oddb.org/src/util/updater.rb:239:in `block in update_analysis'
/var/www/oddb.org/src/util/updater.rb:527:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:237:in `update_analysis'
/var/www/oddb.org/src/util/updater.rb:224:in `block in run'
/var/www/oddb.org/src/util/schedule.rb:10:in `run_on_monthday'
/var/www/oddb.org/src/util/updater.rb:223:in `run'
jobs/import_daily:13:in `block in <module:Util>'
/var/www/oddb.org/src/util/job.rb:40:in `run'
jobs/import_daily:12:in `<module:Util>'
jobs/import_daily:11:in `<module:ODDB>'
jobs/import_daily:10:in `<main>'

Reason: New link is https://www.bag.admin.ch/dam/bag/de/dokumente/kuv-leistungen/leistungen-und-tarife/Analysenliste/analysenliste-01.01.2017-excelformat.xlsx.download.xlsx/Analysenliste%20vom%2001.01.2017%20in%20Excel-Format.xlsx

The downloaded xlsx file contains (in different tabs) the values for all 3 languages (german, french, italian). Must adapt unit test and parsing.

Parsing now the XLSX file only once an collecting all 3 languages. Running jobs/update_analysis before commiting my changes. Pushed commit Fix import analysis. Pulled on thinpower and started jobs/update_analysis in screen import_daily

The field division (Teilbarkeit) is no longer shown

Must fix admin view to show tailbarkeit. E.g. is Inderal. Was easy to fix. But I do not find any example on howto update the divisibility of sequence. It looks liks there was a CSV file which furnished these values. Found on thinpower the file /var/www/oddb.org/data/csv/teilbarkeit.2013-05-24.csv.

But the modified view http://oddb-ci2.dyndns.org/de/gcc/drug/reg/31706/seq/02 does not present a possibility to save these values. This should be possible, too. This was never possible. Therefore I push the commit as is. Also remarked that the import only import the german values.

The view looks like this:

Pushed commit Show division info in sequence admin

Using the first few lines of teilbarkeit.2013-05-24.csv to create a real test for importer. Done with commit Added example CSV file for teilbarkeit

Would like to run all unit tests under travis. Started updating to use Ruby 2.4.0 with commit Updated .travis.yml for Ruby 2.4.0

view · edit · sidebar · attach · print · history
Page last modified on February 13, 2017, at 05:00 PM