Question

The Apgar Medical group keeps a patient file for each doctor in the office. Each record...

The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient’s first and last name, home address, and birth year. The records are sorted in ascending birth year order. Two doctors, Dr. Best and Dr. Cushing, have formed a partnership.

make a working version in python

JUST NEED THE PYTHON WORKING VERSION, THANK YOU

0 0
Add a comment Improve this question Transcribed image text
Answer #1
class Doctor:
    def __init__(self, name, speciality):
        self.doctorName = name
        self.speciality = speciality

class Person:
    def __init__(self, firstName, lastName, homeAddress, birthYear, doctor):
        self.firstName  = firstName
        self.lastName = lastName
        self.homeAddress = homeAddress
        self.birthYear = birthYear
        self.Doctor = doctor


if __name__ == "__main__":
    doctor1 = Doctor("Dr. Best", "ABCD")
    doctor2 = Doctor("Dr. Crushing", "ABCD")

    person1 = Person("John", "Wong", "Address lines", 1996, doctor1)
    person2 = Person("Wick", "Wong", "Address lines", 1993, doctor1)
    person3 = Person("Lucy", "Wong", "Address lines", 1994, doctor2)


    list_of_patients = [person1, person2, person3]
    sorted_list_of_patients = sorted(list_of_patients, key=lambda person : person.birthYear, reverse=True)
    print(sorted_list_of_patients)
Add a comment
Know the answer?
Add Answer to:
The Apgar Medical group keeps a patient file for each doctor in the office. Each record...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Diagram the below business rules into a complete EERD. A doctor’s office keeps information on the...

    Diagram the below business rules into a complete EERD. A doctor’s office keeps information on the doctors, the patients, and the medicines a. An id number and name are associated to each doctor, to each patient, and to each medicine. The ids identify each specific person or item. The doctor’s address, phone, and specialty are stored in the system. The patient’s phone number, address, and insurance carrier are stored in the system. Each medicine’s supplier and cost are stored in...

  • 1. Which of the following is PROBABLY a case of medical malpractice? I. A doctor neither...

    1. Which of the following is PROBABLY a case of medical malpractice? I. A doctor neither monitors nor diagnoses cerebral bleeding in a patient with a head injury, resulting in the patient's death. II. A doctor does not examine a person with an eye injury, resulting in vision loss. II. An incorrect diagnosis of cancer on a biopsy (pathology) inspection, leading to unnecessary surgery. A. III only B. I only C. II only D. I, II, III 2. Margaret was...

  • ID: A Date: Class: Name: Medical Ethics - Case Studies You are drawing a specimen of...

    ID: A Date: Class: Name: Medical Ethics - Case Studies You are drawing a specimen of blood on Emma Helm, who says she doesn't like having blood d o she tells you that the sight of blood makes her "queasy." You attempt to make her feel relaxed by Guin talking to her as you help her onto a chair. While you are taking her blood specimen, che hints and hits he head against the side of a cabinet 1. Are...

  • Evaluate the following case study utilizing the AHIMA Code of Ethics, the AHA Patient Care Partnership...

    Evaluate the following case study utilizing the AHIMA Code of Ethics, the AHA Patient Care Partnership and HIPPA guidelines (sample HIPAA Privacy Notice is in Appendix C of textbook). What issues exist in this case study? What are the consequences of the situation? What resolutions are necessary? Jenna Peterson, a 20 year old college student, made an appointment to be seen by Susan Grant, M.D., one of the partners at Mountainside Family Medicine Associates. Jenna had been seeing Dr. Grant...

  • Evaluate the following case study utilizing the AHIMA Code of Ethics, the AHA Patient Care Partnership...

    Evaluate the following case study utilizing the AHIMA Code of Ethics, the AHA Patient Care Partnership and HIPPA guidelines (sample HIPAA Privacy Notice is in Appendix C of textbook). What issues exist in this case study? What are the consequences of the situation? What resolutions are necessary? Jenna Peterson, a 20 year old college student, made an appointment to be seen by Susan Grant, M.D., one of the partners at Mountainside Family Medicine Associates. Jenna had been seeing Dr. Grant...

  • We are going to assume the class is a group of policy makers at a large...

    We are going to assume the class is a group of policy makers at a large insurance company – ABC HMO. Part of our pay is based on the company's financial performance for the current year. Specifically, the company looks at actual vs. projected medical expenses per member. The expected is based on last year's actual adjusted for inflation. One of our planners read the below article in the NY Times and recommends we reduce our coverage of routine breast...

  • Medical Terminology: Building a Medical Vocabulary: ( Case Study) Pick 100 medical terms (NOT 100 words)...

    Medical Terminology: Building a Medical Vocabulary: ( Case Study) Pick 100 medical terms (NOT 100 words) that you learned in class and create a case study This is an example of a case study: HCP224-ONL4 Case Study Assignment ID: 0123 Author Name: Email Address: Cell Phone: (098)765-4321 Affiliation: SJ Medical Hospital of B County Title: More to The Surface Than "Magic" in DM Introduction: Patient (Pt) is a 68-year-old, Asian male and came to the clinic of SJ Medical Hospital...

  • Ms. Joan Grant Case Ms. Joan Grant was a 45-year old attorney in private practice. She...

    Ms. Joan Grant Case Ms. Joan Grant was a 45-year old attorney in private practice. She was enrolled in the Good-Health health maintenance organization (HMO) through her law firm’s self-insured employee benefit plan. Generally she had been in good health, got plenty of exercise, and ate oat bran for breakfast every morning. On the evening of April 15, 1996, while she was rushing to finish her tax return, she developed a splitting headache. She decided that she would have to...

  • Code the following reports utilizing CPT codes, apply any application modifiers. 3. Description: The patient is...

    Code the following reports utilizing CPT codes, apply any application modifiers. 3. Description: The patient is a 26-year-old female, referred to Physical Therapy for low back pain. The patient has a history of traumatic injury to low back. HISTORY OF PRESENT ILLNESS: The patient is a 26-year-old female, referred to Physical Therapy for low back pain. The patient has a history of traumatic injury to low back. The patient stated initial injury occurred eight years ago, when she fell at...

  • Name: Integumentary System Case Study: Jon's Story (Each question is worth 0.5 pts) At 63 years...

    Name: Integumentary System Case Study: Jon's Story (Each question is worth 0.5 pts) At 63 years old, Jon was retiring early by most people's standards, but he felt it was time and he was looking forward to it. His mind wandered as he raked the dry remnants of his front yard. The African summer had been hotter than usual but he had always worked outdoors and the warmth of the sun on his face felt good. Jon had grown up...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT