---
Using the search mask under http://www.medregom.admin.ch/DE one can find much many more details for a given medical doctor. Examples to use are:
Shall we search via http://www.medregom.admin.ch/ or via https://www.medreg.admin.ch/MedReg/Summary.aspx?IdPerson=4633?
Found a direct link e.g http://www.medregom.admin.ch/de/Suche/Detail/?gln=7601000254207&vorname=Peter&name=Z%C3%BCst
Trying to test the search using watir before using mechanize. But when using watir I always get Die Personensuche dauerte zu lange. Bitte versuchen Sie es später noch einmal.
under https://www.medreg.admin.ch/MedReg/PersonenSucheResultat.aspx. When using chromium manually it does not work neither.
The medregom is very slow when using it via watir as the page contains over 1800 elements. Therefore trying to use medreg.admin.ch. Try to add a plugin medreg_doctor.rb and a corresponding unit test. Using a new separate branch medreg for this work as it is a bigger feature.
I am at present unable to use mechanize to fill in the GLN https://www.medreg.admin.ch/MedReg/PersonenSuche.aspx correctly. When I submit the form, I only proceed to an empty site https://www.medreg.admin.ch/MedReg/PersonenSuche.aspx and I don't get redirected https://www.medreg.admin.ch/MedReg/PersonenSucheResultat.aspx. The page http://stackoverflow.com/questions/2566088/how-do-i-debug-a-nethttpinternalservererror-error-when-using-mechanize told me how to start logging the mechanize via
require 'logger' @agent.log = Logger.new(STDOUT)
Also using pry to debug the whole interaction and comparing it with the output of HttpFox.
Using https://www.medreg.admin.ch/MedReg/Summary.aspx?IdPerson=20822 I see that with ID 200 we can harvest the data. Already got the diploma. But getting the information takes about 1,5 second for each doctor. Found entries with numbers as high as 75045. Which means that the task would run for over two days.