vnaidoo18 — 2009-05-20T04:48:49-04:00 — #1
Could someone please assist with enhanced E-R Diagram given the following information:
- A hospital is composed of 10 wards; each ward has up to 30 rooms.
- Each ward is uniquely identified by a unique number (e.g. W1) and name (e.g.“Obstetrics”).
- There are two main groups of stakeholders: hospital staff and patients.
- Hospital staff is exhaustively divided into care (GPs, nurses, social carers) and administration (administrative staff).
- Every hospital staff member is necessarily also a member in one of the subgroups.
- Some carers do both social care and nursing.
- The hospital provides two basic services to patients: treatments and
- GPs administer medicine and treat patients. Nurses do only administer
medication. Social cares only provide treatment.
- Each treatment has a name and one of three priority levels: low, medium,
high. Medications have a dosage and times when they should be administered.
- Each patient has a patient admittance number and name written on a wrist band and stays in a room. A room has up to ten beds, but a patient with private health insurance has their own room. The private health insurance number is recorded for all such patients. It is important to know which beds are free in cases of emergency (e.g., flu outbreak)
- A patient’s address comprises house/unit number, street, city and postcode.
Could you create the database and entities, relational model. As having trouble understanding the concept.
:)Thank you so much, in advance.:)
r937 — 2009-05-20T07:42:05-04:00 — #2
sorry, we don't do homework assignments here at sitepoint
you must make an effort yourself -- show us what you've done, and ask questions if you think something isn't right
vnaidoo18 — 2009-05-20T07:46:01-04:00 — #3
wasn't asking to do the assignment for me.just to give me some ideas on were to begin.
r937 — 2009-05-20T13:44:17-04:00 — #4
i would start by modelling your main entities -- staff, rooms, patients, wards, services, etc.
system — 2009-05-20T23:22:53-04:00 — #5
I have a question with the above ^ response.
You said start by modeling the main entities.
main entities -- staff, rooms, patients, wards, services, etc.
Why would you write in rooms as a main entity?
10 wards with unique names/numbers each has up to 30 rooms. Wouldn't the rooms come underneath the wards?
I've got this task to do too, unfortunately I'm not very experienced in this topic either :P.
r937 — 2009-05-20T23:25:23-04:00 — #6
no, not "underneath" -- "within"
the idea is that wards and rooms are related -- and relationships is what an ER model is all about
system — 2009-05-21T00:49:12-04:00 — #7
So the "rooms" entity is "within" the "ward" entity? It's an....N:N type relationship isn't it? Multiple wards with multiple rooms?
Sorry I'm hijacking this thread almost :(. Didn't want to make another one for the same question.
r937 — 2009-05-21T06:50:09-04:00 — #8
rooms are within wards (in the real world), but entities are not "within" entitites
what you can say is that the rooms entity is related to the wards entity, and the nature of the relationship is "within"-ness
and i don't think it's many-to-many, because a single room is likely not to belong to more than one ward
system — 2009-05-21T07:29:00-04:00 — #9
Just spent a while working on it, think I've worked it out now.
r937 — 2009-05-21T07:53:07-04:00 — #10
i find it interesting that you two guys both have the same homework assignment
what course is this? is it an online school?
system — 2009-05-21T17:04:52-04:00 — #11
No, I am sure we're doing the same subject though. It's a first year Uni IT course called Organizational Databases, the problem was we only had like an hour or two of class to explain the E-R concept/modeling before we moved on to other topics.
I spent a few hours yesterday working out a rough draft and checked with my lecturer that I was doing alright though so :tup:
vnaidoo18 — 2009-05-22T01:20:23-04:00 — #12
yeah, we are in the same course.have got around doing some of the diagram.will post to see if im on the right track.
system — 2009-05-22T23:51:10-04:00 — #13
We don't have to do aggregations, by the way.
I have a question about the Admin relation. Do we just leave it as "Admin" or something related to Hospital Staff? I've got "Admin" -> "Administrative staff", but it looks rather stupid having it there.