synthea icon indicating copy to clipboard operation
synthea copied to clipboard

Unable to generate records for GB patients

Open philipharfield opened this issue 4 years ago • 4 comments

Hello,

I'm exploring SYNTHEA for a local application. I've created modules and done the basics with the software although all the patients are US based.

I've downloaded the GB geography as per the instructions on Github. i've also confirmed that all the configuration files are being picked up. But when I specify a state, e.g. Somerset, I get the following error: c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Exception in thread "main" java.lang.NullPointerException at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:196) at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:166) at org.mitre.synthea.engine.Generator.init(Generator.java:235) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199)

If I specify a city as well, I can this error: _c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Bristol ERROR: unable to load demographics java.lang.Exception: The city Bristol was not found in the demographics file. at org.mitre.synthea.world.geography.Location.(Location.java:66) at org.mitre.synthea.engine.Generator.init(Generator.java:205) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199) Exception in thread "main" java.lang.ExceptionInInitializerError at org.mitre.synthea.world.geography.Location.(Location.java:93) at org.mitre.synthea.engine.Generator.init(Generator.java:205) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199) Caused by: java.lang.Exception: The city Bristol was not found in the demographics file. at org.mitre.synthea.world.geography.Location.(Location.java:66) ... 4 more

Is this a known bug? Any suggestions how to resolve?

many thanks,

Phil

philipharfield avatar Jul 31 '20 15:07 philipharfield

There is now a new repo for international users. Here: https://github.com/synthetichealth/synthea-international.

Take a look and let us know how you fare.

--Sam

On Fri, Jul 31, 2020 at 11:34 AM Dr Philip Harfield [email protected] wrote:

Hello,

I'm exploring SYNTHEA for a local application. I've created modules and done the basics with the software although all the patients are US based.

I've downloaded the GB geography as per the instructions on Github. i've also confirmed that all the configuration files are being picked up. But when I specify a state, e.g. Somerset, I get the following error: c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Exception in thread "main" java.lang.NullPointerException at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:196) at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:166) at org.mitre.synthea.engine.Generator.init(Generator.java:235) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199)

If I specify a city as well, I can this error: _c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Bristol ERROR: unable to load demographics java.lang.Exception: The city Bristol was not found in the demographics file. at org.mitre.synthea.world.geography.Location.(Location.java:66) at org.mitre.synthea.engine.Generator.init(Generator.java:205) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199) Exception in thread "main" java.lang.ExceptionInInitializerError at org.mitre.synthea.world.geography.Location.(Location.java:93) at org.mitre.synthea.engine.Generator.init(Generator.java:205) at org.mitre.synthea.engine.Generator.(Generator.java:170) at org.mitre.synthea.engine.Generator.(Generator.java:155) at App.main(App.java:199) Caused by: java.lang.Exception: The city Bristol was not found in the demographics file. at org.mitre.synthea.world.geography.Location.(Location.java:66) ... 4 more

Is this a known bug? Any suggestions how to resolve?

many thanks,

Phil

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shabiel avatar Jul 31 '20 15:07 shabiel

(I have edited this a few times so check latest). I thought there was a bug at first but I think the issue was because our instructions were to cp -R gb/ instead of cp -R gb/*.

The following steps I was able to generate patients for Somerset/Bristol

git clone https://github.com/synthetichealth/synthea
git clone https://github.com/synthetichealth/synthea-international
cd synthea-international
cp -R gb/* ../synthea
cd ../synthea
./run_synthea -p 5 Somerset Bristol

... Running with options: Population: 5 Seed: 1596215455667 Provider Seed:1596215455667 Reference Time: 1596215455667 Location: Bristol, Somerset Min Age: 0 Max Age: 140 5 -- Andreas188 Mitchell808 (13 y/o M) Bristol, Somerset 3 -- Marcos263 Jaskolski867 (39 y/o M) Bristol, Somerset 2 -- Eddie505 Quitzon246 (53 y/o M) Bristol, Somerset 4 -- Carl856 Gleichner915 (67 y/o M) Bristol, Somerset 1 -- Shantelle354 Bernier607 (65 y/o F) Bristol, Somerset Records: total=5, alive=5, dead=0

  • Demographic data is not accurate. We don't have demographics data for each european country. It is a copy of Finland's demographics where we do have the data.
  • zip codes/lat/lon and city data is accurate.
  • health care providers are extracted from open street maps.
  • phone numbers are in US format still.

please provide feedback if anything can be improved.

scivm avatar Jul 31 '20 17:07 scivm

I made a lot of edits to my response so please check again and follow the steps outlined for generating Somerset, Bristol. I did not find any defect except in the README instructions which I am creating a pull request to correct.

scivm avatar Jul 31 '20 18:07 scivm

Hi,

Thanks for looking at this. I had been using the release .jar as I was on a Windows machine. Building from source and editing the payers.java does create a build that accepts international (GB) geographies.

I'll use this local build until this bug is resolved in the source.

philipharfield avatar Aug 03 '20 15:08 philipharfield