Skip to main content

clinik.deviceRequests

Device requests represent orders or proposals for a device to be used on a patient.

create

const { data, meta } = await clinik.deviceRequests.create(request): Promise<ApiResponse<DeviceRequest>>
FieldTypeRequiredDescription
intentstringYesproposal, plan, directive, order, etc.
codestring | objectYesDevice being requested
patientIdstringYesPatient ID
statusstringNodraft, active, on-hold, revoked, completed
encounterIdstringNoEncounter during which request was made
prioritystringNoroutine, urgent, asap, stat
occurrenceDateTimestringNoWhen device should be used
occurrencePeriodobjectNoPeriod when device should be used
authoredOnstringNoWhen request was authored (defaults to now)
requesterIdstringNoPractitioner who made the request
performerIdstringNoWho should fulfill the request
performerTypestringNoType of performer
reasonCodestring[]NoReason codes
notestringNoAdditional notes
basedOnstring[]NoBased-on resource IDs

Example

const { data } = await clinik.deviceRequests.create({
  intent: 'order',
  code: 'Continuous Glucose Monitor',
  patientId: 'pt_abc123',
  status: 'active',
  priority: 'routine',
  requesterId: 'prac_dr456',
  reasonCode: ['Type 2 Diabetes monitoring'],
  note: 'Patient to use CGM for 14-day glucose monitoring cycle',
});
Same pattern as other resources. Update supports status, priority, note. Search supports patientId, status, intent, code filters.