6. Patient Charges 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 The Patient class's__init__ method should accept an argument for each attribute. The • Name and phone number of emergency contact 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 Johould accept an argument for each

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
6. Patient Charges
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
●
The Patient class's init__ method should accept an argument for each attribute. The
Name and phone number of emergency contact
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
107
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
Next, write a program that creates an instance of the Patient class, initialized with sample
data. Then, create three instances of the Procedure class, initialized with the following data:
Procedure #1:
Procedure name: Physical Exam
Date: Today's date
Practitioner: Dr. Irvine
Charge: 250.00
Procedure #2:
Procedure name: X-ray
Date: Today's date
Practitioner: Dr. Jamison
Charge: 500.00
Procedure #3:
Procedure name: Blood test
Date: Today's date
Practitioner: Dr. Smith
Charge: 200.00
The program should display the patient's information, information about all three of the
procedures, and the total charges of the three procedures.
Transcribed Image Text:6. Patient Charges 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 ● The Patient class's init__ method should accept an argument for each attribute. The Name and phone number of emergency contact 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 107 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 Next, write a program that creates an instance of the Patient class, initialized with sample data. Then, create three instances of the Procedure class, initialized with the following data: Procedure #1: Procedure name: Physical Exam Date: Today's date Practitioner: Dr. Irvine Charge: 250.00 Procedure #2: Procedure name: X-ray Date: Today's date Practitioner: Dr. Jamison Charge: 500.00 Procedure #3: Procedure name: Blood test Date: Today's date Practitioner: Dr. Smith Charge: 200.00 The program should display the patient's information, information about all three of the procedures, and the total charges of the three procedures.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage