Prescription API
Recurring prescriptions
Retrieve and manage recurring prescriptions set up for a patient.
GET
/prescriptions/recurringOAuth 2.0prescriptions.read200 OKAuthentication
OAuth 2.0
Required
Permissions
prescriptions.read
Required
Rate limit
600 requests / min
Default
Caching
30 seconds
Recommended
Response
200 OK
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| patient_id | uuid | Yes | Filter by patient ID |
| status | string | No | active, paused, completed, cancelled, all |
| page | integer | No | Page number |
| limit | integer | No | Items per page |
Filter by status values
| Value | Description |
|---|---|
| active | Generates future prescriptions |
| paused | Temporarily paused |
| completed | All occurrences completed |
| cancelled | No future occurrences |
| all | All recurring prescriptions |
Response fields
| Field | Type | Description |
|---|---|---|
| id | uuid | Recurring prescription ID |
| patient_id | uuid | Patient identifier |
| medication_summary | object | Medication and dosage summary |
| interval | object | Recurrence configuration |
| next_occurrence | date-time | Next scheduled occurrence |
| status | string | Current status |
Example request
cURL
curl -X GET 'https://api.mediloop.com/v1/prescriptions/recurring?patient_id=pat_123&status=active&page=1&limit=25' \
-H 'Authorization: Bearer $ACCESS_TOKEN'Example response
200 OK{
"data": [{"id":"recur_789","patient_id":"pat_123","status":"active","next_occurrence":"2026-08-26T08:00:00Z"}],
"meta":{"page":1,"limit":25,"total":3}
}Example response
Recurring records describe the schedule; generated prescription occurrences remain separately auditable clinical records.
Errors
| HTTP | Description |
|---|---|
| 200 | Request completed successfully |
| 201 | Resource/action created |
| 400 | Validation error |
| 401 | Authentication required |
| 403 | Insufficient permission or scope |
| 404 | Prescription not found |
| 409 | Lifecycle or concurrency conflict |
| 422 | Unprocessable clinical/request data |
Workflow
| Action | Purpose |
|---|---|
| Create | Define a recurring treatment schedule |
| Pause | Temporarily stop generation |
| Resume | Continue future occurrences |
| Cancel | Stop future occurrences permanently |