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.:)
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
wasn't asking to do the assignment for me.just to give me some ideas on were to begin.
i would start by modelling your main entities -- staff, rooms, patients, wards, services, etc.
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.
no, not "underneath" -- "within"
the idea is that wards and rooms are related -- and relationships is what an ER model is all about
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.
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
Just spent a while working on it, think I've worked it out now.
i find it interesting that you two guys both have the same homework assignment
what course is this? is it an online school?
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:
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.
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.
This topic is now archived. It is frozen and cannot be changed in any way.