Problem

Case Description After completing a course in database management, you have been hired a...

Case Description

After completing a course in database management, you have been hired as a summer intern by Mountain View Community Hospital. Your first assignment is to work as part of a team of three people to develop a high-level E-R diagram for the hospital. You conduct interviews with a number of hospital administrators and staff to identify the key entity types for the hospital. You have also seen the preliminary enterprise-level diagram shown in MVCH Figure 1-3 and subsequent revisions. As a result, your team has identified the following entity types:

• Care Center—a treatment center within the hospital. Examples of care centers are maternity, emergency care, or multiple sclerosis center. Each care center has a care center ID (identifier) and a care center name.

• Patient—a person who is either admitted to the hospital or is registered as an outpatient. Each patient has an identifier, the medical record number (MRN), and a name.

• Physician—a member of the hospital medical staff who may admit patients to the hospital and who may administer medical treatments. Each physician has a physician ID (identifier) and name.

• Bed—a hospital bed that may be assigned to a patient who is admitted to the hospital. Each bed has a bed number (identifier), a room number, and a care center ID.

• Item—any medical or surgical item that may be used in treating a patient. Each item has an item number (identifier), description, and unit cost.

• Employee—any person employed as part of the hospital staff. Each employee has an employee number (identifier) and name.

• Diagnosis—a patient’s medical condition diagnosed by a physician. Each diagnosis has a diagnosis ID/code and diagnosis name. Mountain View Community Hospital is using the HIPAA-mandated ICD-9-CM Volume 1 diagnosis codes1 for patient conditions (e.g., 00.50, STAPH FOOD POISONING, 173.3, BASAL CELL CARCINOMA, 200.2, MALIGNANT MELANOMA, BURKITT’S TYPE, or 776.5. CONGENITAL ANEMIA).

• Treatment—any test or procedure ordered by and/or performed by a physician for a patient. Each treatment has a treatment ID/treatment code and treatment name using standard codes. HIPAA-mandated ICD-9-CM Volume 3 Procedure Codes are used for diagnostic and therapeutic procedures (e.g., 03.31, SPINAL TAP, 14.3, REPAIR OF RETINAL TEAR, 87.44, ROUTINE CHEST X-RAY, or 90.5, MICROSCOPIC EXAMINATION OF BLOOD).

• Order—any order issued by a physician for treatment and/or services such as diagnostic tests (radiology, laboratory) and therapeutic procedures (physical therapy, diet orders), or drugs and devices (prescriptions). Each order has an order ID, order date, and order time. The team next recorded the following information concerning relationships:

• Each hospital employee is assigned to work in one or more care centers. Each care center has at least one employee and may have any number of employees. The hospital records the number of hours per week that a given employee works in a particular care center.

• Each care center has exactly one employee who is designated nurse-in-charge for that care center.

• A given patient may or may not be assigned to a bed (since some patients are outpatients). Occupancy rates are seldom at 100 percent, so a bed may or may not be assigned to a patient.

• A patient may be referred to the hospital by exactly one physician. A physician may refer any number of patients or may not refer any patients.

• A patient must be admitted to the hospital by exactly one physician. A physician may admit any number of patients or may not admit any patients.

• Prior to a patient being seen by a physician, a nurse typically obtains and records relevant information about the patient. This includes the patient’s weight, blood pressure, pulse, and temperature. The nurse who assesses the vital signs also records the date and time. Finally, the reasons for the visit and any symptoms the patient describes are recorded.

• Physicians diagnose any number of conditions affecting a patient, and a diagnosis may apply to many patients. The hospital records the following information: date and time of diagnosis, diagnosis code, and description.

• Physicians may order and perform any number of services/ treatments for a patient or may not perform any treatment. A treatment or service may be performed on any number of patients, and a patient may have treatments performed or ordered by any number of physicians. For each treatment or service rendered, the hospital records the following information: physician ordering the treatment, treatment date, treatment time, and results.

• A patient may also consume any number of items. A given item may be consumed by one or more patients or may not be consumed. For each item consumed by a patient, the hospital records the following: date, time, quantity, and total cost (which can be computed by multiplying quantity times unit cost).

Reference figure1-3

