Question

In: Computer Science

please unique answer, no handwriting, for safeAssign Pilgirism submission.API style You have been hired to design...

please unique answer, no handwriting, for safeAssign Pilgirism submission.API style

You have been hired to design a database for prescriptions for RX pharmacies and your first job now is to design an ER model for this database using the following description of that world.

i. patients are identified by their SSN and have other attributes as names, addresses, and ages.

ii. Doctors are identified by their SSN and have other attributes as names, specialty, and years of experience.

iii. Each pharmaceutical company is identified by name and has a phone number.

iv. For each drug, the trade name and formula must be recorded. Each drug is sold by a given pharmaceutical, and the trade name identifies a drug uniquely from among the products of that company. If a pharmaceutical company is deleted, you need not keep track of its products any longer.

v. Each pharmacy sells several drugs and has a price for each. A drug could be sold at several pharmacies, and the price could vary from one pharmacy to another.

vi. Doctors prescribe drugs for patients. A doctor could prescribe one or more drugs for several patients, and a patient could obtain prescriptions from several doctors. Each prescription has a date and a quantity associated with it. You can assume that if a doctor prescribes the same drug for the same patient more than once, only the last such prescriptions needs to be stored.

vii. Pharmaceutical companies have contracts with pharmacies. A pharmaceutical company can have contracts with several pharmacies and a pharmacy can have contracts with several pharmaceutical companies. For each contract, you need to store a start date, an end date and the contract text.

viii. Pharmacies appoint a supervisor for each contract. There must always be a supervisor for each contract.

Hint: Present the conceptual design first, showing (1) all the entities and their attributes, (2) all the relationships and their attributes, (3) all the constraints before drawing your ER.

Specific Requirement /Constraint Type

Requirements and Constraints from the ER diagram

Entities and attributes in ER

(1 Mark)

Relationships and attributes in ER

(0.75 Mark)

Interpretation of each of the constraints represented on the edge labels in ER

(0.75 Mark)

Solutions

Expert Solution

The above diagram is the er diagram

1,All the entities are represented by square boxes and their attributes in ovals.Doctor,patient,drugs,pharmacy,pharmaceutical company are considered as entities here.

2.Attributes used to identify the rows are called primary key and they are represented with a underline.here ssn for patient,ssn for doctor,trade name for drugs,name for pharmaceutical company are primarykeys.

3.Er diagram consists of 3 relationships and are represented by rhombus. prescribes relationshib is between doctor and patient.sold by relationship is between drugs and pharmacy.contract relationship between pharmacy and pharmaceutical company.

4.M indicates many to many relationship and is required for all 3 relationships in both directions.


Related Solutions

please unique answer, no handwriting, for safeAssign Pilgirism submission.API style in Details , Portfolio management, program...
please unique answer, no handwriting, for safeAssign Pilgirism submission.API style in Details , Portfolio management, program management, project management and organizational project management are key disciplines associated with the modern project management. Discuss relationships among these disciplines by recognizing their similarities and differences.
please i need unique answer , don't copy and paste ,, don't use handwriting.. can you...
please i need unique answer , don't copy and paste ,, don't use handwriting.. can you complete my answer , i need you answer b only Question: 3- Al Yamamah Steel Industries Co. uses the step method for allocating the costs of its service departments to operating departments. The company has two support departments (Human Resource and Information Technology) and two operating departments (Hot Rolled Hollow Steel and Cold Rolled Hollow Steel). Al Yamamah Steel Industries Co. decided to allocate...
PLEASE ANSWER ASAP IF POSSIBLE!!! 7. You have been hired as the accountant for a newly...
PLEASE ANSWER ASAP IF POSSIBLE!!! 7. You have been hired as the accountant for a newly formed real estate company called Antsy Real Estate Limited. The following business transactions occurred during the month of September, 2022: 1.    Shareholders invested $35,000 in cash for 35,000 common shares to start the corporation. 2.    Signed a lease for office space, at $9,500 per year for five years. 3.    Paid $250 cash for supplies. 4.    Purchased equipment for $12,000, paying $7,000 in cash and...
Experimental Study Design Suppose that you have been hired by the university administration to design a...
Experimental Study Design Suppose that you have been hired by the university administration to design a randomized experimental study to assess the following hypothesis among undergraduate students: Attending weekly yoga classes leads to better performance on exams. Be sure that your study design addresses the following elements: Refine the study hypothesis so that it is as specific as possible and contains all elements of a “good” hypothesis. Remember that the design, conduct, and analysis of the study flows from the...
please don't use handwriting .. use your own words i need unique answer .. please don't...
please don't use handwriting .. use your own words i need unique answer .. please don't copy and paste Q1.Dala Corporation is considering a project, which will involve the following cash inflows and (out) flows Details Amount Initial Outlay SAR (400000) After 1 Year SAR 40000 After 2 Years SAR 300000 After 3Years SAR 300000 What will be the NPV of this project if a discount rate of 15% is used? _________________ Q2.Merck Inc. is about to undertake a project...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please). (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please). (i need references URL Link) General Question ** How to perform logistic regression in SPSS?
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
***Please only answer 2,3, and 4***** You have just been hired as a new management trainee...
***Please only answer 2,3, and 4***** You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company has done very little in the way of budgeting and at certain times of the year has experienced a shortage of cash. Since you are well trained in budgeting, you have decided to prepare a master budget for the upcoming second...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT