Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Order and request devices for patient care.
DeviceRequest
const { data: request } = await clinik.deviceRequests.create({ intent: 'order', code: 'Continuous Glucose Monitor', patientId: 'pt_abc123', status: 'active', priority: 'routine', requesterId: 'prac_dr456', occurrenceDateTime: '2024-03-01', reasonCode: ['Type 2 Diabetes — glucose monitoring'], note: 'Patient to use CGM for 14-day glucose monitoring cycle', });
const { data } = await clinik.deviceRequests.create({ intent: 'order', code: { system: 'http://snomed.info/sct', code: '706689003', display: 'Continuous glucose monitoring system', }, patientId: 'pt_abc123', priority: 'urgent', requesterId: 'prac_dr456', });
// Draft → Active → Completed await clinik.deviceRequests.update(request.id, { status: 'completed', note: 'CGM delivered and activated for patient', });
// Find all active device requests for a patient const { data } = await clinik.deviceRequests.search({ patientId: 'pt_abc123', status: 'active', }); // Find all orders const { data: orders } = await clinik.deviceRequests.search({ intent: 'order', status: 'active', });
proposal
plan
directive
order
original-order
reflex-order
filler-order
instance-order
option