Mediloop
DocsAPIsPrescription APIUpdate prescription
Prescription API

Update prescription

Update an existing prescription that is still in draft status.

PUT/prescriptions/{id}OAuth 2.0prescriptions.write200 OK

Authentication

OAuth 2.0

Required

Permissions

prescriptions.write

Required

Rate limit

300 requests / min

Default

Caching

30 seconds

Recommended

Response

200 OK

Path parameters

ParameterTypeRequiredDescription
iduuidYesPrescription identifier

Request headers

HeaderTypeRequiredDescription
If-MatchstringNoETag for optimistic concurrency

Request body

FieldTypeRequiredDescription
encounter_iduuidNoRelated encounter
itemsarrayNoMedication items
notesstringNoPrescription note
customobjectNoAdditional metadata

Example request

cURL

curl -X PUT "https://api.mediloop.com/v1/prescriptions/presc_456" \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"notes":"Updated dosage instructions"}'

Example response

200 OK
{
  "data": {"id":"presc_456","status":"draft","version":2}
}

Example response

Responses use stable identifiers and lifecycle status values so clients can safely coordinate clinical and pharmacy workflows.

Responses

HTTPDescription
200Request completed successfully
201Resource/action created
400Validation error
401Authentication required
403Insufficient permission or scope
404Prescription not found
409Lifecycle or concurrency conflict
422Unprocessable clinical/request data

Workflow

draft

Created by provider

clinically_validated

Clinically validated

signed

Digitally signed

routed

Sent to pharmacy

dispensed

Dispensed to patient