Stream: hapi
Topic: HAPI JPA Server and Implementation error
Sowmya Dasari (Oct 13 2021 at 16:54):
Hi I am new to HAPI FHIR with basics in Java. I am trying to run hapi-fhir-jpaserver-starter project in my local and save data to mysql db. I am getting timed out exceptions when trying to create a patient resource. I am not sure if I have missed any configurations. really need help in fixing the issue
Richard Stanley (Oct 13 2021 at 17:46):
I don't know if you're running in Docker or directly, but if MySQL is not required, here's a working docker compose with postgres:
https://gist.github.com/citizenrich/31846bce3a848bd487d41e0f0e11b233
Richard Stanley (Oct 13 2021 at 17:47):
The capability statement GETs correctly, e.g.: curl http://localhost:8080/fhir/metadata | jq .
Sowmya Dasari (Oct 13 2021 at 17:57):
I am running directly using jetty:run command and I am getting timed out exception when creating a resource
Richard Stanley (Oct 13 2021 at 18:02):
I would confirm that you can get the capability statement as above. Is that working?
Sowmya Dasari (Oct 14 2021 at 06:33):
Yes I am able to the Capability statement, but not able create a patient resource
Sowmya Dasari (Oct 14 2021 at 06:35):
I have added the below code in the create method for patient resource
image.png
Sowmya Dasari (Oct 14 2021 at 06:36):
This is the error response I am getting image.png
Patrick Werner (Oct 14 2021 at 06:39):
Check your logs. Something is wrong with your DB connection.
Sowmya Dasari (Oct 14 2021 at 06:45):
Sowmya Dasari (Oct 14 2021 at 06:47):
I don't think it is an issue with DB connection as able to see the queries that are being executed in the logs
Patrick Werner (Oct 14 2021 at 06:49):
Your stacktrace doesn‘t show anything DB related/query on the DB level
Sowmya Dasari (Oct 14 2021 at 06:53):
Sowmya Dasari (Oct 14 2021 at 07:32):
Seeing this new error
this server does not know how to handle resources of type StructureDefinition - Can handle: [Patient, SearchParameter]
Vadzim Kavalkou (Oct 14 2021 at 13:23):
(deleted)
Sowmya Dasari (Oct 21 2021 at 03:15):
Anyone faced the same issue?
I am not able to save data into database using HAPI FHIR JPA Starter
if you can send me a code snippet for what goes inside a @create method that would help
Last updated: Apr 12 2022 at 19:14 UTC