Observation/$lastn

Observation/$lastn

Implementation of standard FHIR endpoint to fetch last N observations of every available type. NB this endpoint accepts Obervations's search parameters in query string, so you can specify search criteria for Observations:
1
GET /fhir/Observation/$lastn?subject=Patient/123&max=5
Copied!
Example above will return last 5 observations of every available type belonging to Patient/123
1
GET /fhir/Observation/$lastn?subject=Patient/123&code=code-1,code-2,code-3
Copied!
Example above will limit types of observations returned to code-1, code-2 and code-3.
Last modified 8mo ago
Copy link