Should add into oddb2xml all entries from swissmedic-packages. Also when entries missing in swissindex.
Making some progress. But @packs has very different field names than objects coming from swissindex. Looks like we missed over 5400 entries!
Zeno suggested to use for the field measure always the column M from swissmedic. I think we should rethink the meaning, as for Mutagrip (IKSNR 373) I am not sure on how to handle it.
Could improve the recognition. If I cannot determine measure by looking at the name in column_c I take (in this order)
Now no measure is 'unbekannt'. Pushed commit Corrected calculation for measure
But I still have 33 occurrences of of unknown selling units, e.g. for 7680651850068 "Memantin-Mepha 15 mg, Lactab" or 7680613840014 "Oralair 100 IR und 300 IR, Sublingualtabletten".
The lnf for evidentia should contain a titlebar "evidentia - Wissen und Werkzeuge für Ärzte".
Resolved with commit Added titlebar for evidentia
Must add a new search
a) first look for price search b) second look for substances
Eg. "Budesonid"
First should come the products with the same ATC-code, then the substances with the same name.
No result should be displayed twice. Results from the price search should be displayed first. (Unsure whether this is easily possible, as I think the results are ordered alphabetically)
Fixed a small error in unit tests with Fix test/state/global.rb
Created (failing) spec test in spec/searchbar_spec.rb.
Creating the combined search was easy. Even when I was unable to add a good unit test via test/test_state/global.rb. There is way too much mocking going on there.
Pushed commit Added combined search
Must place this new search at the second place. Done with commit Place combined search at second place