Skip to main content

clinik.prescriptions

create

const { data, meta } = await clinik.prescriptions.create(request: PrescriptionCreateRequest): Promise<ApiResponse<MedicationRequest>>
FieldTypeRequiredDescription
patientIdstringYesPatient reference
prescriberIdstringYesPrescribing practitioner
encounterIdstringNoEncounter reference
medicationstring | { system?, code, display? }YesRxNorm code or name
intentstringNoproposal, plan, order (default), original-order
statusstringNoactive (default), on-hold, cancelled, completed, draft
prioritystringNoroutine, urgent, asap, stat
dosageTextstringNoHuman-readable dosage
dosageobjectNoStructured dosage (dose, frequency, period, route)
refillsnumberNoNumber of refills (0-99)
quantity{ value, unit }NoQuantity to dispense
supplyDaysnumberNoExpected supply duration
substitutionAllowedbooleanNoAllow generic substitution
reasonstringNoClinical reason
notestringNoPharmacist notes
statusReasonstringNoReason for current status (e.g. why on-hold)
categorystringNoCategory (inpatient, outpatient, community, discharge)
doNotPerformbooleanNoTrue if prohibiting the medication
authoredOnstringNoWhen authored (defaults to now)
performerIdstringNoIntended performer of administration
courseOfTherapystringNoCourse type (continuous, acute, seasonal)
priorPrescriptionIdstringNoReference to replaced prescription
Same pattern as other resources. Search supports patientId, prescriberId, status, and medication filters.