Mediloop
DocsAPIsPrescription APIGet prescription
Prescription API

Get prescription

Retrieve the details of a specific prescription.

GET/prescriptions/{id}OAuth 2.0prescriptions.read200 OK

Authentication

OAuth 2.0

Required

Permissions

prescriptions.read

Required

Rate limit

600 requests / min

Default

Caching

30 seconds

Recommended

Response

200 OK

Path parameters

ParameterTypeRequiredDescription
iduuidYesPrescription identifier

Example request

cURL

curl -X GET "https://api.mediloop.com/v1/prescriptions/presc_456" \
 -H "Authorization: Bearer $ACCESS_TOKEN"

Example response

200 OK
{
  "data": {
    "id": "presc_456",
    "status": "signed",
    "patient_id": "pat_123",
    "items": [{"medication_code":"AMOX500","dose":"500mg"}]
  }
}

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

Prescription model

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

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

Workflow

draft

Created by provider

clinically_validated

Clinically validated

signed

Digitally signed

routed

Sent to pharmacy

dispensed

Dispensed to patient