[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

Parameter

Type

Description

code

String

The room code that user entered

Search a room

Parameter

Type

Description

Parameter

Type

Description

domain

String

Search by clinic domain

code

String

Search by clinic code

slug

String

Search by room’s slug

name

String

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

Parameter

Type

Description

code

String

The room code that provide by provider.