Health Space Manager for appointments, scheduling, and healthcare facility management
Health Space Manager for appointments, scheduling, and healthcare facility management. Provides methods for managing appointments and cancelation handling.
Methods
getAppointments()
getAppointments(
request):Promise<BWellQueryResult<AppointmentBundle,BaseManagerError>>
Retrieves appointment information for the user. Gets scheduled appointments based on search criteria.
Parameters
request
Returns
Promise<BWellQueryResult<AppointmentBundle, BaseManagerError>>
Example
const appointments = await sdk.healthSpace.getAppointments(
new AppointmentsRequest({
date: { value: '2024-01-01', prefix: 'ge' }
})
);cancelAppointment()
cancelAppointment(
request):Promise<BWellTransactionResult<AppointmentUpdate,BaseManagerError>>
Cancels an existing appointment. Marks an appointment as canceled with optional reason.
Parameters
request
Returns
Promise<BWellTransactionResult<AppointmentUpdate, BaseManagerError>>
Example
await sdk.healthSpace.cancelAppointment(
new CancelAppointmentRequest({
id: '123',
cancelationReason: {
text: 'Schedule conflict',
coding: [{ code: 'conflict' }]
}
})
);getCancellationReasons()
getCancellationReasons(
request):Promise<BWellQueryResult<CancellationReasons,BaseManagerError>>
Retrieves available cancellation reasons. Gets predefined reasons for appointment cancellation.
Parameters
request
Returns
Promise<BWellQueryResult<CancellationReasons, BaseManagerError>>
Example
const reasons = await sdk.healthSpace.getCancellationReasons(
new CancellationReasonsRequest({
organization: { value: 'Organization/123' }
})
);