Mediloop
DocsAPIsPrescription APIPrescriptions
Prescription API

Prescriptions

Understand the prescription resource, lifecycle, core fields and the endpoints used to manage electronic prescriptions.

Authentication

OAuth 2.0

Required

Permissions

prescriptions.read

Required

Rate limit

600 requests / min

Default

Caching

30 seconds

Recommended

Response

200 OK

Prescription resource

FieldMeaning
idPrescription identifier
patient_idPatient reference
prescriber_idPrescriber reference
encounter_idRelated encounter
statusLifecycle status
itemsPrescribed medication items
notesClinical / pharmacy note
signed_atSignature timestamp
routed_pharmacy_idDestination pharmacy
created_atCreation timestamp

Lifecycle

draft

Created by provider

clinically_validated

Clinically validated

signed

Digitally signed

routed

Sent to pharmacy

dispensed

Dispensed to patient

Core fields

GroupExamples
Identityid, patient_id, prescriber_id, encounter_id
Clinicalitems, dosage, frequency, duration, notes
Statestatus, validated_at, signed_at, routed_at
Pharmacyrouted_pharmacy_id, dispensation references
Auditcreated_at, updated_at, version / snapshot metadata

Status values

StatusMeaning
draftCreated and editable by the prescriber
clinically_validatedClinical checks completed
signedImmutable signed snapshot created
routedSent to a pharmacy
dispensedMedication dispensation recorded
cancelledCancelled before completion

Clinical safeguards

Signed prescription snapshots are immutable. Changes after signing should create a new clinical artifact rather than mutating the signed record.