In my use case, I have a requirement that the patients has to select the timing for appointment with the Doctor.
If the Doctor is already booked for an appointment with other patient at a particular time, that timing should not be available for other patients.The available slots of the doctor should be displayed according to the date selected by the patient.For ex: Consider the patient has booked a slot at 9 am on that day then that slot should be blocked for that particular day but it should be displayed as available for the next day. How to implement this scenario??
***Edited by Moderator Marissa to add Capability tags***
Add a Screen @ stage 1 for the patent to provide the input -- in Section Add a Date Control and a Dropdown for the List of Hospital
For the List of hospital create a table and add the Hospital details and source dropdown using the Data page ELSE simple create the local lists if for some collage project
Create some sample Operators for the Doctor community and assign to a workgroup
Next stage Added a new section Specifically for the Doctors
Add a section to show list of doctors - Can be sourced from the Data Table or from the list of operators created @ step 4
keep the checkbox to select the doctor and Submit the screen - also select the slot using Date control for start with, and save the Date to the table.
The source for this Doctor screen have a pre activity to check the available slot from the table
To keep a track of booking maintain it in data table See this seems to be a application build ask / a project, it involve many concepts . As much as possible i have listed here. this need more efforts and understanding of the pega concepts. Hope this would help - this is a simple solution i can think off for now.