Jump to content

Recommended Posts

Hi Guys,

 

I have a project where i have to do a patient doctor appointment, i have build a db with table with patient and doctor, but i am not sure about the tables or date and time scheduling for appointment?

 

Each and every doctor has their own dates and timing,plz give me some tips in building these.

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/228680-help-me-on-calendar-and-time-scheduling/
Share on other sites

IMO you would do better with an individual table for each doctor, as well as a control table that holds the particulars of that practitioner.  That would then make things much easier

 

Hi,

Thanks for your reply, you mean  1000 tables for 1000 doctors

I have done a similar project with staff appointments, I setup a staff table and included the days of the week in that table for each staff member, for each day of the week I listed the times the staff member is available for appointments, I also had a check column to called onleave which showed if the staff member was currently working.

 

I then stored the appointments in an appointment table, which contained the appointment details the clientID and the staffID.

 

I also had a services table which held the service information and the time it took to perform each service, which is used to display the available times for a service or group of services depending on what the client selected on any particular day.

 

I used a calander function which then checked the staff table for available times for each staff member and displayed the times. I set out the schedule in 15min increments and a client can select the 15min start block they wanted from the available times.

I have done a similar project with staff appointments, I setup a staff table and included the days of the week in that table for each staff member, for each day of the week I listed the times the staff member is available for appointments, I also had a check column to called onleave which showed if the staff member was currently working.

 

I then stored the appointments in an appointment table, which contained the appointment details the clientID and the staffID.

 

I also had a services table which held the service information and the time it took to perform each service, which is used to display the available times for a service or group of services depending on what the client selected on any particular day.

 

I used a calander function which then checked the staff table for available times for each staff member and displayed the times. I set out the schedule in 15min increments and a client can select the 15min start block they wanted from the available times.

 

Thanks  dragon_sa  you for sharing your project, i got some input from them

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.