RSS Forums RSS

need help e-r diagram

Please support our Database Design advertiser: Programming Forums
Reply
Posts: 3
Reputation: nano99r is an unknown quantity at this point 
Solved Threads: 0
nano99r nano99r is offline Offline
Newbie Poster

need help e-r diagram

  #1  
Sep 19th, 2008
I need to create a er diagram which is a entity relationship diagram about a hospital. My professor gave us a case study and the data requirements are wards, staff, patients, patient's next-of-kin, local doctors, patient appointment, out-patients, in-patients, patient medication, surgical and non surgical supplies, pharmaceutical supplies, ward requisitions, and suppliers. I don't know how to design it or even where to start. can someone please help me???
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,480
Reputation: ithelp has a spectacular aura about ithelp has a spectacular aura about ithelp has a spectacular aura about 
Solved Threads: 99
ithelp's Avatar
ithelp ithelp is offline Offline
Nearly a Posting Virtuoso

Re: need help e-r diagram

  #2  
Sep 19th, 2008
First identify the relationship between the entities , patient has m:n relationship with staff ,etc .
Reply With Quote  
Posts: 3
Reputation: nano99r is an unknown quantity at this point 
Solved Threads: 0
nano99r nano99r is offline Offline
Newbie Poster

Re: need help e-r diagram

  #3  
Sep 19th, 2008
Thats the trouble I am having, I don't know how to do the relationships. Can anyone please help???
Reply With Quote  
Posts: 240
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 22
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz in Training

Re: need help e-r diagram

  #4  
Sep 23rd, 2008
Have you spoken to your professor or someone else in the class about this?

It's difficult to help you without knowing exactly what you know about database design. You mention that you don't know "how to do the relationships". There are many steps involved in knowing "how to do the relationships".

Are you familiar with the different types of relationships: 1 to 1, 1 to many, many to many

If you don't know what the relationships are, then that's where you need to start.

If you know what they are, then you need to determine how the tables are related to each other with those relationships. The first step of this is deciding which tables are related to each other (don't worry about the type of relationship). Then go back and determine what type of relationship each relationship should be. After a while, you will be able to do these steps at the same time, but just take it one step at a time for now.
Reply With Quote  
Posts: 6
Reputation: haycalmom is an unknown quantity at this point 
Solved Threads: 1
haycalmom's Avatar
haycalmom haycalmom is offline Offline
Newbie Poster

Re: need help e-r diagram

  #5  
Oct 5th, 2008
If you're still looking for help....

First off, it looks to me like your data requirements are not all entities. Looking at your list it seems like you should have an entity supplies with attributes of surgical, non-surgical, pharmaceutical, etc.

Same with patient, attributes in, out, next of kin, and so on.

Once you figure these out you need to look at how they relate to each other.
i.e.--A doctor sees many patients.
However, I see a lot of many to many relationships in there and you'll have to fix those with another entity.

I'm just starting out with db design too so I can help you out with the simplified stuff.
Drink coffee--Do stupid things faster
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Database Design Forum
Views: 2417 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:36 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC