OpenMRS icon

OpenMRS

Interact with OpenMRS FHIR R4 API

Actions18

Medication Statement → Get Many

AI-generated

Summary

Fetches medication statements for a specified patient from the OpenMRS FHIR R4 API. Choose whether to return all results or cap the response at a limit.

Inputs

  • Patient ID (required) — The patient's UUID; sent as the FHIR patient query parameter.
  • Return All — When enabled, omits the result-count limit. When disabled, requests up to the configured Limit.
  • Limit — Maximum number of results to request when Return All is disabled; defaults to 50, with a configured range of 1–100.

Output shape

A list of medication statement resources, with one n8n output item per returned resource.

Reads the entry resources from the FHIR response bundle. An empty entry array raises a no-results error. Results are limited by the API's _count parameter when Return All is disabled; the node does not implement pagination to fetch additional pages.

Links

Discussion