Prescription API
Prescription templates
Create and reuse prescription templates for common treatments and protocols.
GET
/prescriptions/templatesOAuth 2.0prescriptions.templates200 OKAuthentication
OAuth 2.0
Required
Permissions
prescriptions.templates
Required
Rate limit
600 requests / min
Default
Caching
60 seconds
Recommended
Response
200 OK
Template model
| Field | Description |
|---|---|
| id | Template identifier |
| name | Human-readable template name |
| items | Medication and dosage defaults |
| owner_id | Owning practitioner |
| organization_id | Optional sharing organization |
| visibility | private or organization |
Query parameters
| Parameter | Type | Description |
|---|---|---|
| visibility | string | private | organization |
| q | string | Search by name |
| page | integer | Page number |
| limit | integer | Items per page |
Create a template
| Field | Required | Description |
|---|---|---|
| name | Yes | Template name |
| items | Yes | Medication defaults |
| visibility | No | private by default |
| notes | No | Template guidance |
Example request
Create template
curl -X POST "https://api.mediloop.com/v1/prescriptions/templates" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Standard amoxicillin","visibility":"private"}'Example response
201 Created{"data":{"id":"tpl_123","name":"Standard amoxicillin","visibility":"private"}}Example response
Templates accelerate authoring but do not bypass clinical validation or signing requirements.