Costs error
#1638
Replies: 1 comment
-
|
There's no ArrayList lookup at Costs.java:149 so you may be using an older release. I'd guess this is caused by the code lookup on line 154 - check that you are assigning a code to each new medication and observation in your updated module. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am modifying the Alzheimer state machine by adding some new observations and medications. However, when I run Synthea including my custom module, I get the following error:
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:374)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at org.mitre.synthea.world.concepts.Costs.determineCostOfEntry(Costs.java:149)
at org.mitre.synthea.world.concepts.HealthRecord$Entry.determineCost(HealthRecord.java:185)
at org.mitre.synthea.world.concepts.HealthRecord.encounterEnd(HealthRecord.java:1282)
at org.mitre.synthea.engine.State$EncounterEnd.process(State.java:1069)
at org.mitre.synthea.engine.State.run(State.java:193)
at org.mitre.synthea.engine.Module.process(Module.java:430)
at org.mitre.synthea.engine.Module.process(Module.java:446)
at org.mitre.synthea.engine.Module.process(Module.java:383)
at org.mitre.synthea.engine.Generator.updatePerson(Generator.java:703)
at org.mitre.synthea.engine.Generator.createPerson(Generator.java:659)
at org.mitre.synthea.engine.Generator.generatePerson(Generator.java:469)
at org.mitre.synthea.engine.Generator.lambda$run$3(Generator.java:378)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
I initially thought the issue was caused by Synthea requiring cost information for medications, so I added the corresponding entries to /src/main/resources/costs/medications.csv. However, the error still persists.
How should I proceed to correctly resolve this issue?
Thank you in advance.
Alberto
Beta Was this translation helpful? Give feedback.
All reactions