Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please follow the instructions above and code in Python in a coding environment (Pychram). Write a class named Patient that has attributes for the following

image text in transcribedimage text in transcribedimage text in transcribedPlease follow the instructions above and code in Python in a coding environment (Pychram).

Write a class named Patient that has attributes for the following data: - First name, middle name, and last name - Address, city, state, and ZIP code - Phone number - Name and phone number of emergency contact The Patient class's __init __ method should accept an argument for each attribute. The Patient class should also have accessor and mutator methods for each attribute. Next, write a class named Procedure that represents a medical procedure that has been performed on a patient. The Procedure class should have attributes for the following data: - Name of the procedure - Date of the procedure - Name of the practitioner who performed the procedure - Charges for the procedure The Procedure class's _ _init _ method should accept an argument for each attribute. The Procedure class should also have accessor and mutator methods for each attribute. 1) Update the Patient class's attributes by adding a new attribute: __procedures, this attribute can store the information of all procedures that every paitent has. Create a new class named "Phone" , this class has two attributes: __phoneNumber, __phoneType (i.e. cell, home, office). Create another class named "Address" that contains attributes: __street, __city, __state, __zipCode 2) UML design: all class attributes must be private, each attribute needs a mutator and an accessor; show the composition of classes (nested class) 3) Create a PatientTester module. In this module, first create an instance of the Patient class, initialized with sample data: Name: Penns K Chung Address: 25 Yearsly Rd, Media, PA 19063 Phone: 610-999-8328 (Cell) Procedures: 3) Create a PatientTester module. In this module, first create an instance of the Patient class, initialized with sample data: Name: Penns K Chung Address: 25 Yearsly Rd, Media, PA 19063 Phone: 610-999-8328 (Cell) Procedures: 4) display the patient's information including the procedures and the total charges for the procedures

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

4. What sales experience have you had?

Answered: 1 week ago