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:
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:
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:
The required relation is described in the figure below
Here 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.
Assume that you are working with a hospital and this hospital needs a software system to...
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...
In unit 2 we learned about constraints. For your unit 2 assignment, identify and describe the constraints that would be appropriate for the relations that we have within our library 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.
Using the Specialty, Doctor, Patient, Appointment, Allergy, PatientAllergy, Medicine, and PatientMedicine relations created for Hospital System database in the Unit 5 Programming Assignment, populate them with data using the following information in the tables. If your relations have additional attributes that are not included in the following table list, then add appropriate values to populate your relations with data. Assignment Instructions: Provide all of the SQL statements required to create the relations Populate the relations with data (using SQL insert...
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...
Given the following requirements: we need to construct a database that manages the hospital data. The hospital contains four departments (Department of Internal Medicine, Orthopedic department, pediatric department, surgery department), each department has several doctors; each department receives and treats several patients. Each doctor has an ID number (unique); Full Name; Gender; Department ID number, each patient has an ID number (unique); Full Name; Gender; Department ID number; Condition (admitted or not), The doctor in charge; the described medications (serial...
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 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...
C++ language Please help. Create a small hospital system, where patients can book appointments. The program should be able to take a patient’s information and the appointment that they’d like to book. It should also be able to display the patients names in order of their appointments (ascendingly). Your program should consist of: Class Person: with private variables name, ID and age. A default and a copy constructor, setters and getters and a print function. Class Patient: inherits from Person....
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 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...