Clinic & Room API (React Native)
A Clinic represents a healthcare facility. A Room is an individual examination or treatment space within the clinic.
Load clinic information
The clinic setting returns all clinic configuration, including name, domain, code, logo, intake schema, and other details.
await VSeeClinicKit.getAccountSetting()
Example usage
const [clinicName, setClinicName] = useState(null);
useEffect(() => {
_loadClinicSetting();
}, []);
const _loadClinicSetting = async () => {
const account = VSeeClinicKit.getAccountSetting();
setClinicName(account.name);
};
Load room information
To load room information, you need the room code.
await VSeeClinicKit.getRoom(code: string)
| Parameter | Type | Description |
|---|---|---|
code | String | The room code the user entered. |
Search a room
await VSeeClinicKit.searchRooms(params)
| Parameter | Type | Description |
|---|---|---|
domain | String | Search by clinic domain. |
code | String | Search by clinic code. |
slug | String | Search by the room's slug. |
name | String | Search by the room's name. |
Load a room's providers
Get the list of providers in a room, for example to show them on a room screen or in the appointment scheduling flow.
await VSeeClinicKit.getRoomProviders(code: string)
| Parameter | Type | Description |
|---|---|---|
code | String | The room code provided by the provider. |