---
Must use the following lists
Zeno would like to combine the search for hospitals, doctors and drug store in a single view, accessible via Arzt/Spital/Apotheke
When importing the data for the doctors it is important to know whether he/she is authorized to prescribe drugs. We should import all available fields.
Looking around the data a little bit one find curious entries like
7601000523174 Bay Seraina Maria 8280 Kreuzlingen Thurgau CH Ärztin/Arzt Ja Nein 7601000523174 Bay Seraina Maria 8280 Kreuzlingen Thurgau CH Ärztin/Arzt Ja Ja Verzicht 7601000079107 Zutter Daniel Uriel 8702 Zollikon Zürich CH Ärztin/Arzt Ja Nein 7601000079107 Zutter Daniel Uriel 8588 Zihlschlacht Thurgau CH Ärztin/Arzt Ja Nein 7601000079107 Zutter Daniel Uriel 8580 Amriswil Tessin CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1110 Morges Waadt CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1110 Morges Waadt CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1007 Lausanne Waadt CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1110 Morges Waadt CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1007 Lausanne Waadt CH Ärztin/Arzt Ja Nein 7601000019080 Zwingli Martin 1000 Lausanne 7 Waadt CH Ärztin/Arzt Ja Nein
There are a few Betriebe without an EAN13
Altersheim Stollenweid Stollenweid 2 8824 Schönenberg Zürich Schweiz Spitalapotheke, Andere 6026 Verzeichnis a/b/c/f BetmVV-EDI Farmacia Chimica Internazionale Farmacia Chimica Internazionale SA via Balestra 22B 6900 Lugano Tessin Schweiz öffentliche Apotheke 6011 Verzeichnis a/b/c BetmVV-EDI Farmacia Sun Store Centro Ovale 6830 Chiasso Tessin Schweiz öffentliche Apotheke 6011 Verzeichnis a/b/c BetmVV-EDI Mathilde Escher-Heim Lengghalde 1 8008 Zürich Zürich Schweiz Spitalapotheke, Andere 6026 Verzeichnis a/b/c/f BetmVV-EDI MV SANTE Beaumont SA Avenue de Beaumont 24c 1012 Lausanne Waadt Schweiz Spitalapotheke, Andere 6011 Verzeichnis a/b/c BetmVV-EDI Pharmacie Amavita des Deux-Ponts Galenicare SA Boulevard Carl-Vogt 4 1205 Genève Genf Schweiz öffentliche Apotheke 6011 Verzeichnis a/b/c BetmVV-EDI Pharmacie Solidarité PHARMACIE SOLIDARITE Sàrl Avenue d'Aïre 38 1203 Genève Genf Schweiz öffentliche Apotheke 6011 Verzeichnis a/b/c BetmVV-EDI Pharmacies BENU SA Rue Franche 11 2502 Bienne Bern Schweiz öffentliche Apotheke 6011 Verzeichnis a/b/c BetmVV-EDI
Created small data files for the import.
Field-Names are
GLN Betrieb Betriebsname 1 Betriebsname 2 Strasse Nummer PLZ Ort Bewilligungskanton Land Betriebstyp BTM Berechtigung
GLN Person Name Vorname PLZ Ort Bewilligungskanton Land Diplom BTM Berechtigung Bewilligung Selbstdispensation Bemerkung Selbstdispensation
The XLS files is incomplete as described under http://www.bag.admin.ch/themen/berufe/00411/index.html?lang=de. Using the search mask under http://www.medregom.admin.ch/DE one can find much many more details for a given medical doctor.
After a discussion with Zeno I decided to proceed like this
Estimated effort to be between 5 and 10 work days.
After running /usr/local/bin/ruby jobs/update_analysis
on thinpower the search via analysis works again on ch.oddb.org. E.g. search as 125Dihydroxycholecalciferol
, Alkalische Phosphatase
, Alkalische
or Phosphatase
works, but not as Dihydroxycholecalciferol
.
Zeno wants to receive an email if the update completes. Until know we only receive an error if the error fails. Therefore must reorganize the import to catch some useful values (nr updated groups/positions per language).
Pushed the unit test for the analysis import via commit Added unit test for analysis, which was not included in yesterdays commit.
Modifying the unit test to parse a small xlsx file. Reworking the whole unit test to provide tests for two scenarios
Done with commit Improved unit test for import analysis
Now creating unit test and adating to send a log mail. Works. Introduced a transaction over the whole import to ensure consistency.
Pushed commit Added logging for analysis import. Using transaction.
Mails looks like this
2014-10-14 15:34:39: @archive /var/www/oddb.org/data/xls 2014-10-14 15:34:39: latest_file /var/www/oddb.org/data/xls/analysis_fr_2014.10.14.xlsx is uptodate 2014-10-14 15:34:39: latest_file /var/www/oddb.org/data/xls/analysis_de_2014.10.14.xlsx is uptodate 2014-10-14 15:34:39: deleting all_analysis_group (0 groups) 2014-10-14 15:34:39: update_group_position de /var/www/oddb.org/data/xls/analysis_de_latest.xlsx 2014-10-14 15:57:34: update_group_position fr /var/www/oddb.org/data/xls/analysis_fr_latest.xlsx 2014-10-14 16:04:58: update finished with 1118 groups and 1521 positions