Consider your new E-R diagram for Case Exercise 4. Now, additionally assume that a care center contains many rooms, and each room may contain items that are billed to patients assigned to that room. Redraw your E-R diagram to accommodate this new assumption.

Reference Case exercise 4

Suppose the attribute bed number were a composite attribute,

composed of care center ID, room number, and individual bed number. Redraw any parts of your answer to Case Exercise 2 that would have to change to handle this composite attribute.

Step-by-Step Solution

Solution 1

Entity-Relationship (E-R) diagram:

The entity-relationship diagram is a graphical illustration of entity-relationship model.

• A logical representation of business data for a business area is the entity-relationship model (E-R model).

o In the business environment, the E-R model is expressed in terms of entities and relationships between the entities.

o The properties of the entities and relationships are expressed in E-R model.

Modify the ER diagram for Mountain View Community Hospital:

• Add the entities of ROOM and ITEM BILLING to existing ER diagram for Mountain View Community Hospital.

Modified Entity Relationship Diagram for the Mountain View Community Hospital is as given below:

C:\Users\300889\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\XNEWY8E1\10943-2-5CE_fig1.jpg

Explanation:

From the above ER diagram:

This system contains the nine entities, such as CARE CENTER, ROOM, EMPLOYEE, BED, PATIENT, PHYSICIAN, DIAGNOSIS, ITEM, and TREATMENT.

CARE CENTER entity type:

• The entity CARE CENTER is identified by the identifier Care Center ID.

• The attributes of the CARE CENTER entity has Care Center Name.

EMPLOYEE entity type:

• The entity EMPLOYEE is identified by the identifier has Employee Number.

• The attributes of the EMPLOYEE entity has Employee Name.

ROOM entity type:

• The weak entity ROOM is identified by the identifier has Room Number.

BED entity type:

• The weak entity BED is identified by the composite identifier has Bed Number.

• The composite attributes of the BED entity has Room Number and Bed Number

PATIENT entity type:

• The entity PATIENT is identified by the identifier has Medical Record Number.

• The attributes of the PATIENT entity has Patient Name.

PHYSICIAN entity type:

• The entity PHYSICIAN is identified by the identifier Physician ID.

• The attributes of the PHYSICIAN entity has Physician Name.

DIAGNOSIS entity type:

• The entity DIAGNOSIS is identified by the identifier Diagnosis Code.

• The attributes of the DIAGNOSIS entity has Diagnosis Name.

ITEM entity type:

• The entity ITEM is identified by the identifier Item Number.

• The attributes of the ITEM entity has Item Description and Item Unit Cost.

TREATMENT entity type:

• The entity TREATMENT is identified by the identifier Treatment Code.

• The attributes of the TREATMENT entity has Treatment Name.

ASSESSMENT associative entity type:

• The associative entity ASSESSMENT between the entity EMPLOYEE and entity PATIENT.

• It contains the attributes of the Visit ID, Visit Date, Visit Time, Visit Comments, Visit Patient Weight, Visit Patient Blood Pressure, Visit Patient Pulse, and Visit Patient Temperature.

o The cardinality relationship between entity EMPLOYEE and associative entity ASSESSMENT is mandatory one to optional many.

o The cardinality relationship between entity PATIENT and associative entity ASSESSMENT is mandatory one to mandatory many.

PHYSICIAN DX associative entity type:

• The associative entity PHYSICIAN DX between the entity PATIENT and entity PHYSICIAN.

• It contains the attributes of the Diagnosis Date and Diagnosis Time.

o The cardinality relationship between entity PATIENT and associative entity PHYSICIAN DX is mandatory one to optional many.

o The cardinality relationship between entity PHYSICIAN and associative entity PHYSICIAN DX is mandatory one to optional many.

o The cardinality relationship between entity DIAGNOSIS and associative entity ITEM CONSUMPTION is mandatory one to optional many.

ITEM CONSUMPTION associative entity type:

• The associative entity ITEM CONSUMPTION between the entity PATIENT and entity ITEM.

• It contains the attributes of the Consume Date, Consume Time, and Consume Quantity.

• It contains the derived attribute of Total Cost.

o The cardinality relationship between entity PATIENT and associative entity ITEM CONSUMPTION is mandatory one to optional many.

