Stream: social
Topic: Patient referenced in Encounter always null
Brian Poncelet (Mar 21 2022 at 13:15):
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
Brian Poncelet (Mar 21 2022 at 13:22):
My bad, I've moved this message to #implementers .
Last updated: Apr 12 2022 at 19:14 UTC