...
To add a speciality we can run the following query.
Code Block | ||
---|---|---|
| ||
INSERT INTO appointment_speciality (name, date_created, creator, uuid) VALUES ('Cardiology', NOW(), 1, UUID()); |
Creating a service:
For creating a new Service, only ‘Service Name’ is mandatory.
...
Speciality: This field is configurable. By default it is shown. you can show/hide this by setting “enableSpecialities” to true/false.
Code Block | ||
---|---|---|
| ||
"enableSpecialities": true |
...
Service availability:
If you define a service availability it overrides the service level startTime, endTime and MaxLoad and service is only available on selected days within mentioned timings.
Start Time & End time: working hours for a service on selected days of that availability.Start time must be less than end time. If it is wrong time sequence, you will be notified with a message.
Max Load: This indicates the maximum number of appointments that can be booked for a service availability. Negative values are not allowed.
Days: By default week starts from MONDAY. You can configure the start day of week by assigning a number ranging from [1-7] which indicates [SUNDAY-SATURDAY] to“startOfWeek” in config file.
Ex: If you configure,
Code Block | ||
---|---|---|
| ||
"startOfWeek": 2 |
Code Block | ||
---|---|---|
| ||
"SUNDAY": "Su",
"MONDAY": "Mo",
"TUESDAY": "Tu",
"WEDNESDAY": "We",
"THURSDAY": "Th",
"FRIDAY": "Fr",
"SATURDAY": "Sa" |
...
Multiple availabilities can be tied to one service. All the availabilities are displayed in order they got added.
...