Open maciejtarsa opened 3 years ago
If the locations and the hospitals/providers are not close enough, this will happen. Where "close enough" is actually quite forgiving.
Maybe one or two were entered incorrectly or accidentally got reversed or something. That is usually the culprit.
Thanks for your quick response.
Do you know off the top of your head how 'close enough' it has to be? Some of the locations in New Zealand can be quite far away. I suspect this is the case of not having enough provider locations. I am hoping to find some time to add medical centres/etc at some point to test this.
As a test, I generated 12,000 patients and this error affected just under 5%.
You can adjust this here:
However, the comments are wrong, the units are not "kilometers", they are in "degrees" of latitude and longitude.
So, the default on the master
branch is 32 degrees of latitude and longitude, which is quite massive.
You can see how it is used below. Basically it searches within an eighth of a degree of the person, and continues to double that range, until either it finds a matching provider or hits the maximum range.
Thanks for the explanation. I looked at my providers and zipcodes as you originally suggested and indeed found a number of mistakes, e.g. something in the north of the country has coordinates in the south. I used Python's GeoPy to find coordinates based on locations' names - seems it wasn't as successful as I thought.
However, given that range, it should still find a provider. E.g. I have a location that instead of being (-36.77, 174.74), is (-43.56, 172.67). I'll keep at it and report if I manage to find a solution. Thanks for your help so far.
Also, it has to be in the right "state", so even if it is nearby, the patients won't cross "state" borders to visit that provider.
Finally, please consider contributing your final results to the Synthea International repository: https://github.com/synthetichealth/synthea-international. We do not currently have data for New Zealand.
I will certainly contribute to the international repository. I am just checking through some of the locations to make them a bit more accurate.
Interestingly, I wanted to check whether other international locations are working without similar errors. I found about 5 out of 100 generated patients were coming up with errors in finding providers. I tested a couple of states in the UK, Norway and France.
Hi,
I am working on adapting Synthea to the population of New Zealand. I am coming across the following error, but only for some patients. Below is an example of generating 10 patients.
Sometimes the error relates to finding providers for ambulatory, sometimes wellness. At times all 10 patients are created with no issues.
I have a suspicion this is the result of only having 83 hospitals listed (I copied the same data for primary and urgent care). I did make sure that all states are represented.
Any suggestions where this is coming from?