FHIR Chat · Patient referenced in encounter always null · implementers

Stream: implementers

Topic: Patient referenced in encounter always null


view this post on Zulip Brian Poncelet (Mar 21 2022 at 13:21):

Hello everyone,

I'm currently working on my first FHIR project (loving it this far!).
However, we ran into a problem we cannot find any solution for. We're trying to poll for updated encounters while including the relevant patient object in the response.

Our URL looks something like this: http://baseUrl/Encounter?_lastUpdated=gt2021-10-26T09:00&_include=Encounter:subject&_include=Encounter:location

When testing this against one of the public R4 test servers, we're able to get the referenced patient via 'encounter.getSubject().getResource()', which is the standard as far as I can tell.

However, when performing the same requests against one of our company's own test servers, we're always receiving a null value. We've compared the returned JSONs multiple times, but as far as we can tell there's not really anything wrong/different between the two.

Has anyone else encountered similar problems before?

Kind regards

Brian

view this post on Zulip Michele Mottini (Mar 21 2022 at 13:34):

Does your own test server supports includes? Many servers do not.

view this post on Zulip Brian Poncelet (Mar 21 2022 at 14:12):

Yes, the relevant Patient is included in the response.

view this post on Zulip John Moehrke (Mar 21 2022 at 14:19):

not being able to see the search set Bundle, it is hard for us to help you... further, if you say the content is in the search set Bundle, then this is likely a question for your interface tooling.


Last updated: Apr 12 2022 at 19:14 UTC