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 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...
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 don't use handwriting and i need unique answer ... Thank you Q3: Consider the following...
******Please don't use handwriting and i need unique answer ... Thank you Q3: Consider the following relation: Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building) Having following multivalued dependencies:             F ={ Student-ID ®® Course                    Student-ID ®® SportsActivity                      Dept-Name ®® Building } Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here...
******Please don't use handwriting and i need unique answer ... Thank you Q3: Consider the following...
******Please don't use handwriting and i need unique answer ... Thank you Q3: Consider the following relation: Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building) Having following multivalued dependencies:             F ={ Student-ID ®® Course                    Student-ID ®® SportsActivity                      Dept-Name ®® Building } Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here...
****** please don't copy and paste and don't use handwriting ****** I need a unique answer...
****** please don't copy and paste and don't use handwriting ****** I need a unique answer Q1: Write HTML code to get the following output that include the following elements. The title is: Favorite Books Large heading with text “Your Favorite Books” Form that has 3 input values (two text boxes and one drop down list) Drop-down list contains the following options, Pearson Wiley Mc-Graw Hill Submit information to “books.php” using GET request. Q2:Display a simple message "Welcome" on your...
****** please don't copy and paste and don't use handwriting ****** I need a unique answer...
****** please don't copy and paste and don't use handwriting ****** I need a unique answer Q3: According to Ed Leonard, the CTO at DreamWorks “Shrek 3 consumed 20 million CPU render hours with 3000+ server CPUs, with 24TB file size”. Suppose the personal computer CPU advanced so much so that we accomplished that goal by fabricating 3000-core Processor Motherboard. Would this new multicore machine perform as well as the parallel processing employed by DreamWorks? Give 2 justifications to support...
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 ** please don't copy and paste i need unique answer.. PHC...
** please don't use handwriting ** please don't copy and paste i need unique answer.. PHC 271 Case Study (2) A 52-year-old gentleman comes to your office with a history of intermittent difficulty swallowing solid food. His symptoms have been present for the past 5 years. He points to his supraclavicular notch when describing where the food feels stuck, although he can chew his food and transfer it into his posterior pharynx without difficulty. He does not choke or cough...
** please don't use handwriting ** please don't copy and paste i need unique answer.. PHC...
** please don't use handwriting ** please don't copy and paste i need unique answer.. PHC 216 Choose any ethical issue in healthcare that interests you in medical ethics. (in 500 words) Explain why you selected this topic and why it merits in-depth analysis. Analyze the implications of the issue for both society and the individual.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT