Question

General Hospital Patient Invoice Improved Days in Hospital: Greater than 0 but no more than 1,000...

General Hospital Patient Invoice Improved

Days in Hospital: Greater than 0 but no more than 1,000 days

Medicine Cost: Zero to $500.000

Procedure Cost: Zero to $1,000,000

Plan

Gold

Silver

Uninsured

Insurance code

“G”

“S”

“U”

Daily cost

100%

75%

0%

Medicine cost

80%

60%

0%

Procedure cost

90%

80%

0%

The insurance code should be input to the program.

General Hospital

Patient Invoice

Date of discharge: 10/2/2019

John Smith

7 South Main Street

Anytown, CT 06000

(203) 555-1212

===================================================================

Insurance Plan: Gold (or Sliver or Uninsured)

Number of days in hospital: 10

                     Insurance       Patient         Total

Room Charge           $ 15,000.00     $    0.00      $ 15,000.00

Procedures Charge     $ 7,200.00     $   800.00      $ 8,000.00

Medicine Charge       $ 4,542.95     $ 1,135.74      $ 5,678.69

                     -------------   ----------      --------------

Invoice Totals        $ 26,742.95     $ 1,935.74      $ 28,678.69

# Constants

#Define constants here

SENTINEL = “XX”

#Input discharge date the sentinel variable

display “Enter the date of patient discharge (XX to stop): “

input discharge_date

while discharge_date.upper() not equal SENTINEL

                #input patient billing information

                #input number of days in the hospital

                good_data = False

                while not good data

                                input num_days

                                good_data = MIN < num_days <= MAX_DAYS

                                if not good_data

                                                display error message

                #input medicine cost

good_data = False

                while not good data

                                input medicine_cost

                                good_data = MIN <= medicine_cost <= MAX_MED

                                if not good_data

                                                display error message

                #input procedure cost

                #input insurance code

good_data = False

                while not good data

                                input in_code

                                good_data = in_code.upper() in (‘G’, ‘S’, ‘U’)

                                if not good_data

                                                display error message

                #perfrom processing of invoice costs

                #display invoice

                #Input discharge date the sentinel variable

display “Enter the date of patient discharge (XX to stop): “

input discharge_date

Create a Python Program using Psuecode and Info listed above

0 0
Add a comment Improve this question Transcribed image text
Answer #1
MIN_DAYS=0
MAX_DAYS=1000
MIN_MED_COST=0
MAX_MED_COST=500
MIN_PROC_COST=0
MAX_PROC_COST=1000000
#assuming per day room charge is 1500
ROOM_CHARGE=1500

SENTINEL="XX"
Code_Dict= {"G": ["Gold", 100, 80, 90], "S": ["Silver", 75, 60, 80], "U": ["Uninsured", 0, 0, 0]}

dis_date=input("Enter the date of patient discharge(XX to stop)")
while dis_date.upper()!=SENTINEL:
    hosp_name=input("Enter hospital name")
    patient=input("Enter patient name")
    hosp_addr=input("Enter hospital address")

    #input number of days in hospital
    good_data=False
    while not good_data:
        days = float(input("Enter number of days in hospital"))
        good_data=MIN_DAYS<days<=MAX_DAYS
        if not good_data:
            print("Enter number of days in correct format")

    #input medicine cost
    good_data=False
    while not good_data:
        med_cost = float(input("Enter medicine cost incurred in hospital"))
        good_data=MIN_MED_COST<med_cost<=MAX_MED_COST
        if not good_data:
            print("Enter medicine cost in between max and min limit")

    #input procedure cost
    good_data=False
    while not good_data:
        proc_cost = float(input("Enter procedure cost incurred in hospital"))
        good_data=MIN_PROC_COST<med_cost<=MAX_PROC_COST
        if not good_data:
            print("Enter procedure cost in between max and min limit")

    #input insurance code
    good_data = False
    while not good_data:
        ins_code=input("Enter insurance code")
        good_data = ins_code.upper() in('G','S','U')
        if not good_data:
            print("Enter correct insurance code")

    total_room_charge=days*ROOM_CHARGE
    ins_room_charge=(Code_Dict[ins_code][1])/100*total_room_charge
    patient_room_charge=total_room_charge-ins_room_charge

    ins_proc_cost=(Code_Dict[ins_code][2])/100*proc_cost
    patient_proc_cost=proc_cost-ins_proc_cost

    ins_med_cost=(Code_Dict[ins_code][3])/100*med_cost
    patient_med_cost=med_cost-ins_med_cost

    print(hosp_name)
    print("Patient Invoice")
    print("Date of discharge"+ dis_date)
    print(patient)
    print(hosp_addr)
    print("------------------------------------------------------------------------------")
    print("------------------------------------------------------------------------------")
    print("Insurance plan: "+Code_Dict[ins_code][0])
    print("Number of days in hospital: "+str(days))
    print("                         Insurance       Patient     Total   ")
    print("Room Charge               "+str(ins_room_charge)+"             "+str(patient_room_charge)+"           "+str(total_room_charge))
    print("Procedures Charge         "+str(ins_proc_cost)+"            "+str(patient_proc_cost)+"            "+str(proc_cost))
    print("Room Charge               " + str(ins_med_cost) + "   " + str(patient_med_cost) + "   " + str(med_cost))

    dis_date = input("Enter the date of patient discharge(XX to stop)")





Add a comment
Know the answer?
Add Answer to:
General Hospital Patient Invoice Improved Days in Hospital: Greater than 0 but no more than 1,000...
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
  • Record Number: 73-50-77 Age: 34 Gender: Female Length of Stay: 2 days Service Type: Inpatient Discharge...

    Record Number: 73-50-77 Age: 34 Gender: Female Length of Stay: 2 days Service Type: Inpatient Discharge Status: To Home Diagnosis/Procedure: Repeat cesarean section. DISCHARGE SUMMARY PATIENT: LUCINDA INPATIENT RECORD NUMBER: 73-50-77 ADMITTED: 07-24-XX DISCHARGED: 07-26-XX PHYSICIAN: DR. ALEX, M.D. DIAGNOSIS: Repeat cesarean section at term with single liveborn infant. HISTORY OF THE PRESENT ILLNESS: This is a 34-year-old Gravida 2, Para 1, female who presents with previous cesarean section, 1 at term, 39 weeks, for elective repeat cesarean section. The...

  • QUESTION 11 A patient in the hospital outpatient clinic area receives an IM injection of 250mg...

    QUESTION 11 A patient in the hospital outpatient clinic area receives an IM injection of 250mg of Amikacin sulfate for bacterial colitis. Which code captures the administration of the drug? A. 96373 B. 96365 C. 96374 D. 96372 10 points    QUESTION 12 A hospital employee presents to Employee Health for vaccination against hepatitis A and B. A combination vaccine is administered intramuscularly. Which codes would Employee Health need to capture for the services provided? A. 90471, 96372 B. 90471,...

  • QUESTION 4 On the day of Max's discharge from the hospital, the attending physician asked him...

    QUESTION 4 On the day of Max's discharge from the hospital, the attending physician asked him questions and provided information such as Max's final diagnosis, prognosis, the results of various diagnostic tests, and necessary follow-up in the outpatient setting. The provider created two medical records for this same date of service. A progress note for the day of discharge records the physicians review of diagnostic tests, assessment of the patient's condition, and decision to discharge home. The discharge summary provides...

  • QUESTION 5 CASE 7.-15 (colonoscopy): Based off CPT guidelines, which hospital outpatient procedural coding should be...

    QUESTION 5 CASE 7.-15 (colonoscopy): Based off CPT guidelines, which hospital outpatient procedural coding should be reported for the case? A. 45378, 45384, 45385 B. 45385, 45384-59-XS C. 45380 X 2 D. 45378-59, 45388 10 points    QUESTION 6 CASE STUDY 7-15 (Colonoscopy): Which diagnostic coding is supported by the medical record? A. D12.5, D12.2, I50.9 B. D12.3, D12.4 C. D12.6 D. D12.7, D12.8 10 points    CHAPTER 7 Advanced Outpatient Hosptal Coding 371 Case 7-15 Health Record Face Sheet...

  • Case 5 Twin Falls Community Hospital (Capital Investment Analysis) Twin Falls Community Hospital is a 250-bed,...

    Case 5 Twin Falls Community Hospital (Capital Investment Analysis) Twin Falls Community Hospital is a 250-bed, not-for-profit hospital located in the city of Twin Falls, the largest city in Idaho’s Magic Valley region and the seventh largest in the state. The hospital was founded in 1972 and today is acknowledged to be one of the leading healthcare providers in the area. Twin Falls’ management is currently evaluating a proposed ambulatory (outpatient) surgery center. Over 80 percent of all outpatient surgery...

  • 13) The cost the Almy type of market 7) The market is an example of A)...

    13) The cost the Almy type of market 7) The market is an example of A) mattress: a monopoly B) com a perfectly competitive C) car insurance an oligopoly D) cell phone; a perfectly competitive 5) airplane manufacturing a monopolistically competitive 8) What is the difference between perfect competition and monopolistic competition? A) Perfect competition has a large number of small firms while monopolistic competition does not in monopolistic competition, firms produce identical goods, while in perfect competition, firms produce...

  •    Available Feb 11 at 12am - Mar 8 at 11:59pm 26 days Not for IV...

       Available Feb 11 at 12am - Mar 8 at 11:59pm 26 days Not for IV Use: The Story of an Enteral Tubing Misconnection The Story of Robin and Addison Lowe (United States) LEARNING OBJECTIVES After completing this case study, you will be able to: 1. Explore the scientific feld of human factors and how errors like tubing misconnections can be prevented. 2. Discuss the complexity of having two patients to treat, a mother and her fetus. 3. Describe suitable...

  • PART 1 Introduction to Medical Assisting 12 Grade Name: Date: MULTIPLE CHOICE 1. The branch of...

    PART 1 Introduction to Medical Assisting 12 Grade Name: Date: MULTIPLE CHOICE 1. The branch of law concerned with issues of citizen Scenario for questions 6 and 7: A man is found lying unconscious outside the physician's office. You alert several colleagues, who go outside to assess the man's condition. It is clear that he will be unable to sign a consent form for treatment. welfare and safety is: a. private law b. criminal law c. constitutional law d. administrative...

  • Below is the information: It is important to understand the different leadership styles employed by nursing...

    Below is the information: It is important to understand the different leadership styles employed by nursing leaders in healthcare organizations and to understand their significance on nursing practice and patient outcomes, for better or for worse. Objective: Read the articles from Nursing Standard (PDF) and Bradley University (PDF). In -250 words, formulate an opinion on the following: 1. Reflect on an occasion where you experienced ineffective leadership (doesn't have to be in the hospital). What behaviors did they display? What...

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