NextMotion icon

NextMotion

Interact with NextMotion API for patient care management

Actions163

Prescription → Update

AI-generated

Summary

Update an existing prescription by specifying its ID and modifying desired fields such as content, document template, or title.

Inputs

  • clinicId — Optional clinic identifier; required only if needed to select related data for some operations but optional when using prescription ID directly.
  • patientId — Optional patient identifier; required only for certain operations but optional here when using prescription ID directly.
  • prescriptionId (required) — The ID of the prescription to update; can be selected from a list filtered by patient or specified by UUID.
  • updateFields — Fields to update on the prescription, including 'content' (full instructions in HTML), 'document_template' (ID of a document template to define PDF rendering), and 'title' (short heading for the prescription).

Output shape

a single updated prescription record

The operation returns the updated prescription data reflecting the applied changes. The prescription is identified by the provided ID; clinic and patient IDs are optional inputs for contextual filtering but not strictly required for this update.

Links

Discussion