synthetichealth / synthea-international

Synthea metadata and configuration files for international locations
Apache License 2.0
31 stars 34 forks source link

FI compilation fails #12

Open mkoivi-ms opened 2 years ago

mkoivi-ms commented 2 years ago

FI module installation fails according to instructions fails immediately to compilation error:

AppTest > testApp FAILED java.lang.ExceptionInInitializerError at org.mitre.synthea.world.geography.Location.(Location.java:102) at org.mitre.synthea.engine.Generator.init(Generator.java:226) at org.mitre.synthea.engine.Generator.(Generator.java:209) at org.mitre.synthea.engine.Generator.(Generator.java:186) at App.main(App.java:227) at AppTest.testApp(AppTest.java:46)

    Caused by:
    java.lang.Exception: The city Bedford was not found in the demographics file.
        at org.mitre.synthea.world.geography.Location.<init>(Location.java:75)
        ... 5 more
jawalonoski commented 2 years ago

You probably need to change src/test/resources/test.properties to point at a location in FI.

Here is what Synthea normally contains:

https://github.com/synthetichealth/synthea/blob/d2e98b2a5353e4fb51e63074f06158f9a4c77b41/src/test/resources/test.properties#L10-L14

Here is what the FI file shows now:

https://github.com/synthetichealth/synthea-international/blob/a3143159f7e1bb2f5813ad6a0f190a02934c9c1a/fi/test/main/resources/test.properties#L1-L5

It should probably be something like this (or whatever you want, picking locations from the FI demographics file):

test_state.default = Uusimaa
test_state.alternative = Pirkanmaa

test_town.default = Helsinki
test_town.alternative = Tampere
jawalonoski commented 2 years ago

Let me know if that fixes it. Happy to take a pull request if that works.

jawalonoski commented 2 years ago

In general, it may help to read this series of "Other Areas" articles on the main Synthea wiki to help troubleshoot. https://github.com/synthetichealth/synthea/wiki/Other-Areas

We may also need to update the instructions for Finland in particular, or Synthea International in general. Happy to have suggestions if you find they are incorrect.