Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Software Engineering
Project Report
(CSHP - 410)
2015
1.3.4 DutyAllocationmodule………………………………….…………………….9
2. Estimations.............................................................................................................. 15
3. Scheduling............................................................................................................... 18
Page |3
5. Design ..................................................................................................................... 21
6. Coding ..................................................................................................................... 23
7. Testing..................................................................................................................... 25
8. References ............................................................................................................... 29
Page |4
PROBLEM STATEMENT
The idea behind this project is to provide the hospital with a system with the help of
which it can get rid of the manual procedures. A system is needed that can maintain
hospital’s daily routine of patient’s registration, checkup, medicine prescription, laboratory
tests and can generate reports required by the hospital.
This HMS is a high performance database system designed specifically for keeping
records for patients, doctors, laboratory test results for each patient, daily schedule for an
employee and medicine prescribed to each patient.
Page |5
PROCESS MODEL
Process Model used is the Waterfall model because of the following reasons:
Time is limited.
All the requirements are well understood.
It will allow to develop the software in a systematic and sequential approach.
All the requirements for the software are known.
As the numbers of employees are less so it overcomes the waterfall model’s disadvantage of blocking
state.
Page |6
This project gives the procedural approach how a patient gets treatment, details
about date of treatment and finally depending on different criteria like room allocated, lab
reports, treatment and medicine taken…..etc, how billing is calculated. During billing health
card facility is also considered.
The data represented in hospital management application will perform the following
major function:-
Lab reports
Duty allocation
Billing Details
This software will help to calculate the bill much quicker and simpler way. This enables
the organization to keep the information in efficient and systematic way.
This software is developed such that total appearance of the product to make it more
user friendly. The operator will be provided with loginid and password. General users with
basic computer skills can use this software.
Any update regarding the patients information from the hospital are to be recorded to
have updated and correct values.
All the data entered will be correct and up to date. This software package is developed
using c++ as front end, MS SQL server 2005 as the back end which is supported by Microsoft
windows xp.
Page |7
It describes all the details that the software developer need to know for designing and
developing the system. This is typically the largest and most important part of the document.
User interface is designed in a user friendly manner and the user, in another
end he has to give the order, for that he will interface with keyboard and mouse.
1) OS – windows XP
2) Hard disk – 80 GB
3) RAM – 1 GB
The module receives input from the user who logs on the system. The module checks for
the validity of the user from within the system itself. The module generate the output,
displaying the validity or non-validity of the user .the module then grants access rights to
the user depending on the level of the user.
The module is operated on by the operational level user. The module receives input from
the patients, which includes their details. System will record these details & generate an
OPD No. and list of Doctors available in OPD on that day. The output generated is the
OPD Card No and patient is directed to the required Doctor with that card.
(i) From the patient himself who has to get admitted to the Hospital. This process
record patient details and issues a Admission No. .This no. is used as reference in
other modules. The module generates a admission slip as the output indicating the
ward & Bed allotted to the patient.
(ii) The record input is received from the OPD Registration module, if the OPD Doctor
recommends patient for immediate admission to the hospital. The Card No. taken as
reference so that patient details do not required entering again. The card no is now
replaced by the admission no. and output generated is same as in the case (i).
This module is operated by the super user in collaboration with top management who
together build-up the schedule for all employees of the Hospital. The process receives
input from the employee Master database and the process prepares schedule for a period.
The output of the process is the schedule report for the period in the consideration.
(i) First input, which is received, is for the Patient. It receives input from the admission-
registration module, and test & treatment-undertaken module, as well as the patient
master database. It records & process all the financial transactions taken place
between the hospital and the patient and generates the final bill as the output.
(ii) Second input, which is received, is for the employees of the hospital. It receives input
from the duty allocation process and the employee database for the preparation of a
salary-slip. The module records & processes various calculations and generates the
salary-slip as the output.
This module receives input in the form of prescription written by the doctor for the
types of tests and treatment to be undertaken by the patient. It records and process,
the various details about the test and generates the lab-report as the output of the
module. It also generates the receipt for the tests undertaken. These receipts serve
as one of the input to the financial-activity module.
The capability of the computer depends on the performance of the software. The
software can take any number of input provided the database size is large enough. This would
depend on the available memory space.
This will help the doctors or users to view the records of the patients immediately
whenever necessary. They can also calculate the bill of the particular patients. This software
also has the ability to add, update and delete the record whenever needed. This project will
help to smoother the process of the hospital activities.
Receptionist Patient
Hospital Salary
Admin Id and password Doctor
Management
System
Salary
Id and password
Medical Superintendent Employee
DFD Level 0
P a g e | 12
Patient_DB
Bills
Patient
Registration id Financial
Admin Activity
Salary Slips
Employee
Job Tariff
DFD Level 1
P a g e | 13
Inpatient details
Pat DB Out
Patient
Patient
Admission
Adm slip
Registrn. Inpatient
No days
patient
admitted Ward no
Admin
Test and Doctor Prescription Doctor
Treatment Check-up
Medical
Reg id
Bill
Lab Reports
Emp DB
Days Worked Salary Slip
Emp id Duty
Schedule Report
MS allocati Employee
on
DFD Level 2
P a g e | 14
OPD-Outpatient Department
IPD-Inpatient Department
Admission Slip-Unique Patient Registration no. is generated along with details like Bed allotted, Ward no. etc.
Test and treatment-Tests prescribed by the doctor(Radiology, Laboratory tests etc) followed by the treatment
procedure.
2. ESTIMATIONS
# External 9 9 10 9 3 27
Inputs
#External 6 7 7 7 4 28
Outputs
#User 2 2 2 2 3 6
Inquiries
# I.L.F. 2 2 3 2 7 14
#External 3 4 5 4 5 20
Interfaces
Count Total 95
P a g e | 16
4. Is performance critical? 4
7. Does the online data entry require the input transaction to be built over multiple screens
or operations? 1
14. Is the application de signed to facilitate change and ease of use by the user?
4
(Fi) = 45
= 105
P a g e | 17
2.2 Efforts
The organizational average productivity for systems of this type is 6.5 FP/pm. Based on a
burdened labour rate of Rs.8000 per month, the cost per FP is approximately Rs.1230.
Based on the FP estimate and the historical productivity data, the total estimated project
cost is Rs.129150 and the estimated effort is 16 person-months.
P a g e | 18
3. Scheduling
A Timeline chart can be developed for the entire project or a separate chart canbe
developed for each function.
A tabular form is maintained where rows indicate the tasks with milestones and
columns indicate duration(weeks/months).
The horizontal bars that spans across columns indicate duration of the task.
Problem Statement
Process Model
SRS
DFD Level 0
DFD Level 1
DFD Level 2
Data Dictionary
Effort Estimation
Risk Analysis
Design
Coding
Testing
P a g e | 19
4. Risk Management
Risk exposure:
1. Risk identification: Only 70% of the software components scheduled will be integrated into the application.
The remaining functionality will have to be custom developed.
3. Risk Impact: Sixty reusable software components were planned. If only 70% can be used, 18 components
would have to be developed from scratch (in addition to other custom software that has been scheduled for
development). Since the average component is 100 LOC and local data indicate that the software engineering
cost for each LOC is Rs.14, the overall cost (impact) to develop the components would be is 18 * 100 * 14 =
Rs.25,200.
4. Risk exposure:
RE = Probability of occurrence of the risk * Cost to the project should the risk occur
RE=0.60*25,200 = Rs.15,120.
P a g e | 21
5.Design
HMS
N
P a g e | 23
6.Coding
int generate_finalbill()
if(pat_id!=seach_pat(pat_id))
2
{
do
3
{
}while(patid!=search_pat)
5
} //end of if
6
cout<<”if patient had any tests\n”;
7
cin>>ch;
if(ch==’y’)
8
do
9
{
cin>>test_type;
final_bill+=get_test_fee(test_type);
1
0 cout<<”if patient has undergone another test,enter y”;
cin>>ch1;
}while(ch1==’y’)
1
1 } //end of if
1
2
P a g e | 24
cin>>dr_id;
1 finalbill+=get_dr_fee(dr_id);
3
pat_type=type_of_pat(pat_id);
if(pat_type==”inpatient”);
1
4 {
1
cin>>nd;
5
final_bill+=(nd*1000);
} //end of if
1
6 cout<<”\nfinal bill is”<<final_bill;
1
7 return final_bill;
}
P a g e | 25
1
Flow Graph
2
R1 4
R4
R2 1
0
R5
1
1
1
2 R6
1
3
1
4
1
R3
5
1
P a g e | 26
Cyclomatic Complexity
=6
=21-17+2
=6
= 5+1
=6
Paths:
P1: 1 -> 2 ->6 -> 7 -> 8 -> 12 -> 13 -> 14 -> 16 -> 17
P2: 1 -> 2 ->6 -> 7 -> 8 -> 12 -> 13 ->14 -> 15 -> 16 -> 17
P3: 1 -> 2 ->3 -> 4 -> 5->6 -> 7 -> 8 -> 12 -> 13 -> 14 -> 16 -> 17
P4: 1 -> 2 ->6 -> 7 -> 8 ->9 -> 10 -> ->11 -> 12 -> 13 -> 14 -> 16 -> 17
P4: 1 -> 2 ->3 -> 4 ->5 -> 4 -> 5 -> 6 -> 7 -> 8 -> 12 -> 13 -> 14 -> 16 -> 17
P5: 1 -> 2 ->6 -> 7 -> 8 -> 9 -> 10 ->11 -> 10 -> 11 -> 12 -> 13 -> 14 -> 16 -> 17
P a g e | 27
Test Cases:
INVALID
1 VALID Pat_id=011 It should generate the bill It calculates the bill including
including only doctor charges. doctor charges only.
Ch = N
Pat_type = OutPatient
1 INVALID Pat-id = Null It should not process until a It enters a do while loop to ask
valid pat_id is not entered. for a valid pat_id.
Ch = N
Pat_type = Outpatient
2 VALID Pat_id=010 It should generate the final It generates the final bill
bill including doctor charges including doctor charges and
Ch = N
and admission details. inpatient admission details.
Pat_type = Inpatient
3 INVALID Pat_id= Null It should ask to enter a valid It enters a do while loop and
patient id. asks to enter a valid patient id
Ch = N
until a valid patient id is not
Pat_type = Outpatient entered.
P a g e | 28
4 VALID Pat_id=011 It should generate the final It generates the bill including
bill including doctor charges doctor charges and the test
Ch = Y
and the test undergone (only undergone for the patient.
Ch1= N one test).
Pat_type = Outpatient
4 INVALID Pat_id=011 It should ask to enter the test It do not consider the tests and
undergone (if any). generate the bill including only
Ch = *
doctor charges.
Ch1 =N
Pat_type = Outpatient
5 VALID Pat_id=000 Since patient id=000 is not in It generates the final bill for
the patient database, it pat_id = 011 including only
Ch = N
should ask to enter a valid doctor fees.
Pat_type = Outpatient patient id. When a valid
patient id (011) is entered, it
should generate the final bill
including doctor charges only.
5 INVALID Pat_id = Null It should ask to enter a valid IT enters a do while loop to ask
patient id, so it should enter for a valid patient id.
Ch = N
the do while loop to ask for a
Pat_type = OutPatient valid patient id.
6 VALID Pat_id=011 It should generate the final It generates the final bill
bill including all the tests including the doctor fees and all
Ch = Y
undergone (more than one) the tests fees that are
Ch1 = Y and the doctor fees. performed on the patient.
Pat_type = OutPatient
6 INVALID Pat_id=011 It should ask to enter a valid It generates the bill including
character (Y for yes, else any the doctor fees and the fees of
Ch = Y
other character) to know if only one test.
Ch1 = * there is another test done on
the patient.
Pat_type = OutPatient
P a g e | 29
8.References
3. http://www.slideshare.net/hospital-management-system