Question

In: Computer Science

Requirements Specification (this is a fictional scenario) A large business, with several medical practices, contacted your...

Requirements Specification (this is a fictional scenario)

A large business, with several medical practices, contacted your company to create a database design. You received the task to investigate if there is a need for a hierarchy based on the specifications below, and to create the hierarchy analysis if needed. You must not create the entire analysis but only the aspects related to the hierarchy as described in the instructions, class lectures and sample examples. This is the relevant fragment from the requirements specification related to your task.

In the practice we have medical doctors, nurses, staff and other employees (e.g. cleaners for which we just keep contact information: name, SSN, phone).

For the doctors we keep the name, SSN, phone, email, main specialty, medical school. A doctor may have appointments and write prescripions. For nurses we keep the name, SSN, phone, and nurse program they completed. A nurse will prepare the patient during the visit and may collect various data. For staff we keep the name, SSN, phone and their role (e.g. receptionist, scheduler, accountant). Based on the practice policies, a nurse will not be allowed to perform staff duties.

The company wants to keep a log with who was working daily, between what hours and in which role. The company also wants to fast identify the role of a person in the organization (e.g. doctor, nurse, ...), based on the last name or id.

  • Which is the supertype?
  • SUPERTYPE_ENTITY_NAME (it might be in the current model or it might be a new entity)
  • Which are the subtypes?
  • SUBTYPE_ENTITY_NAME, SUBTYPE_ENTITY_NAME, SUBTYPE_ENTITY_NAME... (they might be in the current model or some might be new entities) Do not include subtypes that are not needed. You must have a justification why you need a subtype to be in the list. Including a subtype that does not store anything specific (attribute or relationship) will be considered a mistake.
  • List the common attributes for the supertype and its PK:
  • SUPERTYPE (PRIMARY_KEY, ATTRIBUTE, ATTRIBUTE, ....)
  • [Composite/Simple/Surrogate] Primary Key: PRIMARY_KEY
  • List the specific attributes for the subtypes and their PKs/FKs:
  • For each subtype provide:
  • SUPERTYPE (PRIMARY_KEY, ATTRIBUTE, ATTRIBUTE, ....)
  • Primary Key: PRIMARY_KEY
  • Foreign Key: FOREIGN_KEY references primary key ... in ...
  • List the hierarchy relationships:
  • ENTITY relation ENTITY (repeat as needed)
  • Analyze the completeness constraint:
  • The hierarchy has complete/partial subtypes, because ...
  • Analyze the disjoint constraint:
  • The hierarchy has disjoint/overlapping subtypes, because ...
  • Do you need a subtype discriminator? Explain.
  • The hierarchy needs (does not need) a subtype discriminator because ...
  • Describe the subtype discriminator (if needed):
  • The subtype discriminator is: .... with the values ...
  • Entity Relationship Diagram
  • After you finished the hierarchy analysis you must draw the ERD in MySQL Workbench and include in your report a signed screenshot. (to sign a screenshot you write your name in a text object visible in the screenshot; crop the image to show only the ERD and the text object)
  • Draw the hierarchy using 1:1 relationships, add the correct constraints symbol and the subtype discriminator if needed.

Solutions

Expert Solution

a) Here we can take the employees as a supertype because all the staff including doctors, nurses, staffs and other employees share a some common type of informations. So the super type is SUPERTYPE employees ;

b) the subtypes are doctors, staffs, nurses. because these peoples are also working under the same place but have different duties . So we can consider them as subtypes.

SUBTYPE are doctors,nurses, staffs, other_employees ;

c)

  • employees(employee_ID, name, phone, working_period, role)PRIMARY KEY :employee_ID.

d)

  • doctors(doctor_ID, employ_ID,email, main specialty, medical school)PK:doctor_ID, FK:employ_ID(links to employees table with Employee_ID. and this doctors entity is a supertype of the following subtypes because a doctor can have appointments and prescriptions. The subtype appointment have the attributes like appointmentID(pk), doc_ID(fk),appointment_date,appointment_time,venue. The subtype prescription have the following attributes - prescription_ID(pk), doc_ID(fk), prescriptions,patient_ID(fk links to any patient details. FK:employ_ID used to link this table to the employees table with employee_ID.
  • nurses(nurse_ID, employ_ID, nurse_program). Primary key:nurse_ID, Foreign key:employ_ID links to employees table with employee_ID.The nurse entity is a supertype of a subtype patient. The patient entity will holds the following attributes-patientID(pk) , name, phone, address, status.
  • staffs(staffID, employID, role), PK:staffID, FK:employID (links this table to the employees table with employee_ID).

Here we do not include other staff as a subtype because we don't want to store any special information about those type of employees.


Related Solutions

Consider this scenario: You are employed as a Business Analyst for a large logistics corporation. Your...
Consider this scenario: You are employed as a Business Analyst for a large logistics corporation. Your main function is to identify options and solve problems that ultimately improve supply chain business systems. Your supervisor has made you aware of a situation whereby email notifications are being sent through your Information Technology Department to customers that are being characterized as late, inconsistent, and not having pertinent shipping information. Your supervisor’s concern is that these emails will potentially drive your customers away,...
An accounting firm has just contacted your consulting business for assistance. They want to hire someone...
An accounting firm has just contacted your consulting business for assistance. They want to hire someone to do accounting and payroll. The bookstore is downstairs, while the office is upstairs in an older building. The essential functions of the job include operating a computer, maintaining a ledger, providing the owner with financial statements, completing tax returns, paying bills and employees, and balancing the bank statements. The desk for this is at the top of a flight of 24 steps. There...
Scenario: As a business investment, you are planning to open several donut shops throughout the city...
Scenario: As a business investment, you are planning to open several donut shops throughout the city of Riyadh, with potential futu.re expansion plans in other city areas in Saudi Arabia including Jeddah, Dammam, Khobar and Al Hofuf. Your initial plan will offer a wide variety of donuts and assorted beverages (coffee, tea, juices, etc.) Currently, the only competitors you will face in the above mentioned locations are two global organizations, with no local competitors in the market for those locations....
Read the scenario below, and address the subsequent requirements. You are analyzing cost data for your...
Read the scenario below, and address the subsequent requirements. You are analyzing cost data for your boss related to a special order your company is considering from a large customer in Singapore. The following data are applicable to the product being ordered: Normal unit sales price: $49.95 Variable unit manufacturing costs: $10.50 Variable unit selling and administrative costs: $18.25 The customer is requesting that the sales order be accepted on the following terms: The unit sales price equals the unit...
Vernon Yung practices medicine under the business title Vernon Yung, M.D., P.C. During July, the medical...
Vernon Yung practices medicine under the business title Vernon Yung, M.D., P.C. During July, the medical practice completed the following transactions: Jul 1 Yung deposited $68,000 cash in the business bank account. The business issued common stock to Yung. 5 Paid monthly rent on medical equipment, $560. 9 Paid $16,000 cash to purchase land for an office site. 10 Purchased supplies on account, $1,600. 19 Borrowed $23,000 from the bank for business use. Yung signed a note payable to the...
Describe several unique characteristics about Google and its business practices. 2 What is Google's philosophy about...
Describe several unique characteristics about Google and its business practices. 2 What is Google's philosophy about advertising? How can less advertising be preferred to more advertising? 3 Describe the types of online advertising available today. Which type of advertising does Google currently dominate? Why? 4 How can Google be successful in the display advertising business? What other areas of growth are likely to be pursued by Google in the future?
Scenario # 2 Your facility is a large children’s hospital in north Texas. Until recently your...
Scenario # 2 Your facility is a large children’s hospital in north Texas. Until recently your facility was part of a larger health care facility run by the state. The facility is now corporately owned and operated. During this reorganization period a major fire occurred at a local elementary school. Over 100 injured children were sent to your facility for care. You encountered many problems: care was delayed and inappropriate for many children because of the nature of their injuries...
Scenario # 2 Your facility is a large children’s hospital in north Texas. Until recently your...
Scenario # 2 Your facility is a large children’s hospital in north Texas. Until recently your facility was part of a larger health care facility run by the state. The facility is now corporately owned and operated. During this reorganization period a major fire occurred at a local elementary school. Over 100 injured children were sent to your facility for care. You encountered many problems: care was delayed and inappropriate for many children because of the nature of their injuries...
You’ll create a security infrastructure design document for a fictional organization. Your plan will be evaluated according to how well you met the organization's requirements.
You’ll create a security infrastructure design document for a fictional organization. Your plan will be evaluated according to how well you met the organization's requirements. Points will be awarded based on how well you met these requirements, considering the security implications of your choices.The following elements should be incorporated into your plan:Authentication systemExternal website securityInternal website securityRemote access solutionFirewall and basic rules recommendationsWireless securityVLAN configuration recommendationsLaptop security configurationApplication policy recommendationsSecurity and privacy policy recommendationsIntrusion detection or prevention for systems containing...
Scenario: You are a departmental manager in a large community hospital in an urban area. Your...
Scenario: You are a departmental manager in a large community hospital in an urban area. Your organization consists of both outpatient and inpatient services. Admissions data shows that 34% of your clientele is age 65 or older. An additional 16% of your clientele is medically disabled and utilizes Medicare insurance. Many of them have repeated admissions due to poor management of their chronic conditions such as chronic obstructive pulmonary disease (COPD), congestive heart failure (CHF), and diabetes. Thus, a high...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT