Question

Assume that you are working with a hospital and this hospital needs a software system to...

Assume that you are working with a hospital and this hospital needs a software system to track its patients’ information. Your role in this software development is to design the database. There are many aspects of such a hospital software system to develop. However, in this assignment, you will only address interactions between doctors and patients. Your first step will be to create the relations necessary for this system and identify and describe the constraints that would be appropriate for the relations. Currently, hospital representatives describe three entities: Doctor, Patient, and Appointment.

“Doctor” will need information such as a unique identifier for each doctor, doctor name, doctor phone, specialty number, and specialty.

“Patient” will need information such as a unique identifier for each patient, patient name, patient phone, patient e-mail, patient address, date added to the system, allergies (list of any known allergies), and doctor identifier (in our case each patient is admitted by one doctor).

Each patient is treated through appointments. Hence, there should be an “Appointment” relation. The “Appointment” will need information such as a unique identifier, appointment date, doctor and patient identifiers. During the appointment, treatment information such as blood pressure, pulse, treatment notes of the doctor, and medicines should also be included in the “Appointment” relation.

Be sure to identify what are the candidate, primary keys, and the degree of each relation. It would be recommended that you document your relations in the manner used in the Library Management System case study in chapter 3.3 of Sharma et al. (2010, 77).

After determining the relations, identify and describe the constraints that would be appropriate for the relations that we have within our hospital software system.

Constraints that you should consider may include:

  • Entity integrity constraint
  • Referential integrity constraint
  • Semantic integrity constraint
  • Domain constraint
  • Null constraint
  • Unique constraint

The constraints in Bold type should all be present in your assignment.

Assignment Instructions

1. Assignment should include the relations required for the hospital software system as follows:

  • Doctor
  • Patient
  • Appointment

2. Each relation must have identifiers and its data types

3. The degree of each relation must be described

4. Each relation must include appropriate information other than identifiers such as attributes and the data type of attributes

5. The “Doctor” relation should include at least a unique identifier for each doctor, doctor name, doctor phone, specialty number, and specialty

6. The “Patient” relation should include at least a unique identifier, patient name, patient phone, patient e-mail, patient address, patient added date, allergies, and doctor identifier.

7. The “Appointment” relation should include at least a unique identifier, appointment date, doctor and patient identifiers, blood pressure, pulse, treatment notes of doctor and medicines.

8. Identify and describe the constraints for each attribute

Reference

Sharma, N., Perniu, L., Chong, R. F., Iyer, A., Nandan, C., Mitea, A. C., Nonvinkere, M. & Danubianu, M. (2010). Database fundamentals. IBM Canada.

Teacher's note:

for the first assignment you need to create the three relations (Doctor, Patient, and Appointment): for example, I would create something like this:

Doctor Relation:

DoctorID

What Type (Number, Text, etc.)

Describe the constraint

Primary Key:

Candidate Keys:

Degree of relations:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The required relation is described in the figure belowHere Doctor_ID,Patient_ID,Appointment_ID will be the primary keys for their respective tables as it is enough to uniquely identify each tuple in the table.

Since each doctor can treat multiple patients and each patient can be treated by multiple doctors the relation between patient and doctor will be many to many.

A doctor can give multiple appointments and a patient can also ask for multiple appointments hence relation between doctor and appointment is one to many

Relation between patient and appointment is also one to many

Here Varchar datatype represents alphanumeric characters.

Add a comment
Know the answer?
Add Answer to:
Assume that you are working with a hospital and this hospital needs a software system to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Programming Assignment This is a database course using Open Office Database. Assume that you have been...

    Programming Assignment This is a database course using Open Office Database. Assume that you have been given the task of creating a system for a library to keep track of their books, the borrowers of the books, and the books that are currently lent out. Your first step will be to create the relations necessary for this system. Book will need information such as a unique identifier for each book, title, author, ISBN number, date of publication, cost. Borrower will...

  • Diagram the below business rules into a complete EERD. A doctor’s office keeps information on the...

    Diagram the below business rules into a complete EERD. A doctor’s office keeps information on the doctors, the patients, and the medicines a. An id number and name are associated to each doctor, to each patient, and to each medicine. The ids identify each specific person or item. The doctor’s address, phone, and specialty are stored in the system. The patient’s phone number, address, and insurance carrier are stored in the system. Each medicine’s supplier and cost are stored in...

  • Tiny Hospital keeps information on patients and hospital rooms. The system assigns each patient a patient...

    Tiny Hospital keeps information on patients and hospital rooms. The system assigns each patient a patient ID number. In addition, the patient’s last name, first name, date of birth, and date of admission are recorded. Also, every patient is seen by a Physician who develops a treatment plan for the patient. Each Physician may see many patients. Some patients are resident patients (they spend at least one night in the hospital) and others are outpatients (they are treated and released)....

  • Question 3 refers to the relational database with a schema described below: The hospital database contains...

    Question 3 refers to the relational database with a schema described below: The hospital database contains information about the treatments of patients performed by the doctors. The database also contains information on the prescriptions ordered by the doctors. The schemas of relational tables, the meanings of attributes and specifications of primary, candidate, and foreign keys are given below. HOSPITAL HospitalCd Name Address Estate PostalCode EstablishedDate Hospital Code Name of the hospital Address of the hospital The estate where the hospital...

  • Design the entity relationship conceptual schema. Depict the ER diagram you have designed, outlining the entity...

    Design the entity relationship conceptual schema. Depict the ER diagram you have designed, outlining the entity types, relationship types, their respectives attributes, keys, structual constraints, and role names. In designing the entity relationship schema, make the initial conceptual design and the neccessary refinements after that. This will be a hospital database hospital, include patients, each patient will be either inpatient or outpatient and have a unique ID, first name, last name, address, city, zip code, phone number, and room number....

  • Q1) Discuss the term coupling in software design. In a good software design, why modules should...

    Q1) Discuss the term coupling in software design. In a good software design, why modules should have low coupling? Justify with your answer. Q2) Draw the associations that are described by the following business rules. Include the multiplicities for each relationship.    (I)A patient must be assigned to only one doctor and a doctor can have one or many patients. (II)An employee has one phone extension, and a unique phone extension is assigned to an employee. (III) A movie theater...

  • Q1.a) Based on the business rules, you are expected to construct an Entity-Relationship (ER) diagram. The...

    Q1.a) Based on the business rules, you are expected to construct an Entity-Relationship (ER) diagram. The ER diagram should include entities, attributes (if there are less than three specified in the business statements, please add some extra attributes), identifiers and corresponding data types, the relationships among entities with cardinality and associative entities. .b) Extend Q1.a) to apply generalization/specialization technique to construct an Enhanced-ER (EER) diagram. The EER diagram should specify the complete (total) and disjoint (mutuallyexclusive) constraints on the generalization/specialization....

  • The project description As a programmer; you have been asked to write a program for a Hospital wi...

    program Java oop The project description As a programmer; you have been asked to write a program for a Hospital with the following The Hospital has several employees and each one of them has an ID, name, address, mobile number, email and salary. . The employees are divided into Administration staff: who have in addition to the previous information their position. Nurse: who have their rank and specialty stored in addition to the previous o o Doctor: who have the...

  • E/R diagram: Draw a complete Doctors office system E-R diagram using UML or crow’s foot notation...

    E/R diagram: Draw a complete Doctors office system E-R diagram using UML or crow’s foot notation that includes all of the entities, attributes, identifiers. Relationships should be appropriately labeled with verb phrases. Make it neat. Once the E-R model has created, convert the E-R model to a set of relations by using rules. We will call this set of relations the initial set of relations derived from the E-R model. You use to implement your database application in MS Access....

  • DRAW AN ER DIAGRAM TO MAP IT OUT: The Problem: The database you design should be...

    DRAW AN ER DIAGRAM TO MAP IT OUT: The Problem: The database you design should be for the following scenario: OHIP wants to keep track of it's doctors and patients and hospitals. For the doctors, you must keep track of the doctor's license number. The license number is 4 character alphanumeric, for example 4RG2. Also, you must keep track of the doctor's first name (up to 20 letters), last name(up to 20 letters), specialty (up to 30 letters) and the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT