-
I'm trying to alter the demographics.csv file such as that there are only 16 entries for each federal state of Germany. Despite me adhering to the stated "Demographics File Format" in the Synthea Wiki, I keep getting the RuntimeException Error "Unable to select a random city id." when trying to execute "run_synthea". I played around a bit with the original demographics.csv file and I found that if I cut the file to the first 10.000 rows, I do get the same error. However, if I cut the demographics.csv file to the first 30.000 rows and then execute "run_synthea" everything works perfectly fine. How is that possible? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I don't know what to say about varying your number of rows. The number of rows shouldn't matter, unless there are data quality issues that are causing the code to fail. Try debugging it. That specific error Every city needs a unique Check your file. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Could you maybe provide me a short "how to", for my task? Respectively a brief explanation of how you'd approach my problem?
Specifically, I want to create a patient population for Germany. I have a given patient population distribution regarding the 16 federal states of Germany. For example, I aim for a synthesized dataset where 5% of the population are from the federal state "lower saxony", 3% of the people from the federal state "Bremen" etc. The cities, zip codes etc. are not important for me, I just have the aim of a specific distribution regarding these federal states.
Originally, my approach was to just replace the demographics.csv file with a new one that has 16 rows, each row for…