clinik.prescriptions namespace manages FHIR MedicationRequest resources — electronic prescriptions that authorize a medication for a patient. Each prescription links a patient to a prescribing practitioner and a medication, and carries dosage instructions, refill counts, and dispensing rules. Use clinik.medications to manage the underlying medication catalog.
create
Create a new prescription. ThepatientId, prescriberId, and medication fields are required.
ID of the patient receiving the prescription.
ID of the prescribing practitioner.
The medication to prescribe. Pass an RxNorm code object or a plain-text drug name.
Encounter during which the prescription was written.
Prescription intent. Accepted values:
proposal, plan, order (default), original-order.Prescription status. Accepted values:
active (default), on-hold, cancelled, completed, draft.Dispensing priority. Accepted values:
routine, urgent, asap, stat.Human-readable dosage instructions for the patient and pharmacist.
Structured dosage object with
dose, frequency, period, and route fields. Use this alongside dosageText for systems that need machine-readable dosing.Number of authorized refills. Accepted range:
0–99.Quantity to dispense, for example
{ value: 30, unit: 'tablets' }.Expected number of days the supply will last.
Whether the pharmacist may substitute a generic equivalent. Defaults to
true.Clinical indication or diagnosis code for prescribing this medication.
Notes to the pharmacist or care team.
Example
read
Fetch a single prescription by ID.update
Partially update a prescription. Only the fields you include are changed.Example: put a prescription on hold
delete
Permanently delete a prescription record.search
Search prescriptions with filters on patient, prescriber, status, and medication.Filter by patient.
Filter by prescribing practitioner.
Filter by prescription status.
Filter by medication name or code.
Results per page.
Pagination cursor from a previous response.