OpenMRS icon

OpenMRS

Interact with OpenMRS FHIR R4 API

Actions18

Diagnostic Report → Get Many

AI-generated

Summary

Retrieves a paginated list of Diagnostic Report resources for a specific patient from the OpenMRS FHIR R4 API.

Inputs

  • patientIdFilter (required) — The UUID of the patient to filter results by.
  • returnAll — Whether to return all results or only up to a given limit.
  • limit — Max number of results to return (1-100). Only used when returnAll is false.

Output shape

A list of items, each containing the full Diagnostic Report resource object.

Returns an array of items where each item's JSON contains the full Diagnostic Report object from the API. If returnAll is false, results are limited to the specified limit (default 50).

Examples

Example 1: Fetch up to 100 diagnostic reports for a specific patient without pagination.

Set returnAll to true, patientIdFilter to the patient UUID, and limit to 100.

Example 2: Retrieve the first 10 diagnostic reports for a patient for a quick overview.

Set returnAll to false, patientIdFilter to the patient UUID, and limit to 10.

Links

Discussion