FHIR Chat · Active HAPI Configuration · hapi

Stream: hapi

Topic: Active HAPI Configuration


view this post on Zulip Mike Yackanich (Mar 18 2022 at 19:10):

Is there a way to determine specific configuration settings of an active HAPI instance? I am specifically interested to know if a HAPI instance has enforce_referential_integrity_on_write set to true or false.

I am told that one HAPI instance's application.yaml has this set to false, yet I am still getting an unresolvable resource reference error when I POST a resource that has a resource reference not known to them.

view this post on Zulip Jens Villadsen (Mar 18 2022 at 19:11):

I assume you dont have file access to the running instance?

view this post on Zulip Mike Yackanich (Mar 18 2022 at 19:12):

Correct Jens - I do not have file system access to this remote HAPI server.

view this post on Zulip Jens Villadsen (Mar 18 2022 at 19:15):

That is currently not supported

view this post on Zulip Jens Villadsen (Mar 18 2022 at 19:16):

We will get that when we add Spring Boot actuator to the mix ( @Patrick Werner )

view this post on Zulip Mike Yackanich (Mar 18 2022 at 19:18):

ok - thanks Jens. I just have to trust what I am being told about their config. Although I don't know of any other reason why I would get the following response to a POST of a bundle other than enforce_referential_integrity_on_write being set to true.

{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource contains reference to unknown resource ID Practitioner/1</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource contains reference to unknown resource ID Practitioner/1"
}
]
}

view this post on Zulip Jens Villadsen (Mar 18 2022 at 19:32):

Yes that sounds like it is deactivated

view this post on Zulip Mike Yackanich (Mar 19 2022 at 19:45):

Hi Jens - just to confirm - do you mean it sounds like enforce_referential_integrity_on_write is set to true? Is there any other HAPI configuration that might result in this behavior?

view this post on Zulip Patrick Werner (Mar 19 2022 at 19:46):

I think Jens meant true and wrote false.

view this post on Zulip Jens Villadsen (Mar 19 2022 at 19:46):

Yes

view this post on Zulip Jens Villadsen (Mar 20 2022 at 20:25):

@Patrick Werner you can eg. have a look at https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/337

view this post on Zulip Garima (Mar 21 2022 at 07:32):

Hi All,

Need help on this, I am getting "InvalidDataAccessApiUsageException" with message "Timer already cancelled", while trying to access the hapi FHIR resources
http://hapi.fhir.org/baseR4/MedicationRequest

Issue- HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: Timer already cancelled.; nested exception is java.lang.IllegalStateException: Timer already cancelled."

view this post on Zulip Paco Novillo (Mar 21 2022 at 14:49):

Garima said:

Hi All,

Need help on this, I am getting "InvalidDataAccessApiUsageException" with message "Timer already cancelled", while trying to access the hapi FHIR resources
http://hapi.fhir.org/baseR4/MedicationRequest

Issue- HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: Timer already cancelled.; nested exception is java.lang.IllegalStateException: Timer already cancelled."

I am facing the same issue. Could it be some server maintenance?

view this post on Zulip Jens Villadsen (Mar 21 2022 at 19:19):

@Mike Yackanich - once the PR is accepted, you can, if enabled and allowed/left unprotected, look up current running configuration of an jpa-starter instance.

view this post on Zulip Jens Villadsen (Apr 02 2022 at 11:17):

Jens Villadsen said:

Patrick Werner you can eg. have a look at https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/337

@Patrick Werner can you give it a look?

view this post on Zulip Patrick Werner (Apr 07 2022 at 07:41):

Im currently swamped with work. Will have a look this weekend.


Last updated: Apr 12 2022 at 19:14 UTC