Mediloop
DocsAPIsPrescription APIPrescription templates
Prescription API

Prescription templates

Create and reuse prescription templates for common treatments and protocols.

GET/prescriptions/templatesOAuth 2.0prescriptions.templates200 OK

Authentication

OAuth 2.0

Required

Permissions

prescriptions.templates

Required

Rate limit

600 requests / min

Default

Caching

60 seconds

Recommended

Response

200 OK

Template model

FieldDescription
idTemplate identifier
nameHuman-readable template name
itemsMedication and dosage defaults
owner_idOwning practitioner
organization_idOptional sharing organization
visibilityprivate or organization

Query parameters

ParameterTypeDescription
visibilitystringprivate | organization
qstringSearch by name
pageintegerPage number
limitintegerItems per page

Create a template

FieldRequiredDescription
nameYesTemplate name
itemsYesMedication defaults
visibilityNoprivate by default
notesNoTemplate 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.

Sharing & visibility

VisibilityWho can use it
privateTemplate owner
organizationAuthorized members of the same organization