# Intake & Visit API URL: https://developers.vsee.com/guides/clinickit/react-native-intake-visit-api ### Intake An intake is the initial registration information collected from a patient for their visit. #### Create intake Create an intake with the given configuration. ```js const createIntakeResponse = await VSeeClinicKit.createIntake({ reason_for_visit?: string; member_id?: string; room_code?: string; location?: string; attachments?: string[]; }); ``` | Parameter | Type | Description | | --- | --- | --- | | `attachments` | `string[]` | Array of attachment IDs. | | `location` | `string` | | | `member_id` | `string` | | | `reason_for_visit` | `string` | Reason for visit. | | `room_code` | `string` | | #### Update intake Update the current intake with the given parameters. ```js await VSeeClinicKit.updateIntake({ id: string; key: value; }); ``` | Parameter | Type | Description | | --- | --- | --- | | `id` | `string` | ID of the intake to change. | | `key: value` | | Key-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. ```js const createVisitResponse = await VSeeClinicKit.createWalkinVisit({ intake_id: intakeId, room_code: 'your-room-code', // The room code of the clinic }); ``` | Parameter | Type | Description | | --- | --- | --- | | `intake_id` | `string` | The intake ID from the create intake request. | | `room_code` | `string` | Room code to create the visit in. | #### Schedule a visit ##### Get available slots To schedule a visit, first get the available slots. ```js const availableSlots = await VSeeClinicKit.getAppointmentSlots({ room_code: string; start: number; end: number; duration: number; provider_id?: string; intake_id: string; consultation_id: string; }); ``` | Parameter | Type | Description | | --- | --- | --- | | `room_code` | `string` | Room code. Required. | | `start` | `number\|timestamp` | Return slots from this time. | | `end` | `number\|timestamp` | Return slots up to this time. | | `duration` | `number` | Slot duration, in seconds. | | `intake_id` | `string` | Intake ID, used to filter slots by location or specialty. | | `consultation_id` | `string` | The visit option ID. If you don't pass `duration`, it is taken from the consultation. | ##### Create an appointment from a slot ```js const appointment = await VSeeClinicKit.createAppointment({ slot_start: number; slot_end: number; room_code: string; provider_id?: string; intake_id: string; }); ``` | Parameter | Type | Description | | --- | --- | --- | | `room_code` | `string` | Room code. Required. | | `slot_start` | `number\|timestamp` | Appointment start time. | | `slot_end` | `number\|timestamp` | Appointment end time. | | `provider_id` | `number` | Provider ID. | | `intake_id` | `string` | Intake ID, used to filter slots by location or specialty. | #### Get visits Get the list of visits. ```js const visits = await VSeeClinicKit.getVisits({ provider_id?: string; member_id?: string; start_date?: number; end_date?: number; }); ``` | Parameter | Type | Description | | --- | --- | --- | | `provider_id` | `string` | Return visits for this provider. | | `member_id` | `string` | Return visits for this patient (member). | | `start_date` | `number\|timestamp` | Return visits from this date. | | `end_date` | `number\|timestamp` | Return visits up to this date. |