Pull latest vital signs from Observation

54 views
Skip to first unread message
Assigned to aaron....@oracle.com by me

Evelyn

unread,
Mar 24, 2021, 7:09:10 PM3/24/21
to Cerner FHIR Developers
Hi,

I am trying to pull the latest vital for a patient. After I do a vital search via /Observation?patient=<patient id>&category=vital-signs, what's the best way to get the latest vitals by looping through the resources? Should we compare the lastUpdated timestamp or is there a convenient way? 

Thanks,

Aaron McGinn (Cerner)

unread,
Mar 25, 2021, 2:55:54 PM3/25/21
to Cerner FHIR Developers
It may depend on what your workflow needs. From our documentation [1]:
  • Results are sorted by effective date/time in descending order by page. That is, all Observations on any given page of results are newer than all Observations on the next page of results. Sort order within pages is not guaranteed.
  • If the query uses the _lastUpdated query parameter, results are sorted by last updated date/time in descending order by page, not by effective date/time.


-Aaron (Cerner)
Reply all
Reply to author
Forward
0 new messages