Stream: implementers
Topic: Can you return a array of objects in FHIR server response?
lychenus (Nov 30 2020 at 05:03):
Just to know, if there is any examples that do that or if there is any guidelines?
It sounds like a a device which measures your blood pressure and uploads to a cloud server daily. If a doctor wants to retrieve those data and it could be lots of days, it seems it is better to start off returning an array of objects other than convoluted object structures?
Thanks
Lloyd McKenzie (Nov 30 2020 at 06:50):
Search responses are always an array of entries. If you mean that you just want an array of values, then no - at least not without using something like GraphQL. (Each Observation will have it's on timestamp, might have a different performer, use a different device, etc. so all of the Observation instance is potentially relevant.)
Last updated: Apr 12 2022 at 19:14 UTC