view · edit · sidebar · attach · print · history

20120830-update-teilbarkeit-updater

<< | Index | >>


Summary

  • Allowed ONLY semi-colon as delimiter of CSV.
  • Fixed layout teilbarkeit show view.
  • Updated package INDEX of prescription.

Commits

Index


Update teilbarkeit csv

To ignore unexpected Whitespace of CSV that it has not Text-delimiter.
Allowed only semi-colon as Field delimiter.

7680422770106 ;975948;Condrosulf 400 Kapseln 60;Nein;Nein;
7680422770106;975948;"Condrosulf 400 Kapseln 60";"Nein";"Nein";
commit

Updated teilbarkeit show layout

"Source" Text was overwriten by label of HtmlGrid::Value.

LABELS = true
commit

Update Index of packages

update package INDEX for prescription.
use active_packgase only via Registration -> Sequence.

ch.oddb> packages.length
-> 23285

created active_packges in src/util/oddbapp.rb

ch.oddb> active_packages.length
-> 18063

Check

ch.oddb> puts packages.values.inject([]){|names, pack| names << pack.name_with_size.downcase}.select{|name| name =~ /inderal/i }
->
#=>
inderal, 10 ampulle(n) à 1 ml
inderal 10 mg, 50 tablette(n)
inderal 10 mg, 150 tablette(n)
inderal 40 mg, 50 tablette(n)
inderal 40 mg, 150 tablette(n)
inderal retard, 30 kapsel(n)
inderal retard, 100 kapsel(n)
inderal la 80, 50 kapsel(n)
inderal la 80, 100 kapsel(n)
ch.oddb> puts active_packages.values.inject([]){|names, pack| names << pack.name_with_size.downcase}.select{|name| name =~ /inderal/i }
->
#=>
inderal 10 mg, 50 tablette(n)
inderal 10 mg, 150 tablette(n)
inderal 40 mg, 50 tablette(n)
inderal 40 mg, 150 tablette(n)
inderal retard, 30 kapsel(n)
inderal retard, 100 kapsel(n)
inderal la 80, 50 kapsel(n)
inderal la 80, 100 kapsel(n)

Create INDEX via this active_packgas.

--- !ruby/object:ODBA::IndexDefinition
index_name: 'oddb_package_name_with_size_company_name_and_ean13'
origin_klass: 'ODDB::Package'
target_klass: 'ODDB::Package'
resolve_search_term: 'name_with_size_company_name_and_ean13'
resolve_target: ''
resolve_origin: ''
init_source: 'self.active_packages'
fulltext: false
dropping: oddb_package_name_with_size_company_name_and_ean13
creating: oddb_package_name_with_size_company_name_and_ean13
filling: oddb_package_name_with_size_company_name_and_ean13
self.active_packages
source.size: 18063
finished in 4.0412942522333335 min
all Indices Created in total: 0.0673555415663889 h
commit
view · edit · sidebar · attach · print · history
Page last modified on August 30, 2012, at 02:49 PM