o The cardinality relationship between entity ITEM and associative entity ITEM CONSUMPTION is mandatory one to optional many.

ORDER associative entity type:

The associative entity ORDER contains the attributes of the Order ID, Order Date, and Order Time.

• The associative entity ORDER between the entity PATIENT and entity ITEM.

o The cardinality relationship between entity PATIENT and associative entity ORDER is mandatory one to optional many.

o The cardinality relationship between entity ITEM and associative entity ORDER is mandatory one to optional many.

• The associative entity ORDER between the entity PHYSICIAN and entity TREATMENT.

o The cardinality relationship between entity PHYSICIAN and associative entity ORDER is mandatory one to optional many.

o The cardinality relationship between entity TREATMENT and associative entity ORDER is mandatory one to optional many.

Multi-valued relationships in MVC Hospital:

The Mountain View Community Hospital contains the multivalued relationship from the description.

Multi-valued relationship #1:

The multivalued relationship between the entity types of PATIENT and PHYSICIAN are connected with two relationships. There are:

• Refers relationship

• Admits relationship

Refers relationship:

• The relationship between the entity PATIENT and PHYSICIAN is “Refers” and the cardinality relationship is optional many to mandatory one.

o This is because, a patient may refer exactly one physician but physician may or may not refer many patients.

Admits relationship:

• The relationship between the entity PATIENT and PHYSICIAN is “Admits” and the cardinality relationship is optional many to mandatory one.

o This is because, a patient should be admited in hospital by exactly one physician but a physician may or may not admit many patients.

Multi-valued relationship #2:

Another multi-valued relationship in MVC Hospital between the entity types of EMPLOYEE and CARE CENTER are connected with two relationships. They are:

• Has Assigned relationship

• Nurse In Charge relationship

Has Assigned relationship:

The relationship between the entity CARE CENTER and EMPLOYEE is “Has Assigned” and the cardinality relationship is mandatory many to mandatory many.

• This is because, each employee in hospital is assigned to work in more than one care center and each care center has at least one or more than one employee.

Track the record of “Hours Worked” of employee for care center.

• So, the Hours Worked is put into the rectangle with dashed line connected to the “Has Assigned” relationship line.

• The Hours Worked is the property of the relationship Has Assigned.

Nurse In Charge relationship:

The relationship between the entity CARE CENTER and EMPLOYEE is “Nurse In Charge” and the cardinality relationship is optional many to mandatory one.

• This is because; every care center has exactly one employee who is designated as nurse in charge for that care center.

Contains weak relationship:

The weak relationship between the entity ROOM and BED is “Contains” and the cardinality relationship is mandatory one to optional many.

• This is because; each many may or may not contain at least one bed.

Contained In relationship:

The relationship between the entity CARE CENTER and ROOM is “Contained In” and the cardinality relationship is mandatory one to mandatory many.

• This is because; care center may contain one or more rooms but each room may have at least one item billed to patient.

Is Assigned relationship:

The relationship between the entity BED and PATIENT is “Is Assigned” and the cardinality relationship is optional one to optional one.

• This is because; each bed may or may not be assigned to patient.

Consist Of relationship:

The relationship between the entity ORDER and TREATMENT is “Consist Of” and the cardinality relationship is optional many to optional many.

Track the records of the “Treatment Date”, “Treatment Time”, and “Results”.

• So, the Treatment Date, Treatment Time, and Results are put into the rectangle with dashed line connected to the “Consists Of” relationship line.

• The Treatment Date, Treatment Time, and Results are the property of the relationship Consists Of.

Assumptions made to develop the Entity Relationship diagram of Mountain View Community Hospital are:

• EMPLOYEE entity type and its attributes can serve as the Nurse in Charge for one or more care centres.

o It is the Mandatory many cardinality constraints.

• For ASSESSMENT entity type,

o Visit ID is a unique identifier.

• To record the patients Visit Reason and Symptoms in the Visit Comments attributes for ASSESMENT entity type.

• For BED entity, Bed Id is composite identifier and it is represented as partial identifier as Room Number to complete the unique identifier and also the identifier Room Number is included in later modelling.

Add your Solution
Textbook Solutions and Answers Search