FHIR Chat · boundsPeriod end not nullable · hapi

Stream: hapi

Topic: boundsPeriod end not nullable


view this post on Zulip Christian Nau (Feb 15 2021 at 08:55):

Hello!
I'm trying to create a ServiceRequest with an occurenceTiming.repeat.boundsPeriod element. The end-date should not be set (because the period is ongoing).
What I understand from the FHIR specification, this should be possible.
But when trying to create the resource, I get the error: Error: HTTP 500 Server Error: Failed to call access method: java.lang.NullPointerException

When leaving out the complete boundsPeriod, it works. But I want to be able to set the start.

Here is an example request body:
{ "resourceType": "ServiceRequest", "status": "unknown", "intent": "order", "occurrenceTiming": { "repeat": { "boundsPeriod": { "start": "2021-02-15T08:20:39.672Z" }, "count": 1, "frequency": 4, "period": 1, "periodUnit": "d", "when": [ "C" ] } } }

I think this is a bug.
Any ideas?
Greetings
Christian

view this post on Zulip Christophe Spielmann (Feb 16 2021 at 11:22):

I face the same issue as stated into https://github.com/hapifhir/hapi-fhir/issues/2171

view this post on Zulip Patrick Werner (Feb 24 2021 at 12:51):

added a PR to fix this issue: https://github.com/hapifhir/hapi-fhir/pull/2417


Last updated: Apr 12 2022 at 19:14 UTC