FHIR Chat · HAPI JPA Server and Implementation error · hapi

Stream: hapi

Topic: HAPI JPA Server and Implementation error


view this post on Zulip 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

view this post on Zulip 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

view this post on Zulip Richard Stanley (Oct 13 2021 at 17:47):

The capability statement GETs correctly, e.g.: curl http://localhost:8080/fhir/metadata | jq .

view this post on Zulip 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

view this post on Zulip Richard Stanley (Oct 13 2021 at 18:02):

I would confirm that you can get the capability statement as above. Is that working?

view this post on Zulip Sowmya Dasari (Oct 14 2021 at 06:33):

Yes I am able to the Capability statement, but not able create a patient resource

view this post on Zulip Sowmya Dasari (Oct 14 2021 at 06:35):

I have added the below code in the create method for patient resource
image.png

view this post on Zulip Sowmya Dasari (Oct 14 2021 at 06:36):

This is the error response I am getting image.png

view this post on Zulip Patrick Werner (Oct 14 2021 at 06:39):

Check your logs. Something is wrong with your DB connection.

view this post on Zulip Sowmya Dasari (Oct 14 2021 at 06:45):

image.png

view this post on Zulip 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

view this post on Zulip Patrick Werner (Oct 14 2021 at 06:49):

Your stacktrace doesn‘t show anything DB related/query on the DB level

view this post on Zulip Sowmya Dasari (Oct 14 2021 at 06:53):

image.png

view this post on Zulip 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]

view this post on Zulip Vadzim Kavalkou (Oct 14 2021 at 13:23):

(deleted)

view this post on Zulip 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