[React Native] Clinic & Room API
Â
A Clinic
represents a healthcare facility, while Room
is individual examination or treatment spaces within the clinic.
Load clinic information
The clinic setting will return all clinic configurations, including name, domain, code, logo, intake schema, and other relevant 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 to have the room code.
await VSeeClinicKit.getRoom(code: string)
Parameter | Type | Description |
---|---|---|
|
| The room code that user entered |
Search a room
Parameter | Type | Description |
---|---|---|
|
| Search by clinic domain |
|
| Search by clinic code |
|
| Search by room’s slug |
|
| Search by room’s name |
Â
Load room’s providers
You can get the list of providers in the room, which is useful in case to show a list of providers in-room screen or in the appointment scheduling flow
Â
Parameter | Type | Description |
---|---|---|
|
| The room code that provide by provider. |