Asha Health Health Care Management
1.
1
INTRODUCTION
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
2
1.1 Problem Study The Asha Health Care Management System means a stand alone, uni purpose system. This system serves the needs of a single service of the hospital at a time and it may or may not interfere with the other systems in the hospital. This This Health Health Care Care Manage Managemen mentt System System is design designed ed to cover cover a wide wide range range of hospit hospital al administration and management processes. It is an integrated end-to-end Hospital Management System that provides relevant information across the hospital to support effective decision making for patient care, hospital administration and critical financial accounting in a seamless flow. The modules included in the project are described as follows. Staff module will give the details of the staff in the hospital which includes personal information, their qualification, qualification, designation designation and salary. salary. Patient Patient module module will have space for patient patient details, details, doctor consulted, treatments advised, tests undergone and medicine details. Testing module will have details about the test undergone by the patient .It can be accessed only by the lab technician. Billing department will sum up consultation charges, lab charges, pharmacy charges and print the bill. All the required modules and features have been particularly built to just fit in your requirement. The sound database of the application makes it more user friendly and expandable. Prolonged study of the functionalities of the hospital and its specific requirement has given it a wonderful shape both technically and usability wise.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
3
1.2 DESCRIPTI DESCRIPTION ON OF THE EXISTING SYSTEM AND ITS
DEMERITS The existing system being used is that of a manual report generation without the help of computer computer systems systems for organization organization of the reports. Every process process is done through through manual labour, labour, from the sorting of existing reports to the generation of new ones. In existing system, every record is stored manually. And there are details of the doctors and patients in various registers. Forms for patients will be manually maintained. Without the implementation of computer systems in this process of report organization, the existing system poses the following disadvantages 1. It is manual and it becomes difficult when we have to process and access data manually. All the work has to be done physically which makes result preparation process very difficult. There will be lots of data redundancy. 2. More manpower will be needed. More of paper work, more of confusion. 3. It becomes more expensive because we have to hire many people to maintain the records in the hospital. 4. If a patient is regular, his/ her record maintenance becomes very inconvenient. 5. Searching and sorting the data is much time consuming and exhaustive. 6. Often the records are lost and the user is not aware of this. 7. If manual record is lost, data will be completely lost. 8. Many times duplication occurs as users find it hard to keep track in the bundles of registers. 9. Data is stored in filling cabinets and can get in the wrong hands and can be used against the department. Hence, security and confidentiality of the data cannot be guaranteed and is very unreliable.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
4
10. Preparation of the collected data is a long process. 11. Transference of the reports is not very easily done. 12. Mostly data is kept in registers which are stored in filling cabinets, taking up a lot of space. 13. Data is not always reliable as it is hand written and some human errors might have occurred example wrong telephone number, etc. 14. Requires many sheets of data, as it is stored separately according to its specifications. For example data about the registration, patient name, patient age, etc. require separate sheets. 15. Data verification is not possible manually; it has to be done with the help of computerized software.
1.3 ADVANTAGES OF PROPOSED SYSTEM Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
5
It is a computerized system for managing the data and details of the hospital. 1. The generation of reports is very fast and can be backed-up easily. 2. The amount of manual labour (man-power) required is much less. 3. Reduces space requirements. The use of computer for office activities reduces the requirements of office space which otherwise is required. 4. Being a machine, it does not suffer from fatigue, even if millions of computations are to be required. It performs the calculations with same accuracy and speed. 5. The data processed by the computer are highly accurate. The programs written on the system checks and controls data before and during processing. It detects invalid data and ensures high degree of accuracy and reliability of output reports. 6. Storage capacity: Large volumes of data can be conveniently stored, accessed and altered. 7. The maintenance of the regular patients is easily managed. 8. Searching and sorting of data is done much easily. 9. The security of the data can be ensured beforehand. If the results and records go missing there will always be an easy back up in the system. 10. 10. Redu Reduct ctio ion n in pape paperr work work.. The The use use of comp comput uters ers for for data data proc proces essi sing ng has has help helped ed the the management of data in departments to cope with increasing problem of paper handling. The computers have speeded up the process and have eliminated the paper needs through the storage of data using elaborately constructed data bases and files. 11. Reduction in cost. Though the initial investment for installing a computer is high, but it substantially reduces the cost of each of its transaction. Cost reduction occurs due to processing of huge data and record keeping.
12. Processes can be run many times in a row without human intervention.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
6
13. Files can be transferred easily from department to department. 14. Data verification is possible since all the data is linked to each other. 15. Database: Computers facilitate the establishment of database. Such a database integrates data records and reduces data redundancy.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
7
2.System Analysis
2.1 LITERATURE SURVEY Literature Survey is the most important in software development process. Before developing the tool it is necessary necessary to determine determine the time factor, economy economy and company company strength. strength. Once these things are satisfied, then next step is to determine which operating system and language can be used for developing the tool. Once the programmers start building the tool the programmers need Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
8
lot of external support. This support can be obtained from senior programmers, from books or from websites. Before building the system the above consideration are taken into account for developing the proposed system. Literature review was done by referring books, journals and internet and through interviews. The The popu popular lar C# prog progra ramm mmin ing g lang langua uage ge comb combin ines es the the high high prod produc ucti tivi vity ty of rapid rapid application development languages with the raw power of C and C++. Updated to cover the new features of C# 4.0, including dynamic binding, named and optional parameters, and covariant and contravariant generic types, this release takes the language to the next level by adding the ability to clean cleanly ly writ writee prog progra rams ms that that don' don'tt rely rely on stat static ic type type defi defini niti tion ons. s. This This allo allows ws dyna dynami micc programming languages such as Python, Ruby, and JavaScript to feel native to C#. The C# Programming Language, Fourth Edition, continues to be the authoritative and annotated technical reference.
2.2 TOOL SURVEY Frontend
- C# .net
Backend
- SQL
C# .net as frontend In our project “Health Care Management System” we use C#.net as frontend. We choose C#.net as frontend because it is more user friendly, friendly , C#.net is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. As with any modern programming language, C#.net supports a number of common programming constructs and language elements. C#.net is also considered a relatively easy to learn and use programming language, because of its graphical development features and BASIC heritage.
Features of C#.net C#.NET provides the easiest, most productive language and tool for rapidly building Windows and Web applications. C# .NET comes with enhanced visual designers, increased application performance, and a powerful integrated development environment (IDE). It also supports creation of application for wireless, Internet-enabled hand-held devices. The following are the features of C# .NET. The following are the features of C#. Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
• • •
• • • •
9
Powerful Windows-based Applications Building Web-based Applications Simplified Deployment Powerful, Flexible, Simplified Data Access Improved Coding Full Object-Oriented Constructs XML Web Services
Advantages of C#.NET •
First First of all, all, C#.NET C#.NET provid provides es manage managed d code code execut execution ion that that runs runs under under the Common Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in C#.NET.
•
C#.NET is totally object oriented.
•
The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. This enhances Scalability of the application to a great extent.
•
Erro Errorr hand handli ling ng has has chan change ged d in C#.N C#.NET ET.. A new new TryTry-Ca Catch tch-Fi -Fina nall lly y bloc block k has has been been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the maintainability of the code.
•
Another Another great feature feature added to C#.NET C#.NET is free threading against the C# single-threaded single-threaded apartment feature. In many situations developers need spawning of a new thread to run as a backgr backgroun ound d proces processs and increas increasee the usabil usability ity of the applica applicatio tion. n. C#.NET C#.NET allows allows developers to spawn threads wherever they feel like, hence giving freedom and better control on the application.
•
Security has become more robust in C#.NET. In addition to the role-based security in C#.NET comes with a new security model, Code Access security.
•
This security controls on what the code can acce ss. For example you can set the security to a component such that the component cannot access the database. This type of security is important because it allows building components that can be trusted to various degrees.
•
The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
•
Full support for object oriented programming.
•
Structured error handling capabilities.
•
Access to .NET Framework.
•
Powerful unified Integrated Development Environment (IDE).
•
Inherent support for XML & Web Services.
•
Better windows applications with Windows Forms.
•
Immense power of tools & controls c ontrols (including Server Controls).
•
Interoperability with other .NET complied languages.
•
Better database programming approach with ADO.NET
10
SQL as backend The SQL language and relational database systems based on it are one of the most important foundation technologies in the computer industry. Over the last two decades, SQL has grown from its first commercial use into a computer product and services market segment worth tens of billions of dollars per year, and SQL stands today as the standard computer database language. Literally hundreds of database products now support SQL, running on computer systems from mainframes to personal computers and even handheld devices. An official international SQL Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
11
standard has been adopted and expanded twice. Virtually every major enterprise software product relies on SQL for its data management, and SQL is at the core of the database products from Microsoft, Oracle, and IBM, the three largest software companies in the world. We choose SQL as our backend because SQL is both an easy-to-understand language and a comprehensive tool for managing data. These are the reasons why SQL has emerged as the standard tool for managing data on personal computers, minicomputers, and mainframes.
Features of Structured Query Language [SQL] Structured Structured Query Language Language is a database computer language designed for managing data in relational database management systems (RDBMS), and originally based upon relational algebra. Its scope includes data query and update, schema creation and modification, and data access control. The following are the features of SQL.
SQL is an interactive query language. SQL is a database programming programming language. SQL is a database administration administration language. Client/server language. SQL is an Internet data access language. SQL is a distributed database language. SQL is a database gateway language. Data retrieval. Data sharing Data integrity
These are the advantages of SQL. a. Block Structures: SQL consists of blocks of code, which can be nested within each other. Each forms a unit of a task or a logical module. SQL Blocks can be stored
block
in the database
and reused.
b. Procedura Procedurall Language Language Capabili Capability: ty: SQL consists of procedural language constructs such as conditional statements (if else statements) and loops like (FOR loops).
c. Better Performance: Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
12
SQL engine engine processes processes multiple multiple SQL statements statements simultaneo simultaneously usly as a single single
block, block,
thereby reducing network traffic.
d. Error Handling: SQL handles errors or exceptions effectively during the execution of a SQL program. Once an exception is caught, specific actions can be taken depending upon the type of the exception or it can be displayed to the user with a message.
2.3 HARDWARE AND SOFTWARE REQUIREMENTS HARDWARE REQUIREMENTS
1.
Processor
: Intel Pentium
2.
RAM
: 512 MB
3.
Hard disk
: 20 GB
4.
Monitor
:14 inch
5.
Keyboard
:104 keys standard keyboard
6.
Mouse
:PS2 mouse
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
7.
Parallel port
8.
Display SGRAM
13
:1 :32 bit
SOFTWARE REQUIREMENTS
1. Operating System
: Windows 98 and above
2. Back End Tool
:SQL Server
3. Fron Frontt End End Tool Tool
:C#. :C#.Ne Nett
2.4 DATA FLOW DIAGRAMS A data data-f -flo low w diag diagra ram m (DFD (DFD)) is a grap graphi hica call repr repres esen enta tati tion on of the the "flo "flow" w" of data data thro throug ugh h an information system. DFDs can also be used for the visualization of data processing (structured design). On a DFD, data items flow from an external data source or an internal data store to an internal data store or an external data sink, via an internal process. A DFD provides no information about the timing of processes, or about whether processes will operate in sequence or in parallel. It is therefore quite different from a flowchart, which shows the flow of control through an algorithm, allowing a reader to determine what operations will be performed, in what order, and under what circumstances, but not what kinds of data will be input to and output from the system, nor where the data will come from and go to, nor where the data will be stored. Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
14
This level (level 1) shows all processes at the first level of numbering, data stores, external entities and the data flows between them. The purpose of this level is to show the major and high-level processes of the system and their interrelation. A process model will have one, and only one, level1 diagram. A level-1 diagram must be balanced with its parent context level diagram, i.e. there must be the same external entities and the same data flows, these can be broken down to more detail in the level one. Data flow contains: •
• •
Rectangle: data storage. Bubble: it represents the process. Arrow: it represents the how the data flowed b\w process and data storage.
A few simple guidelines can aid immeasurably during derivation of a data flow diagram:
•
The level 0 data flow diagram should depict the software/system as a single bubble. Primary input & output should be carefully noted.
•
Refinement should begin by isolating candidate processes, data objects, and data stores to
•
be represented at the next level. •
All arrows and bubbles should be labelled with meaningful names.
•
Information flow continuity must be maintained from level to level.
2.4 DATA FLOW DIAGRAMS
LEVEL 0: PATIENT DETAILS
INFORMATION
RETRIEVAL
TEST DETAILS
STAFF DETAILS RETRIEVAL INFORMATION
Department of Computer Science, Christ University, Bangalore-29.
ASHA HEALTH HEALTH MANAGEMENT SYSTEM
Asha Health Health Care Management
15
INFORMATION RETRIEVAL
BILL DETAILS
RETRIEVAL
INFORMATION
INFORMATION
RETRIEVAL
PHARMACY
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
16
D A T A F L O W D I: A G R A M L E V E1:L LOGIN db s e v i e r t e R d n a s e r o t S
DOCTOR
I N G L O r e t s i g e R
LOGIN
s e b i r c s e r P
Patient Register d s n e a v i s e e r r t e o t R S
n i g o L r e s U
A d d n e w u s e r
r e t s i g e R t e G
A D D N E W U S ER S S t o r e s a n d R e t r e iv e s
S taff db
Patient db G e t t s s S t o or e e d
Tests
S t o r e s a n d R e tr t r e iv iv e s
USER
Department of Computer Science, Christ University, Bangalore-29.
Test db
Asha Health Health Care Management
17
L E V E 2: 2L:
R e c e i pt pt Q u e r y
DOCTOR
s d e n a v e i s r t e r e o t R S
P a t i e n- Ft e e s db t s e u q e R
s e v i G
S t o r e s a n d R e t r i e v e s
P a t i e n- Ft e e s db
s e v e i r t e R
Accumalated Receipt
t e s u q e R
S t o r e s
t u e s R e q
User
Department of Computer Science, Christ University, Bangalore-29.
d n a s e r o t S
Patient Receipt Entry
Asha Health Health Care Management
18
ER DIAGRAM:
AHMS
Username Username Password
Password
have
Doctor
Admin
suggest
do
do
take
do
Login Test
Test
Patient
A B
Test Department of Computer Science, Christ University, Bangalore-29. Urine
X-Ray
Logi
Asha Health Health Care Management
19
Biochemis
Gastrosco has
has
Stool P_ID
has
has
P_ID
has
Urine_
XP_ID
Gas_d Bio_d P_ID
Stool_db
Department of Computer Science, Christ University, Bangalore-29.
P_ID
Asha Health Health Care Management
20
B
Patient Basic Details
Patient_i
Address
Phone
Patient Name
Age Gender
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
21
3.SYSTEM DESIGN
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
22
3.1 INPUT DESIGN 1. Login ogin Mod Module ule •
The first module to check username and password in order to process any modules. If the password password that is entered is correct, correct, then it takes us to the main mdi parent parent form .If the password is not correct , then a message box pops up which says try again.
1.
Docto ctor Mo Module dule •
The doctor module has the doctor details like his/her name, category, age, years of experi experienc encee etc. etc. The The doctor doctor id is generat generated ed automa automatic tically ally.. Also Also the detail detailss of different doctors working in the hospital are shown in this particular module.
1. Reg Registr istrat atio ion n •
To creat createe a first first info inform rmat atio ion n repor reportt of the the pati patien entt givi giving ng his/ his/he herr deta detail ilss and and generating generating a patient patient id. After the patient is registered registered and it is given a patient patient id, it allows us to enter information about the patient in detail. For example the type of patient, the type of ailment etc.
1. Pati Patien entt Mod Modul ulee •
To add details about the patient – the type of patient, type of ailment , doctor in charge of the patient. It also allows us to view the different reports of the patient present in the hospital.
1. Bill Bill Gen Gener erat atio ion n •
To get all the details of the patient like which doctor treated him , the type of treatment given to him/her , the disease he/she was suffering from and the final amount to be paid by the patient. A bill is generated which shows the entire details of the patient.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
23
The first form is the Login form: It contains a space to select the User - Doctor or Admin. The respective User enters his/her Username or the Password. Only when the Username and Password is correct, the User can get access to other modules.
ASHA HEALTH CARE MANAGEMENT
SELECT USERNAME PASSWORD:
LOGIN
Department of Computer Science, Christ University, Bangalore-29.
CANCEL
Asha Health Health Care Management
24
When the Admin enters his/her User name and and Password, a form pops up which has fields to enter all the details of the Patient. And also has options to Update the database, Add a new Patient details, retrieve the details of existing Patient.
REGISTRATION FORM Patient Name: Address: Gender: Age: Phone Patient ID: Consultant:
ADD
Search
P_ID is the Primary Key. Department of Computer Science, Christ University, Bangalore-29.
Exit
Asha Health Health Care Management
25
This form takes which test is suggested by the Doctor. Patient ID is the Primary key. This form allows Doctor to select the test to be performed.
Patient ID Submit Description
Test
Gastroscopy Blood test Biochemist ry X-Ray Urine
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
26
The next form is a test form for Stool Test. Patient ID is the Primary key. It has a tab control for Physical and Microscopic details of the Stool test.
Patient ID
Patient Name
Submit
Physical
Microscopi
Color
Consistency
Mucus
Blood
3.2 Output Design Department of Computer Science, Christ University, Bangalore-29.
Age
Gender
Asha Health Health Care Management
27
Fee receipt Form
Patient Details
Colonosco Patient ID
Submit
Blood
Patient Name
Sonogra Age X-Ray Consulta Urine
Total
In
Print
Consultant
Lab Fee
Lab Report
3.3 DATABASE DESIGN: The first table is the login table , it has fields which contain data of the Username and his/her password.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
28
Field name
Type
Description
Sel_User
Varchar
User
U_ name
Varchar
UserName
Password
Varchar
Password
The Next Table is the Patient detail table which collects related data.
Field Name
Type
Description
P_ID
Integer
Patient number
P_Name
Varchar
Patient name
P_Age
Integer
Age of patient
P_Add
Varchar
Patient Address
City
Varchar
City
Ph-no
Long integer
Contact number
Gender
Char
Sex
R_Date
Integer
Registration Date
Consultant
Varchar
Doctor in charge
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
29
Field Name
Type
Description
Status
Varchar
Indoor/Outdoor
P_ID
Long Integer
Patient ID
Age
Integer
Age of Patient
Patient Test_db
Field Name
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration Date
Consultant
Varchar
Doctor in charge
Bio_Test
Varchar
Yes/No
Gas_Test
Varchar
Yes/No
Ur_Test
Varchar
Yes/No
Bloo_Test
Varchar
Yes/No
X-ray_test
Varchar
Yes/No
Medicine details Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
30
Biochemistry db
Field Field
Type Type
Description Description
P_ID
Integer
Patient Number
P__IDDate R
ntteeggeerr IIn
PeagtiiestnrtaN md baetre R tiu on
Gluc_Fast
Text
70-110 mg %
Blood_Urea
Text
10-40 mg %
Creatinine
Med_name
Text
Varchar
0.6-1.5 mg %
BUN
Text
8-20 mg %
S.Cholestrol
Text
130-250 mg %
HDL.Cholestral
Text
30-55 mg %
LDL.Cholestral
Text
60-165 mg %
VLDL.Cholestral
Text
0-60 mg %
Triglycerides
Text
0-60 mg %
S.Total Lipids
Text
400-700 mg %
Field
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration date
Haemoglobin
Text
13-15GMS%
TLC
Text
4500-10500 cells / cu mm
Neutrophilis
Text
DLC,45-68%
Basophilis
Text
DLC,1-2%
Med_No
Integer
Medicine number
Medicine Name
Blood test is the next table
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
31
Lymphocytes
Text
DLC,25-45%
Platelets
Text
CU.MM
Eosinophin
Text
DLC,2-6%
Others
Text
DLC
Field
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration date
Color
Text
Physical
Consistency
Text
Physical
Mucus
Text
Physical
WBC/HPF
Text
Microscopic
RBC/HPF
Text
Microscopic
Mecrophagus
Text
Microscopic
Field
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration date
Appearance
Text
Routine
SP Gravity
Text
Routine
Reaction
Text
Routine
Albumin
Text
Routine
Stool Test Table
Urine Test
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
32
Sugar
Text
Routine
RBC’s/HPE
Text
Microscopic
WBC’s/HPF
Text
Microscopic
EPITH Cells/HPF
Text
Microscopic
Crystalls/HPF
Text
Microscopic
Field
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration date
Remark_1
Text
Remark_2
Text
Remark_3
Text
Remark_4
Text
Remark_5
Text
Remark_6
Text
Remark_7
Text
Remark_8
Text
Remark_9
Text
Remark_10
Text
Remark_11
Text
Option
Text
X-Ray
Patient Fee Table
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
33
Field
Type
Description
P_ID
Integer
Patient Number
R_Date
Integer
Registration date
Receipt_number
Number
F_total_fees
Number
Total fees in figure
W_total_fees
Text
Total fees in words
Receipt name
Text
Cash/Cheque
Diagnosis_Fee
Number
X-ray
Text
Urine
Text
Stool
Text
Biochemistry
Text
Blood Test
Text
Staff Table It contains the information of all the staffs working in the Health Care
Field
Type
Description
Staff name
Text
Name of the staff
Staff Id
Text
Unique id for each staff
Designation
Text
Post held by the staff
Qualification
Text
Educational Qualification
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
34
Address
Text
Residential Address
Phone_number
Number
Phone number
Salary
Text
Payment
Date Of Joining
Text
Microscopic
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
35
4.Test Reports
Sr. no
Module name
Test data
Expected result
Actual result
1
Patient
Patient name: Ashwini
When Add button is pressed data should be saved.
A message “Data saved “is displayed.
When update button is pressed, data in the database should be updated.
A message “Data updates” is displayed
Gender: Female Age: 20 Phone number : 9886366511 Address: 303,3 rd floor,ulsoor Patient Id: p123
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
36
Consultant: Dr.Anita
Patient name: Gender: Female Age: Phone number : 9886366511 Address: 303,3 rd floor,ulsoor Patient Id: p123 Consultant: Dr.Anita
Department of Computer Science, Christ University, Bangalore-29.
Error message should be displayed.
A message “No field should be empty “ is displayed.
Asha Health Health Care Management
Department of Computer Science, Christ University, Bangalore-29.
37
Asha Health Health Care Management
2
Staff
38
Staff _ID:EMP-1 Staff_name: Qualification: Address: Phone: Designation: Shift: Salary
Department of Computer Science, Christ University, Bangalore-29.
When Get button is pressed data should be displayed.
Data is displayed.
Asha Health Health Care Management
3
Login
39
Select User: Admin User name: ashwini
Patient basic details form should be opened
A message “Admin” is displayed and patient basic details form is opened.
Error message should be displayed
A message “No feilds should be empty” is displayed.
Password: ash Select User: User name: ashwini Password: ash
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
4
Testing
40
Patient Id:p123 Patient name: ashwini Age: 12 Gender:female Esophagus:12 Fundus:122 Antrum:129 Corpus:50 Bulb:128
Department of Computer Science, Christ University, Bangalore-29.
When Save button is pressed data should be saved.
Data is saved.
Asha Health Health Care Management
41
First Part:84 Second Part:20
Patient ID: pa90009
Department of Computer Science, Christ University, Bangalore-29.
When Submit button is clicked, If the patient has not registered, error messaged is displayed
Patient has not registered.
Asha Health Health Care Management
5
Billing
42
Patient ID:P123 Patient Name:ash
Bill details should be saved
Bill details is saved.
Error message should be displayed
A message”Enter patient Id to get Detils “ is displayed.
Gender:Female Age:21 Consultant:Dr.Ann Consultant charge:200 Test Done:stool Test charge:200 Room type:special Room Charge:3000 Pharmacy Charge Mode of payment:cash Due:nil Balance:nil Total amount:1000
Patient ID: Patient Name: Gender: Age: Consultant: Consultant charge: Test Done: Test charge: Room type: Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
43
Room Charge: Pharmacy Charge Mode of payment: Due: Balance: Total amount:
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
44
5.Implementation and Sample coding
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
45
The project is implemented in .NET Framework and C#.NET .
Login form code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; System.Windows.Forms; using System.Data.SqlClient; namespace new_asha_health_care { public partial class Form3 : Form { public string a, c,m; public string c_2; public Form3() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text) | string.IsNullOrEmpty(textBox2.T string.IsNullOrEmpty(textBox2.Text)) ext)) { MessageBox.Show(" No feild should be EMPTY","check",MessageBoxButtons.OK,MessageBoxIcon.Exclamation); } SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=sample1;Integrated Security=True"); string y = null; string z = null; string x = null; x = comboBox1.Text; y = textBox1.Text; z = textBox2.Text; con.Open(); MessageBox.Show(x); string Query = null; Query = "select * from login Where Sel_user = '" + x + "' AND username ='" + y + "' AND password = '" + z + "'"; System.Data.SqlClient.SqlCommand System.Data.SqlClient.SqlComman d cmd = new System.Data.SqlClient.SqlCommand(Query, System.Data.SqlClient.SqlCommand(Qu ery, con); System.Data.SqlClient.SqlDataReader dr = cmd.ExecuteReader(); Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
46
if ((dr.HasRows == true) & (comboBox1.Text=="admin") & (textBox4.Text=="&Patient_New_ Entry ")) { patientbasicdetails form2 = new patientbasicdetails(); form2.Show(); this.Hide(); } else if ((dr.HasRows == true) & (comboBox1.Text == "admin") & (textBox4.Text == "&Appointments")) { Appointment q = new Appointment(); q.Show(); this.Hide(); } else { MessageBox.Show("Please Login As ADMIN, Check Your Username and Password"); } con.Close();
}
public Form3(string c_2) { InitializeComponent(); textBox4.Text = c_2; }
private void Form3_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'admin1.login' table. You can move, or remove it, as needed. Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
47
this.loginTableAdapter.Fill(this.admin1.login); textBox2.Clear(); textBox1.Clear(); timer1 = new Timer(); // Setup timer timer1.Interval = 1000; //1000ms = 1sec timer1.Tick += new EventHandler(timer1_Tick); timer1.Start(); } private void button2_Click(object sender, EventArgs e) { this.Hide();
}
Input patient details, Search patient Details and Update the detail for a particular patient ID. using System; using System.Collections.Generic; using System.ComponentModel; Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
using using using using using using using
48
System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms; System.Data.SqlClient; System.Text.RegularExpressions;
namespace new_asha_health_care { public partial class patientbasicdetails : Form { public string ab; public int myVariable=0; public patientbasicdetails() { InitializeComponent(); SqlConnection c = new SqlConnection SqlConnection( ("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); Security=True"); c.Open(); SqlCommand cm = new SqlCommand SqlCommand( ("select max(p_id) from patientbasicdetails", patientbasicdetails" , c); Int32 reader = Convert Convert.ToInt32(cm.ExecuteScalar()); .ToInt32(cm.ExecuteScalar()); textBox1.Text = Convert Convert.ToString(reader); .ToString(reader);
string s = null null; ; s = (int (int.Parse(textBox1.Text) .Parse(textBox1.Text) + 1).ToString(); p_id.Text = s; } public void clear() { p_age.Clear(); p_number.Clear(); p_add.Clear(); p_name.Clear(); p_id.Clear(); Consultant.Text = "" ""; ; p_gender.Text = "" ""; ; } private void Add_Click(object Add_Click(object sender, EventArgs e) { SqlConnection c = new SqlConnection SqlConnection( ("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); Security=True"); c.Open(); SqlCommand cm = new SqlCommand SqlCommand( ("select p_id from patientbasicdetails where p_id='" + p_id.Text + "'" "'", , c); SqlDataReader rea = cm.ExecuteReader(); if (string string.IsNullOrEmpty(p_name.Text) .IsNullOrEmpty(p_name.Text) | string.IsNullOrEmpty(p_gender.Text) string .IsNullOrEmpty(p_gender.Text) | string string.IsNullOrEmpty(p_number.Text) .IsNullOrEmpty(p_number.Text) | string.IsNullOrEmpty(p_add.Text) string .IsNullOrEmpty(p_add.Text) | string string.IsNullOrEmpty(p_age.Text) .IsNullOrEmpty(p_age.Text) | string.IsNullOrEmpty(p_id.Text) string .IsNullOrEmpty(p_id.Text) | string string.IsNullOrEmpty(Consultant.Text)) .IsNullOrEmpty(Consultant.Text)) { MessageBox.Show( MessageBox .Show(" " No feild should be EMPTY"); EMPTY" ); } Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
49
else if (rea.HasRows) { MessageBox.Show( MessageBox .Show("Enter "Enter a Unique Patient ID!!!", ID!!!", "Error" "Error", , MessageBoxButtons.OK, MessageBoxButtons .OK, MessageBoxIcon MessageBoxIcon.Warning); .Warning); } else { SqlConnection con = new SqlConnection SqlConnection( ("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); Security=True" ); con.Open(); SqlCommand com = new SqlCommand SqlCommand( ("insert into patientbasicdetails values(@abc,@cde,@efg,@e,@f,@g,@h,@i)" , con); com.Parameters.AddWithValue( "@abc" "@abc", , p_name.Text); com.Parameters.AddWithValue( "@cde" "@cde", , p_add.Text); com.Parameters.AddWithValue( "@efg" "@efg", , p_age.Text); com.Parameters.AddWithValue( "@e" "@e", , p_gender.Text); com.Parameters.AddWithValue( "@f" "@f", , Consultant.Text); com.Parameters.AddWithValue( "@g" "@g", , p_number.Text); com.Parameters.AddWithValue( "@h" "@h", , p_id.Text); com.Parameters.AddWithValue( "@i" "@i",DateTimePicker1.Text); ,DateTimePicker1.Text); com.ExecuteNonQuery(); con.Close(); MessageBox.Show( MessageBox .Show("DATA "DATA SAVED!"); SAVED!"); clear(); rea.Close(); } }
private void Search_Click(object Search_Click( object sender, EventArgs e) { if (string string.IsNullOrEmpty(p_id.Text)) .IsNullOrEmpty(p_id.Text)) { MessageBox.Show( MessageBox .Show("Patient "Patient ID must be entered"); entered"); } p_age.Clear(); p_number.Clear(); p_add.Clear(); p_name.Clear(); SqlConnection con = new SqlConnection SqlConnection( ("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); Security=True" ); con.Open(); SqlCommand com = new SqlCommand SqlCommand( ("select * from patientbasicdetails where p_id='" p_id='"+p_id.Text+ +p_id.Text+"'" "'", , con); SqlDataReader reader = com.ExecuteReader(); SqlCommand comm= new SqlCommand SqlCommand( ("select p_id from patientbasicdetails ", ", con); if (reader.HasRows) { while (reader.Read()) { //Assign to your textbox here Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
50 p_name.Text = reader["p_name" reader["p_name"].ToString(); ].ToString(); p_add.Text = reader["p_add" reader["p_add"].ToString(); ].ToString(); p_age.Text = reader["p_age" reader["p_age"].ToString(); ].ToString(); p_gender.Text = reader["p_gender" reader["p_gender"].ToString(); ].ToString(); Consultant.Text = reader["consultant" reader["consultant"].ToString(); ].ToString(); p_number.Text = reader["p_phone" reader["p_phone"].ToString(); ].ToString(); }
} } private void button1_Click(object button1_Click( object sender, EventArgs e) {
SqlConnection con = new SqlConnection("Data SqlConnection("Data Source=. Source=.\\SQLEXPRESS;Initial \\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); Security=True"); con.Open(); SqlCo SqlComm mmand and com com = new SqlCommand("upda SqlCommand("update te patie patientbas ntbasicdet icdetails ails set p_na p_name= me= '"+p_name+ '" +p_name+""' p_add = '"+p_add.Text+" +p_add.Text+ "' p_age='"+p_age+"' +p_age+"' p_gender='"+p_gender+ p_gender='" +p_gender+"'consultant='" "'consultant='"+Consultant+ +Consultant+"'p_phone='" "'p_phone='"+p_number+ +p_number+"' "' where p_id='" + p_id.Text + "'" "'",, con); com.Parameters.Add( "@p_name" "@p_name",, SqlDbType.NVarChar, 10, "p_name" "p_name"); ); com.Parameters["p_name" com.Parameters[ "p_name"].Value ].Value = p_name.Text; com.ExecuteNonQuery(); con.Close(); } private void Exit_Click(object Exit_Click(object sender, EventArgs e) { this.Close(); this .Close(); } private void patientbasicdetails_Load( object sender, EventArgs e) { // TODO: This line of code loads data into the 'pbasic21.patientbasicdetails' table. You can move, or remove it, as needed. //this.patientbasicdetailsTableAdapter1.Fill(this.pbasic21.patientbasi cdetails); // TODO: This line of code loads data into the 'pbasic1.patientbasicdetails' table. You can move, or remove it, as needed. //this.patientbasicdetailsTableAdapter.Fill(this.pbasic1.patientbasicd etails); p_age.Clear(); p_number.Clear(); p_add.Clear(); p_name.Clear(); p_gender.Text = "" ""; ; Consultant.Text = "" ""; ;
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
51
}
Billing code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; System.Windows.Forms; using System.Data.SqlClient; namespace new_asha_health_care { public partial class billing : Form { public billing() { InitializeComponent(); } private void label4_Click(object sender, EventArgs e) { } private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e) { } private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e) { } private void label5_Click(object sender, EventArgs e) { } private void splitContainer1_SplitterMoved(object sender, SplitterEventArgs e) { } Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
52
private void billing_Load(object sender, EventArgs e) { } private void button3_Click(object sender, EventArgs e) { if(textBox6.Text == "") { MessageBox.Show("Please Enter the Patient ID to get details", "Asha Health Care", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else if(!textBox6.Text.StartsWith("PA-")) { MessageBox.Show("Please enter appropriate Patient id", "Asha Health Care", MessageBoxButtons.OK,, MessageBoxIcon.Information); MessageBoxButtons.OK } else { SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); con.Open(); SqlCommand com = new SqlCommand("select * from patientbasicdetails where p_id='" + textBox6.Text + "'", con); SqlDataReader reader = com.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { textBox1.Text = reader["p_name"].ToString(); textBox3.Text = reader["p_age"].ToString(); textBox2.Text = reader["p_gender"].ToString(); textBox4.Text = reader["consultant"].ToString(); textBox5.Text = reader["charge"].ToString(); } } }
} private void button1_Click(object sender, EventArgs e) {
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
53
SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=Asha Health care;Integrated Security=True"); con.Open(); SqlC SqlCom omma mand nd cmd cmd = new new SqlC SqlCom omma mand nd(" ("in inse sert rt into into bill bill values(@a,@b,@c,@d,@o,@e,@f,@g,@h,@i,@j,@k,@l,@m,@n)", values(@a,@b,@c,@d,@o,@e,@f,@g,@h ,@i,@j,@k,@l,@m,@n)", con); cmd.Parameters.AddWithValue("@a", textBox6.Text); cmd.Parameters.AddWithValue("@b", textBox1.Text); cmd.Parameters.AddWithValue("@c", textBox2.Text); cmd.Parameters.AddWithValue("@d", textBox3.Text); cmd.Parameters.AddWithValue("@o", textBox4.Text); cmd.Parameters.AddWithValue("@e", textBox5.Text); cmd.Parameters.AddWithValue("@f", textBox7.Text); cmd.Parameters.AddWithValue("@g", textBox8.Text); cmd.Parameters.AddWithValue("@h", textBox9.Text); cmd.Parameters.AddWithValue("@i", textBox10.Text); cmd.Parameters.AddWithValue("@j", textBox11.Text); cmd.Parameters.AddWithValue("@k", textBox15.Text); cmd.Parameters.AddWithValue("@l", comboBox1.Text); cmd.Parameters.AddWithValue("@m", textBox13.Text); cmd.Parameters.AddWithValue("@n", textBox14.Text); cmd.ExecuteNonQuery(); MessageBox.Show("Saved"); } } }
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
54
1.Crystal Reports
Crystal Reports have been implemented in the project to help generate user-friendly and desirable reports. Crystal reports is a business intelligence application used to design and generate reports from a wide range of data sources. In this project various crystal reports included are : 1. Billing for the patient 2. Report for 6 tests. 3. Details of the patient.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
This report gives the Patient’s Bill Receipt.
This is the report generated for the test Biochemistry.
Department of Computer Science, Christ University, Bangalore-29.
55
Asha Health Health Care Management
This is the Blood Test report
Department of Computer Science, Christ University, Bangalore-29.
56
Asha Health Health Care Management
Department of Computer Science, Christ University, Bangalore-29.
57
Asha Health Health Care Management
58
This is the Main MDI form .When the user clicks on each button they will be prompted to Login form.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
59
This is the form which appears after the MDI form, in which the Admin, the Doctor, the Lab technician will be able to log in.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
60
The above form is the about box.
This is the registration form. The Patient’s Basic details, consultant and consultant’s charge can be added into Patient details. The details can be added, searched, updated.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
The above form shows controls that are accessible by Lab technician.
This is the Biochemistry Test form accessible by Lab technician. Department of Computer Science, Christ University, Bangalore-29.
61
Asha Health Health Care Management
The second test form, Gastroscopy Test.
Next test form, Stool Test.
Department of Computer Science, Christ University, Bangalore-29.
62
Asha Health Health Care Management
The next form is X-Ray Test.
Department of Computer Science, Christ University, Bangalore-29.
63
Asha Health Health Care Management
Next test is the Urine Test form.
The last test form is Blood Test form.
Department of Computer Science, Christ University, Bangalore-29.
64
Asha Health Health Care Management
65
8.Conclusion
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
66
The project project titled “ Asha Health Health Care Care Management Management System“ System“ is a simple which uses C#.NET as front end and Sql Server 2008 as back end This is designed to help the user as well as the authorities with the day to day progress of the hospital details and that of the patients and doctors. doctors. It mainly helps the user to keep track of the up to date details of the inpatients outpatients along with their bill details.The software make makes s it it eas easy y for for the the use userr to to ent enter er,, ret retri riev eve e or or modif modify y dat data. a.
It is is easy easy to to use use this this
software as it helps in fast and accurate access to the details regarding the sickness type, treatment given, doctor incharge and the bill details of the patient in the hospital. It displays doctor details, patient details also.
Advantages: The system system has three main features:
Easy Operability: Cons Co nsis iste tent nt user user inte interf rfac ace e with with ever every y econ econom omic ic desi design gn..
All All comp comput uter er
operations are button click and when mouse pointer reaches a control tool tip tests are maintained for user understandability. Simple, easy to understand error messages are provided.
Maintainability: The system design is modular which gives scope for easier maintenance and high high relia reliabili bility. ty.
Many Ma ny types of contr controls ols and valid validati ations ons ensure ensure maximum maximum
security and a minimum error rate.
Flexibility: Sinc Since e the the desi design gn is modu modula lar, r, it give gives s a grea greatt flex flexib ibil ilit ity y for for a syst system em enhancement and and expansion. Integration of new modules is also very very easy.
Future Enhancements In future this project can be modified using the future technology which would be easier and faster to use. •
The password can be biometric.
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
•
Automatic generation generation of the bill.
•
Improved organisation organisation of the project.
•
Emergency patient module can be included.
•
Birth and Death record module can also be included.
67
9. Bibliography
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
68
Books •
Hejlsberg, Anders. Microsoft.NET Development Series.4th Edition.
•
Evjen, Bill, et al. Professional C# 4.0 and .NET 4.
•
Dorman, Scott. Teach Yourself Visual C# 2010 in 24 Hours: Complete Starter Kit .
•
Troelsen, Andrew. Pro C# 2010 and the .NET 4 Platform . 5th Edition.
•
Wagner, Bill. Effective C#:50 Specific Way To Improve Your C# .2nd Edition.
Websites •
Narayanas Narayanaswamy, wamy, Anand. Anand. C# Tutori Aug. Tutorials als for beginn beginners ers:: Part Part 1.16 Aug. 2001. 5 June 2011. http://www.csharpcorner.com/uplo http://www.csharpcorner.com/uploadfile/anandnarayanaswamy/ adfile/anandnarayanaswamy/cstutori cstutori al1an11282005015140/cstutorail1an.aspx
•
Microsoft Corporation. How to: Insert New Record into a Database . 2 Aug. 2005. 30 July 2011. http://msdn.microsoft.com/en-us/library/ms233812.aspx
•
Microsoft Corporation. How to: Update Records into a Database. 11 Mar. 2005. 30 Jan 2011.
•
Microsoft Corporation. How to: Delete Records in a Database . 1 june. 2005. 30 feb 2009.
•
Thackett, Nanette. Crystal Report Simple Tutorial. 1 June 2002.15 Aug 2011. http://www.shingstar.net/tutorials/crystalreports/crystalreportstutorial.htm
Department of Computer Science, Christ University, Bangalore-29.
Asha Health Health Care Management
Department of Computer Science, Christ University, Bangalore-29.
69