Method: fhir.Observation-lastn

Full name: projects.locations.datasets.fhirStores.fhir.Observation-lastn

Retrieves the N most recent Observation resources for a subject matching search criteria specified as query parameters, grouped by Observation.code, sorted from most recent to oldest.

Implements the FHIR extended operation Observation-lastn.

Search terms are provided as query parameters following the same pattern as the search method. This operation accepts an additional query parameter max, which specifies N, the maximum number of Observations to return from each group, with a default of 1.

On success, the response body will contain a JSON-encoded representation of a Bundle resource of type searchset, containing the results of the operation. Errors generated by the FHIR store will contain a JSON-encoded OperationOutcome resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.

HTTP request

GET https://healthcare.googleapis.com/v1alpha2/{parent=projects/*/locations/*/datasets/*/fhirStores/*}/fhir/Observation/$lastn

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Name of the FHIR store to retrieve resources from.

Authorization requires the following Google IAM permission on the specified resource parent:

  • healthcare.fhirResources.get

Request body

The request body must be empty.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-healthcare
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Healthcare API