Hospital Billing System
Hospital Billing System
Hospital Billing System
Table of Contents
S.R Content
1 Introduction
2 Case Scenario
3 Waterfall diagram
5 UML diagram
6 Report
7 Appendix
8 Reference
Hospital Billing System
Introduction:
This is the Hospital Billing system project Report which we have used
various classes and operation to make a Proper Command Line interface
Program using Python.
Case Scenario:
The Project scenario is a about on a Hospital where we have a
number of doctors with their own specific quality in their field.
And the continue loop over unit user not say to exit that is a given option.
For running to simulation we have to run the main file of our program that
contains everything required to project.
Hospital Billing System
Waterfall diagram
Hospital Billing System
UML diagram
Hospital Billing System
Report:
This is the main Report section of our project Hospital billing system.
The project is based on Python and the version of python is used to make is the python
3.9.
So As the UML, Use Case and waterfall diagram the program is made up with total 5
classes where each files have their different uses
PersonType
PatientType
BillType
DoctorType
DateType
PersonType:
This class is used to create a person object with first and last name attributes it
also has a printDetails method that prints the first and last name of the person
It is the super class of PatientType and DoctorType
Method: printDetails
Parameters: None
Algorithm:
PatientType:
This class is used to create a patient object with ID, first and last name attributes
it also has a printDetails method that prints the first and last name of the patient
Method: printDetails
Parameters: None
Algorithm:
Hospital Billing System
complxity: O(1)
BillType:
This class is used to create a bill object with ID, pharmacyCharges, roomRent,
doctorFee attributes it also has a printBill method that prints the bill
Method: printBill
Parameters: None
Algorithm:
end printBill
Method: billingAmount
Parameters: None
Algorithm:
end billingAmount
Hospital Billing System
Method: updatePharmacyCharges
Parameters: newCharges
Algorithm:
end updatePharmacyCharges
Method: updateRoomRent
Parameters: newRent
Algorithm:
end updateRoomRent
Method: updateDoctorFee
Parameters: newFee
Algorithm:
end updateDoctorFee
DoctorType:
This class is used to create a doctor object with first and last name attributes it also has a
printDetails method that prints the first and last name of the doctor
Method: printDetails
Parameters: None
Algorithm:
complxity: O(1)
Hospital Billing System
DateType:
This class is used to create a date object with day, month and year attributes it also has a date
method that prints the date in the format dd/mm/yyyy
Method: date
Parameters: None
return: string
Algorithm:
complxity: O(1)
Main Program:
we have 3 lists:
7) exit
Hospital Billing System
If the user enters 1, we will ask the user to enter the following details:
1) patient ID
else
doctor name
doctor specialty
And then we check is there a doctor with this name at intialization we don't have any doctor
so we should chhose first option 4 for filling up doctorlist
else
Hospital Billing System
else
patient ID
doctor name
doctor specialty
and then we check is there a doctor with this name at intialization we don't have any doctor
so we should chhose first option 4 for filling up doctorlist
else
and repeat the process until the user enters user enter n to stop
doctor name
doctor specialty
else
and repeat the process until the user enters user enter n to stop
7) exit
If the user enters a number that is not in the list, we will print "Invalid choice"
Hospital Billing System
Testing Program:
This is the test file for the project
IN this file we will test the classes that we created in the project and the test suite
We will test the classes in the following order:
PersonType.py
DateType.py
BillType.py
DoctorType.py
PatientType.py
now we will test the test suite
The testing is unit testing
TestPerson
TestDate
TestPatient
TestDoctor
Test
main function
suite
unittest.TextTestRunner().run(suite)
Output
....
----------------------------------------------------------------------
OK
Date Object
Appendix:
Our program is based Python so if we don’t have a python install it wouldn’t work
no extra requirements of this project everything is based upon the basic simulation of
commands that is sated up with reused fields:
Reference:
Python Software Foundation. Python Language Reference, version 2.7. Available at
http://www.python.org
"G. van Rossum, Python tutorial, Technical Report CS-R9526, Centrum voor Wiskunde
en Informatica (CWI), Amsterdam, May 1995."
https://www.w3schools.com/python/python_classes.asp
Testing reference
https://docs.python.org/3/library/unittest.html
https://docs.python.org/3/library/unittest.html#assert-methods
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertEqual