If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > clinic management database design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-09, 10:30
solomon13000 solomon13000 is offline
Registered User
 
Join Date: Oct 2006
Posts: 29
clinic management database design

I have concern for this 3 tables:

Appointment
-AppointmentID
-PatientID
-DoctorID
-AppointmentDate

Treatment
-TreatmentID
-PatientID
-DoctorID
-Treatment
-TreatmentDate
-Fees

Visits
-VisitID
-DoctorID
-PatientID
-VisitDate

The doctor can have 1 or more appointment. A patient can have 1 or more appointment. So the doctor and patient is associated through the appointment.

The doctor can provide 1 or more treatment. Each patient receives 1 or more treatment. So the doctor and patient is associated through the treatment.

The patient can go for 1 or more visits. A doctor can have 1 or more visits. The patient and doctor is associated through the visit.

Therefore how can visits and appointment be associated with treatment?.
Attached Thumbnails
clinic management database design-classdiagram.gif  

Last edited by solomon13000; 07-27-09 at 10:34.
Reply With Quote
  #2 (permalink)  
Old 07-27-09, 11:46
solomon13000 solomon13000 is offline
Registered User
 
Join Date: Oct 2006
Posts: 29
I carefully relook at my diagram and now I understand
However is it advisable to have a status attribute inside the visit class?
status: Arrived, Visited, Left
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On