ClinicKit Mobile SDK / React Native

Intake & Visit API (React Native)

Intake

An intake is the initial registration information collected from a patient for their visit.

Create intake

Create an intake with the given configuration.

const createIntakeResponse = await VSeeClinicKit.createIntake({
    reason_for_visit?: string;
    member_id?: string;
    room_code?: string;
    location?: string;
    attachments?: string[];
});
ParameterTypeDescription
attachmentsstring[]Array of attachment IDs.
locationstring
member_idstring
reason_for_visitstringReason for visit.
room_codestring

Update intake

Update the current intake with the given parameters.

await VSeeClinicKit.updateIntake({
    id: string;
    key: value;
});
ParameterTypeDescription
idstringID of the intake to change.
key: valueKey-value pair to change.

Visit

A visit is an appointment or session of patient care. It stores details such as the appointment time, the provider, and the related intake.

Create a visit from the intake

Create a walk-in visit from an intake.

const createVisitResponse = await VSeeClinicKit.createWalkinVisit({
  intake_id: intakeId,
  room_code: 'your-room-code', // The room code of the clinic
});
ParameterTypeDescription
intake_idstringThe intake ID from the create intake request.
room_codestringRoom code to create the visit in.

Schedule a visit

Get available slots

To schedule a visit, first get the available slots.

const availableSlots = await VSeeClinicKit.getAppointmentSlots({
  room_code: string;
  start: number;
  end: number;
  duration: number;
  provider_id?: string;
  intake_id: string;
  consultation_id: string;
});
ParameterTypeDescription
room_codestringRoom code. Required.
startnumber|timestampReturn slots from this time.
endnumber|timestampReturn slots up to this time.
durationnumberSlot duration, in seconds.
intake_idstringIntake ID, used to filter slots by location or specialty.
consultation_idstringThe visit option ID. If you don't pass duration, it is taken from the consultation.

Create an appointment from a slot

const appointment = await VSeeClinicKit.createAppointment({
  slot_start: number;
  slot_end: number;
  room_code: string;
  provider_id?: string;
  intake_id: string;
});
ParameterTypeDescription
room_codestringRoom code. Required.
slot_startnumber|timestampAppointment start time.
slot_endnumber|timestampAppointment end time.
provider_idnumberProvider ID.
intake_idstringIntake ID, used to filter slots by location or specialty.

Get visits

Get the list of visits.

const visits = await VSeeClinicKit.getVisits({
  provider_id?: string;
  member_id?: string;
  start_date?: number;
  end_date?: number;
});
ParameterTypeDescription
provider_idstringReturn visits for this provider.
member_idstringReturn visits for this patient (member).
start_datenumber|timestampReturn visits from this date.
end_datenumber|timestampReturn visits up to this date.