You are on page 1of 64

PROJECT REPORT ON HOSPITAL MANAGEMENT Submitted in the partial fulfillment of requirements of the prescribed course for the award

of BACHELOR OF TECHNOLOGY IN COMPUTER SCIENCE & ENGINEERING OF MAHRISHI MARKANDESHWER UNIVERSITY, MULLANA

Submitted by: NEETU SONDHI 11091429 Department of COMPUTER SCIENCE & ENGINEERING M.M ENGINEERING COLLEGE ,MULLANA(AMBALA)

Contents
Preface Certificate Acknowledgement Preface An Introduction to the organization Feasiblity study Source code Screenshots Hardware & Software requirements Conclusion Bibliography

ACKNOWLEDGEMENT
First of all I would like to thank the supreme power, the almighty god who has always guided us to work on the right path of our life. Without his grace this project could not become a reality. Secondly, my parents who have always inspire and encouraged me through my life. I feel obliged in taking the opportunity to thank the NIIT people and my worthy thank to my teacher, Er. vidya who supported me theoretically and practically. Project is like a bridge between theoretical and practical working. With this will I joined this particular project. Its a matter of great pleasure for me to submit a project report on REGISTER AND HAVE FUN.

Preface
1. TO INCREASE THE EFFICIENCY. 2. TO INCREASE THE DEGREE OF ACCURACY. 3. TO MAKE THE DAY TO DAY WORK EASIER. 4. TO MINIMIZE THE TIME IN GETTING THE REQUIRED INFORMATION. 5. TO REDUCE REDUNDANCY. 6. TO PROVIDE THE MANAGEMENT WITH THE REPORTS AT THE RIGHT TIMES .
IN THE MANUAL SYSTEM THERE ARE MANY DRAWBACKS AND THE DISADVANTAGES. IN SPITE OF ADEQUATE CARE TAKEN TO MAKE THE FUNCTIONING OF THE SYSTEM EASY, MOST OF THE TIME THERE ARE PROBLEMS WHEN A QUERY IS TO BE MADE OR A REPORT IS TO BE GENERATED.

THIS PROJECT IS INTENDED TO HELP THE PEOPLE ASSOCIATED WITH THE MANAGING OF THE LIBRARY, TO MAKE THEIR TASK EASIER WITH BETTER ACCURACY & FAST INFORMATION RETRIEVAL.THIS PROJECT WILL CONTAIN ALL THE ACTIVITIES ASSOCIATED WITH THE LIBRARY SUCH AS KEEPING TRACK OF THE FACILITIES ACCEPT,FACILITIES REJECT , NO. OF FACILITIES IN THE STOCK ETC. THE PROPOSED SYSTEM WILL FOLLOW THE SAME PROCEDURE AS THE MANUAL ONE I.E. THE SYSTEM DOES NOT REQUIRE ANY MAJOR CHANGES IN THE PRESENT FUNCTIONING EXCEPT FROM CONVERTING THE MANUAL SYSTEM

INTO COMPUTERIZED SYSTEM WHICH WILL REDUCE THE PAPER WORK TO THE LARGE EXTENT. THIS WILL ENCOURAGE THE PEOPLE TO FOLLOW THE HOSPITAL MANAGEMENT SYSTEM AND NOT HESITANT IN ADOPTING THE NEW TECHNOLOGY. THIS IS BECAUSE THE PEOPLE ARE USUALL

INDEX
SERIAL NO.

CHAPTER NAME
INTRODUCTION Introduction to Project Introduction to Language SYSTEM ANALYSIS SYSTEM DESIGN SDLC (System Development Life Cycle) IMPLEMENTAT ION Hospital Requirements Login Hospital Maintenance Patient Maintenance Discharge Issue Reports

PAGE NO.

1.

2. 3.

4.

5.

FEASIBILITY STUDY Software Availability Sufficient Information FUTURE DEVELOPMENT Application Of Project Future Development Of Project BIBLIOGRAPHY

6.

7.

INTRODUCTION TO C
C is developed by Dennis Ritchie C is a structured programming language C supports functions that enables easy maintainability of code, by breaking large file into smaller modules Comments in C provides easy readability C is a powerful language
C (pronounced like the letter C) is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system Although C was designed for implementing system software it is also widely used for developing portable application software C is one of the most widely used programming languages of all time and there are very few computer architectures for which a C compiler does not exist. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.

Features of C language
C has facilities for structured programming and allows recursion, while a static type system prevents many unintended operations. In C, all executable code is contained within functions. Function parameters are always passed by value. Pass-by-reference is simulated in C by explicitly passing pointer values. Heterogeneous aggregate data types (struct) allow related data elements to be combined and manipulated as a unit. C program source text is free-format, using the semicolon as a statement terminator. C also exhibits the following more specific characteristics:

Variables may be hidden in nested blocks Partially weak typing; for instance, characters can be used as integers

Low-level access to computer memory by converting machine addresses to typed pointers


Function and data pointers supporting ad hoc run-time polymorphism array indexing as a secondary notion, defined in terms of pointer arithmetic

A preprocessor for macro definition, source code file inclusion, and conditional compilation Complex functionality such as I/O, string manipulation, and mathematical functions consistently delegated to library routines

A relatively small set of reserved keywords A large number of compound operators, such as +=, -=, *= and ++ etc.

C's lexical structure resembles B more than ALGOL. For example:


{ ... } rather than begin ... end = is used for assignment (copying), like Fortran, rather than ALGOL's :=

== is used to test for equality (rather than .EQ. in Fortran, or = in BASIC and ALGOL) Logical "and" and "or" are represented with && and ||, which don't evaluate the right operand if the result can be determined from the left alone (short-circuit evaluation), and are semantically distinct from the bit-wise operators & and |

PROGRAM STRCTURE
#include<stdio.h> int main() { --other statements }

Header Files:
The files that are specified in the include section is called as header file. These are precompiled files that has some functions defined in them. Header file is given an extension .h

Main Function:
This is the entry point of a program When a file is executed, the start point is the main function

Chapter 1 INTRODUCTION OF PROJECT

Introduction: Hospital Management System is powerful, flexible, and easy to use and is designed and developed to deliver real conceivable benefits to hospitals and clinics and more importantly it is backed by reliable and dependable Vasudha SoftAim Innovations support. Hospital Management System is designed for multispeciality hospitals, to cover a wide range of hospital 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. Hospital Management System is a software product suite designed to improve the quality and management of clinical care and hospital health care management in the areas of clinical process analysis and activity-based costing. Hospital Management System enables you to develop your organization and improve its effectiveness and quality of work. Managing the key processes efficiently is critical to the success of the hospital helps you manage your processes.

Features: 9

Only basic knowledge of computers is required for operation of Hospital Management System. As it has user-friendly application interface Hospital Management System is Customizable and User Configurable An inbuilt Settings module makes Hospital Management System flexibility to cater to diverse organizational needs. It is build on .NET technology - one of the most latest and upcoming technologies in the field of Information Technology, which makes you a forerunner in the world of Information technology. Hospital Management System brings information to the user's desktop through integration across all modules Hospital Management System has pre-defined reports these are used for by staff filling out forms, freeing resources for more critical tasks normal reporting as well as Administration & Staff development purpose. Additionally, Hospital Management System can be easily customized for their own customized reports Hospital Management System enables hospitals and doctors to better serve their patients Improved quality of patient care Increased nursing productivity Reducing the time spent Better quality of care, procedures and service to Patients Control over the costs incurred by diagnosis-related groups

Modules: Patient: In patient module here we can registered the new patient, during registration we enter the basic information regarding patient. There are two types of patient one is INPATIENT and another is OUTPATIENT. If patient is INPATIENT then we can check the availability of room in particular ward.

Appointment Scheduling: In appointment scheduling we schedule the appointment for new patient in which we assign the date, time, department and doctor is available that time. If patient want particular doctor then we can search the doctors scheduling and available time for that doctor. Here

10

we add the urgency and reminder to patient. We can also cancel the appointment of particular patient.

Medocs (Medical documentation and services):We can enter or view the previous medical record of particular patient. We can enter or view the PRESCRIPTION of particular patient. We can enter or view other information like : Notes and reports, Allergy, Diet Plan, Physician Orders, Problems, Measurement, Diagnosis, Therapy, Medical advice

Admission: In this module we can search the only admitted patient. Here we can update his details like prescription, notes and reports, measurement, birth details, pregnancies and we can cancel the particular admission.

Ambulatory:

11

In this module we can see the information related to patients which are outpatient. Here we can see the department wise appointment and particular days outpatient. We can also see the todays waiting list and also transfer or take over the patient from one department to another department .From here we can also admit the patient.

Employee: In this module we can register the new employee, for which we can enter the basic information about employee and his professional details.

Doctors: In this module we can view the todays doctor on call schedule department-wise .Here we can create the duty plan of doctor and edit or update the duty plan of particular doctor. Here we can add/delete the doctor to particular department.

Nursing: In this module we show the ward occupancy there room and bed. We can assign the particular bed to particular patient, or we can discharge the patient Transfer the patient from one ward to another or one room to another room or one bed to another bed. We can view the waiting list and from there also we can transfer the patient. Further we can view the nursing report, physician orders, diagnostic reports, lab reports etc. We also provide the quick view of todays occupancy of the nursing ward Here we can also search the patient data in which ward and in which room patient is admitted

12

Ward Management: Here we can create new ward, in particular department, assign the rooms to ward, how many beds for particular room. All of these we can set from here.

Operation Room: Here we can search the patient who is gone through any operation and his detail information like operation date, surgeon, therapy, special notice, operation type, operation room number. Here we can also give the quick view of todays nurses on standby duty and we can create the duty plan for particular nurse.

Laboratories: In this module we have to fill up the form and send the request to laboratory test. Here we can also see the pending request. We can also search the particular patient and view the laboratory information of particular patient. Type of laboratories: Medical Lab, Pathological Lab, Bacteriological Lab, Blood Bank.

Radiology: In this module we can request for a radiological test. Contains test for X-ray, sonography, computer tomography, mammography, magnetic resonance tomography etc. We can view the pending request for radiology

Advantages:

13

You will require less number of Staff to cater more patients in same time or even less. You would have the choice to re-deploy them at other suitable locations Hospital Management System not only provides an opportunity to the hospital to enhance their patient care but also can increase the profitability of the organization Hospital Management System would enable hospitals or Nursing Homes to serve the rapidly growing number of health care consumers in a cost-effective manner Hospital Management System can also save extra money on your current computer hardware shopping. Check up with our executive to more on this Hospital administrators would be able to significantly improve the operational control and thus streamline operations This would enable to improve the response time to the demands of patient care because it automates the process of collecting, collating and retrieving patient information The senior Doctors would spend his precious time more in clinical activities than to put in clerical activities otherwise This software interface would also save them a lot of time for special jobs only Accounting sometimes becomes awfully pathetic and complex. This product will eliminate any such complexity, since the retrieval of information through its MIS will become virtually on the tip of your fingers

Very important for some, the reduced cost of the manpower would pay for the cost of this product with in a short time after its implementation

14

Chapter 2 SYSTEM ANALYSIS

Why is System Analysis Necessary?


During system analysis some activities are carried out, such as problem definition, design, implementation. Before designing the actual system/project, you should know, 1. What is the problem? 2. How to solve it? 3. What are the technical factors required? 4. What are its features and limitations? If a system is designed without considering above activities then the system will not work properly to the satisfaction of user requirement. So system analysis is necessary to design perfect and accurate system, which satisfies the user requirement.

15

Role of system analyst:


System analysis is central to the whole of system development. It includes gathering the necessary data and developing plans for new system. This is not an easy task because many people need to be satisfied and many conflicts resolved. The system analyst is the person who guides the analysis, design and implementation and maintenance of a given system. In performing these four tasks, the analyst must always match the information system objectives with the goals of organization. 1. System analyst must determine the requirements of user of a new system so that during analysis they can discuss with users how to design a new system that meets the requirements. 2. System analyst has to provide different solutions to the problem, to satisfy user requirements. 3. The system analyst must be a able to find out the details about the system itself. To do this, the analyst will have to look at such things as forms (input, output formats), data used by the organization. 4. System analyst must also be able to work in environments that have considerable ambiguity and uncertainty. 5. System analyst must also be creative and imaginative in producing new solutions to meet user requirements.

Chapter 3 SYSTEM DESIGN

3.1 SDLC (System Development Life Cycle)

16

A structured sequence of phases for implementing an information system is system design life cycle of that system. The various steps involved in the system design life cycle are as follows: -

Reorganization of need (preliminary survey/initial investigation): The steps involves about outlining the problem and understanding what are the present methods of solving the problems, which are designing the system. It includes preliminary survey/initial investigation as well.

Feasibility study: (Evaluation of existing system and procedures analysis of alternative candidate systems cost estimation) The feasibility study is a formal proposal for a new system. Before the project is to begin, the project is studied to determine what exactly the user wants depending upon the result of initial investigation. The survey is expanded to more detailed study.

System analysis: Analysis is a detailed study of various operations performed by the system and the relationship with in and outside of the system that is it includes finding out in more detailed what the system problem are and what are the different new changes the user wants.

System design: The system design is most creative and challenging phase of the system design life cycle. Analysis phase is used to design the logical model of the system and system design the physical model of the system: In these phase system designer designs: Output:

17

Output design means that what should be the format presentation of the result. First of all for designing of various forms to be present which is the front end of our software.

Input: In input design stage, which is the part of the system design stage the system analyst has to decide what inputs are required for the system and prepare input format to give input to the system according to the requirement. Considering the input to the front end from the user we use C language so that the user can easily enter the data.

18

Chapter 4

IMPLEMENTATION

Background
A Hospital is a place where Patients come up for general diseases. Hospitals provide

19

facilities like:

Consultation by Doctors on Diseases. Diagnosis for diseases. Providing treatment facility. Facility for admitting Patients (providing beds, nursing, medicines etc.) Immunization for Patients/Children.

Various operational works that are done in a Hospital are:

Recording information about the Patients that come. Generating bills. Recording information related to diagnosis given to Patients. Keeping record of the Immunization provided to children/patients. Keeping information about various diseases and medicines available to cure

them. These are the various jobs that need to be done in a Hospital by the operational staff and Doctors. All these works are done on papers. The work is done as follows: Information about Patients is done by just writing the Patients name, age and gender. Whenever the Patient comes up his information is stored freshly. Bills are generated by recording price for each facility provided to Patient on a separate sheet and at last they all are summed up. Diagnosis information to patients is generally recorded on the document, which contains Patient information. It is destroyed after some time period to decrease the paper load in the office. Immunization records of children are maintained in pre-formatted sheets, which are kept in a file. Information about various diseases is not kept as any document. Doctors themselves do this job by remembering various medicines. All this work is done manually by the receptionist and other operational staff and lot of papers are needed to be handled and taken care of. Doctors have to remember various medicines available for diagnosis and sometimes miss better alternatives as they cant remember them at that time.

This document contains details of the project that has to be executed in order to complete the course Programming and Testing. The project is LIBRARY management system about ward management,nursing,patient,doctors,bed plannings etc. 20

The Federal States (German Lnder) are obliged to set up hospital plans, showing how many hospitals and hospital beds are considered necessary for hospital treatment consistent with the needs of the population. They are subdivided into specialist fields and hospital regions.

Selected information about Hospital (requirements) plan: Definitions:


General hospitals Intensive care beds Plan beds

General hospitals:
General hospitals are hospitals, which are equipped with beds in fully-inpatient specialist departments, where the beds are not exclusively reserved for psychiatric, psychotherapeutic or psychiatric, psychotherapeutic and neurological patients. Types of general hospitals: - University clinics: university clinics according to the University Construction Promotion Act (HBFG - Hochschulbaufrderungsgesetz). - Plan hospitals: hospitals taken up in the hospital plan of a Federal State (German Land). - Hospitals with a supply contract according to Article 108 Section 3 of the Code of Social Law V (SGB V): hospitals which are authorized to implement hospital treatment of the insured because of a supply contract with the regional associations of the statutory health insurance funds and the associations of the substitute health insurance institutions.

Intensive care beds:


Intensive care beds are beds, which are installed for intensive medical care. Their number is calculated as an annual average, just like the overall number of beds installed. The

21

intensive care beds also include beds with monitoring equipment for the seriously ill, but not recovery beds. For subsidized hospitals only those intensive care beds are listed, which are admitted according to the hospital plan respectively the subsidy notice. However elsewhere all installed intensive care beds are listed.

Plan beds:
Plan beds are hospital beds which have been taken up in the hospital plan of a Federal State (German Land). - Subsidized by the Hospital Financing Act (KHG - Krankenhausfinanzierungsgesetz): beds, on which the authorization of the subsidy funds according to KHG is based. - Subsidized by the University Construction Promotion Act (HBFG Hochschulbaufrderungsgesetz): beds, on which the authorization of the subsidy funds according to HBFG is based.

Health Status

Mortality o Regional Differences in Mortality o Causes of Death o Infant and Mothers' Mortality o Life Expectancy o Terminal Care o sonstiges Health Status, Ailments o Pain o Health of Children and Adolescents o Health of Single Mothers and Fathers o Old Age and Health o other Disabilities Consequences of Illness o Absenteeism Due to Ill Health, Number of staff away sick o Early Retirement o Conditions Requiring Nursing Care Consequences of Treatment

22

Health Care System

Health Protection and Health Promotion o Public Health Services o Health and Safety at Work Prevention, Health Protection and Self-help Groups o Prenatal Examinations o Examinations for early detection/prevention of diseases in children o Early Recognition of Cancer o Self-help Groups Employees and Facilities of Healthcare o Physicians, Treatment by Physicians o Dentists, Treatment by Dentists o Pharmacists, Pharmacies o Hospitals o Hospital Personnel o Prevention or Rehabilitation Facilities o Personnel in Prevention or Rehabilitation Facilities o Rescue Services and Patient Transport o Non-Medical Practitioners o Psychologists/Psychotherapists o Businesses Providing Therapeutic Aids and Appliances o Ambulatory Care o Stationary and Semi-Stationary Care o Personnel in Health Care, Health Personnel Accounts o Paramedical Professionals generally/others o Health Care Center Pharmaceutical Supply, Aids and Appliances/Non-medical Therapy o Pharmaceuticals o Self-Medication o Aids and Appliances/Non-medical Therapy o Pharmaceutical and Medical Technology Industries Medical Processes, Medical Examinations and Therapies o Medical Large-Scale Equipment Units

23

o o o o o o o o

Diagnostic Imaging Operations and procedures in hospitals Minimally Invasive Procedures Ambulatory Surgery Transplantations/Organ Donations/Dialysis Blood donation, Blood transfusion Alternative Medicine Reproductive Medicine

Key feature:

Complete and automatic operating of reception. Laboratory management. Indoor Management OT Management Complete history of patients. Up to-date account management with all accounting needs. Maintaining the inventory section of your hospital. Build in backup and restore facilities. LAN compatible. Compatibles with any windows-9X or higher. The software is both menu and screen driven. Instant voice help available on all forms/options.

Hospital Master Master Tables: The hospital management software provides you all kinds of masters that are in customizing mode so that your can add the things as per requirement like.

Test Types Test Wards

Groups Uses Hospitals 24

Diagnosis Employees

Description Products Ledgers

Reception:

A more advance reception for all required operations to be done automatically. Creating a new patient entry. View and modify all old patient details. Select any patient, calculate his bill for the different facilities provide by you like lab test charge, sonography charge, E.C.G. Charge, X-ray charge, ambulance charge, any additional service charge The software will print two copies of bill and send data to report printing department.

Security Features:

Password facility to ensure validity of user Intelligent validation for each entry. User defined date access. Data secrecy. You can hold the complete details of doctors of your hospital. You can also manage the issue register.

Indoor:

The hospital management software provide a complete and automatic indoor management You can see the occupancy of your hospital. You can see the treatment given to a particular patient. You can see the services given to a particular patient You can see the deposits of any patient. You can prepare discharge ticket and discharge bill of any patient. You can see the due detail of bills.

Hospital Record:

Delivery and Birth Record Death Record Copper T Record Generator Record D & C /MTP Record

Hospital Reports:

25

The hospital management software provide faculty to view and print all kinds of medical reports from date to date. These reports are prepared automatically and accurately.

Death Daily Register Indoor Register OT Register Ambulance Register Delivery Register Death Register

Generator Register D&C/MTP Register Cast wise summary Village wise summery Doctor wise summery Month wise summery Day wise summery Old Cash Register

Copper-T Register Test Result Printing:

In the hospital management software we can generate and print the test results.

Serum chemistry test Serum chemistry test Hematology test Urine test Serology test Sputum test

Seminal fluid test Stool test Thyroid function test Urine chemical Examination test Pregnancy test

Reports:

The Reports can be printed on any printer like Dot matrix, inkjet and laser etc.

Minimum system requirements:

Hardware PC with Pentium-I, 233 MHz processor, 32 MB RAM, 500 MB hard disk space, CD ROM drive, VGA monitor. Software: window95 or higher.

Account Master
Heads:

The Software includes all principal heads of commercial field. We can also customize the heads as per requirement.

Ledgers:

Unlimited accounts may be maintained through various heads All necessary information of particular account is also kept.

26

Accounting Reports: The hospital management software provides facility to view and print

Ledger list. Ledger books with daily / summary options. Trial Balance with closing balance and detailed options. Balance Sheet, quick view of current Assets and Liabilities. Report of every head can also be generated on the closing and detail based.

Inventory Master The hospital management software also provides facility to maintain complete inventory like:

Sale / Purchase data entry Sale / Purchase return

Inventory Reports: All kinds of inventory reports can be generated within seconds and printed by our software.

Stock report Sale / Purchase book Stock Ledger Sale / Purchase return book

Bonus Tools: The hospital management software provides many useful tools like

Appointment list to inform you about your appointments. Address daily that holds the address and additional information of the particular person. Daily Notes which records any note for a particular day Memoranda keep personal information. Emergency list

Definitions of problems
Problems with conventional system

27

1.Lack of immediate retrievals:-The information is very difficult to retrieve and to find particular information like- E.g. - To find out about the patients history, the user has to go through various registers. This results in inconvenience and wastage of time. 2. Lack of immediate information storage:- The information generated by various transactions takes time and efforts to be stored at right place. 3. Lack of prompt updating:- Various changes to information like patient details or immunization details of child are difficult to make as paper work is involved. 4.Error prone manual calculation:- Manual calculations are error prone and take a lot of time this may result in incorrect information. For example calculation of patients bill based on various treatments. 5.Preparation of accurate and prompt reports:- This becomes a difficult task as information is difficult to collect from various registers

Technical feasibility
A study of resource availability that may affect the ability to achieve an acceptable system. This evaluation determines whether the technology needed for the proposed system is available or not. Can the work for the project be done with current equipment existing software technology & available personal? Can the system be upgraded if developed? If new technology is needed then what can be developed? This is concerned with specifying equipment and software that will successfully satisfy the user requirement. The technical needs of the system may include: Front-end and back-end selection

An important issue for the development of a project is the selection of suitable front-end and back-end. When we decided to develop the project we went through an extensive study to determine the most suitable platform that suits the needs of the organization as well as helps in development of the project. The aspects of our study included the following factors. Front-end selection: 1. It must have a graphical user interface that assists employees that are not from IT background. 2. Scalability and extensibility. 3. Flexibility.

28

4. Robustness. 5. According to the organization requirement and the culture. 6. Must provide excellent reporting features with good printing support. 7. Platform independent. 8. Easy to debug and maintain. 9. Event driven programming facility. 10. Front end must support some popular back end like Ms Access. According to the above stated features we selected VB6.0 as the front-end for developing our project. Back-end Selection: 1. Multiple user support. 2. Efficient data handling. 3. Provide inherent features for security. 4. Efficient data retrieval and maintenance. 5. Stored procedures. 6. Popularity. 7. Operating System compatible. 8. Easy to install. 9. Various drivers must be available. 10. Easy to implant with the Front-end. According to above stated features we selected Ms-Access as the backend. The technical feasibility is frequently the most difficult area encountered at this stage. It is essential that the process of analysis and definition be conducted in parallel with an assessment to technical feasibility. It centers on the existing computer system (hardware, software etc.) and to what extent it can support the proposed system.

3.2) Economical feasibility


Economic justification is generally the Bottom Line consideration for most systems. Economic justification includes a broad range of concerns that includes cost benefit analysis. In this we weight the cost and the benefits associated with the candidate

29

system and if it suits the basic purpose of the organization i.e. profit making, the project is making to the analysis and design phase. The financial and the economic questions during the preliminary investigation are verified to estimate the following: The cost to conduct a full system investigation.

The cost of hardware and software for the class of application being considered. The benefits in the form of reduced cost. The proposed system will give the minute information, as a result the performance is improved which in turn may be expected to provide increased profits. This feasibility checks whether the system can be developed with the available

funds. The Hospital Management System does not require enormous amount of money to be developed. This can be done economically if planned judicially, so it is economically feasible. The cost of project depends upon the number of man- hours required.

3.3) Operational Feasibility


It is mainly related to human organizations and political aspects. The points to be considered are:

What changes will be brought with the system? What organization structures are disturbed? What new skills will be required? Do the existing staff members have these

skills? If not, can they be trained in due course of time? The system is operationally feasible as it very easy for the End users to operate it. It only needs basic information about Windows platform.

3.4) Schedule feasibility


Time evaluation is the most important consideration in the development of project. The time schedule required for the developed of this project is very important since more development time effect machine time, cost and cause delay in the development of other systems. A reliable Hospital Management System can be developed in the considerable amount of time

30

SOURCE CODE
#include<stdio.h> #include<dos.h> #include<string.h> #include<process.h> #include<conio.h> #define bed 10 //void ss(); struct date d; struct time t; struct biodata { int m; int d; char name[20]; char fname[20]; long int s_s; int bn; char sex[10]; char des[20]; int age; }bi,temp;

31

struct hos { long int gs; }h; int a,b1,b,b2; long int want; FILE *ns,*nt,*ntt,*hp; unsigned long int size=sizeof(bi); int date[14]={0,31,28,31,30,31,30,31,31,30,31,30,31}; char check='n',check1; void box(int sc,int sr,int ec,int er,char sign) { for(int i=sc;i<=ec;i++) { gotoxy(i,sr); cprintf("%c",sign); } for( i=sr+1;i<=er;i++) { gotoxy(sc,i); cprintf("%c",sign); printf("\n"); } for( i=sr+1;i<=er;i++) { gotoxy(ec,i); cprintf("%c",sign); printf("\n"); } for( i=sc;i<=ec;i++) { gotoxy(i,er); cprintf("%c",sign); } } void inter() { int k=15 ; for(;!kbhit();k++) { int t=0; int z=1; clrscr(); gotoxy(k,12); box(13,2,65,22,''); textcolor(k+1); box(15,4,63,20,''); textcolor(k); gotoxy(k,10); cprintf("Project Devloped By :");

32

} void main() { //ss(); textbackground(BLACK); textcolor(YELLOW); clrscr(); char *pass,na[21]; printf("\n\n\n\t\t\tENTER USER NAME "); textbackground(5); gotoxy(44,4); cprintf(" "); textbackground(BLACK); up1: fflush(stdin); gotoxy(45,4); gets(na); if(na[0]==' '|| na[0]=='\0') goto up1; up: gotoxy(25,6); printf("\n\n\n\t\t\tENTER PASSWORED");

gotoxy(k+2,11); textcolor(k+3); t=t+40; z+=10; sound(1000+t-k); cprintf(" NEETU SONDHI REG.NO. 11091429"); delay(100+z); nosound(); if(k>=40) { for(k=40;!kbhit();k--) { clrscr(); textcolor(k); box(13,2,65,23,177); textcolor(k+1); box(15,4,63,21,'*'); gotoxy(k,12); cprintf("Project Devloped By :"); gotoxy(k+2,13); textcolor(k+3); sound(1500-k); cprintf("NEETU SONDHI REG.NO. 11091429"); delay(200); nosound(); if(k<=15) break; } k=15; } }

33

pass=getpass(" :"); fflush(stdin); if(strcmpi(pass,"SONIA")==0) { clrscr(); char ch; void add(); void mod(); void des(); void ddes(); void del(); void ashow(); void infor(); inter(); getch(); while(ch!=('n' || 'N')) { textcolor(RED); clrscr(); textcolor(26); box(20,2,54,20,178); gotoxy(20,1); textcolor(12+128); cprintf(""); gotoxy(28,4); textcolor(14); textbackground(WHITE); textcolor(14+128); cprintf(" MAIN MENU "); textbackground(BLACK); textcolor(14); gotoxy(21,5); printf(""); gotoxy(22,7); printf("ADD NEW RECORED -->A "); gotoxy(22,9); printf("MODIEFICATION RECORED -->M "); gotoxy(22,11); printf("SHOW ALL RECORED -->S "); gotoxy(22,13); printf("QUARY FOR DISPLAY -->D "); gotoxy(22,15); printf("DELET ONE RECORED -->R "); gotoxy(22,17); printf("DISPLAY DELETED RECORED-->O "); gotoxy(22,19); printf("DISPLAY INFORMATION -->I "); gotoxy(18,23); printf(" ENTER U R CHOICE >>>"); box(41,22,45,24,''); gotoxy(43,23); a=getche();

34

if(a==27) clrscr(); textbackground(3); textcolor(6); textmode(5); printf("\n\n\n\n\n\a\a\t"); cprintf("THANKS YOUR CORPORATION"); printf("\n\n\t\t\a\a"); cprintf("from :- NEETU SONDHI"); getch(); exit(0);

switch(a) { case 'a':

//START OF CASE ADD NEW

RECORED

case 'A': add(); break; //END OF CASE ADD NEW RECORED //FOR MODIEFICATION ANY ONE RECORED case 'm': //START OF CASE MODIEFICATION case 'M': mod(); break; //END OF CASE MODIEFICATION RECORED case 'd': //START OF CASE READS ONE case 'D': des(); break; //END OF CASE READS ONE RECOREDS case 's': //START OF CASE READS ALL

RECORED

RECOREDS

RECOREDS

RECORED

case 'S': ashow(); break; //END OF CASE READS ALL RECOREDS case 'r': //START OF CASE DELET ONE case 'R': del(); break; //END OF CASE Delet ONE RECORED*/ case 'o': //START OF CASE SHOW DELET

RECORED

RECORED*/

case 'O': ddes(); break; //END OF CASE SHOW Delet RECORED*/ case 'i': //START OF CASE INFORMATION case 'I': infor(); break; //END OF CASE default:

INFORMATION

RECORED*/

35

clrscr(); textbackground(WHITE); textcolor(14+128); gotoxy(25,10); cprintf("WRONG OPTION ENTER..................."); textbackground(BLACK); gotoxy(25,12); printf("PRESS ESC TO EXIT getch(); } } getch(); } else { textbackground(WHITE); textcolor(14+128); gotoxy(25,12); int i; cprintf(" WRONG PASSWARED"); for(;!kbhit();i++) { sound(1000); delay(1000); nosound(); i++; } getch(); textbackground(BLACK); gotoxy(5,12); clreol(); goto up; } } /*******************************/ //FUNTION FOR ADD RECORED void add() { char c; do { textcolor(3); int m1,d1,i1,j1,b=0; clrscr(); gotoxy(1,1);

........");

printf(" "); gotoxy(32,2); textattr(155); cprintf(" ADDITION SECTION ");

36

gotoxy(1,3); printf(" "); textbackground(BLACK); textcolor(3); fflush(stdin); printf("\n\t\tENTER THE NAME : "); gets(bi.name); fflush(stdin); printf("\n\t\tENTER FATHER'S NAME : "); gets(bi.fname); printf("\n\t\tENTER THE SOCIAL SEQURITY NUMBER : "); scanf("%ld",&bi.s_s); printf("\n\t\tENTER THE NAME DISEASE : "); fflush(stdin); gets(bi.des); ns=fopen("ho.dat","rb"); int t[22],i=0; while(fread(&temp,size,1,ns)==1) { t[i]=temp.bn; i++; } gotoxy(1,22); printf(" "); printf("UNUSED BED: "); for(i1=1;i1<=bed;i1++) { b=0; for(j1=0;j1<=i;j1++) { if(i1==t[j1]) { b++; break; } } if(b==0) printf("%4d",i1); } gotoxy(1,24); printf(" "); up: gotoxy(17,13); printf("ENTER THE BED NO. : "); scanf("%d",&b1); if(b1<=bed)

37

b2=1; rewind(ns); while(fread(&temp,size,1,ns)==1) { if(temp.bn==b1) { b2=0; gotoxy(25,15); textbackground(6); textcolor(14+128); cprintf("BED NUMBER IS ALREDRY ALLOCATED"); textbackground(BLACK); textcolor(3); gotoxy(25,16); printf(" TRY AGAIN"); getch(); gotoxy(1,13); clreol(); gotoxy(1,15); clreol(); gotoxy(1,16); clreol(); goto up; } } if(b2==1) bi.bn=b1;

else { gotoxy(16,15); textbackground(6); textcolor(14+128); cprintf("BED NUMBER IS NOT AVLAIABLE"); textbackground(BLACK); textcolor(3); printf("\n\t\tAGAIN TRY"); getch(); gotoxy(1,13); clreol(); gotoxy(1,15); clreol(); gotoxy(1,16); clreol(); goto up; } fclose(ns); s: gotoxy(17,15); printf("ENTER THE SEX : "); scanf("%s",bi.sex);

38

if(strcmpi(bi.sex,"male")==0||strcmpi(bi.sex,"female")==0) goto z; else { gotoxy(16,17); textbackground(7); textcolor(14+128); cprintf("PLEASE ENTER [ MALE/ FEMALE ]"); getch(); textbackground(BLACK); textcolor(3); gotoxy(1,15); clreol(); gotoxy(1,17); clreol(); goto s; } z: gotoxy(1,22); clreol(); gotoxy(1,23); clreol(); gotoxy(1,24); clreol(); gotoxy(17,17); printf("ENTER THE AGE : "); scanf("%d",&bi.age); upp: gotoxy(17,19); printf("ENTER DATE : "); scanf("%d",&d1); if(d1<=31) bi.d=d1; else { gotoxy(21,21); textbackground(6); textcolor(14+128); cprintf("DATE GIVE LESS THAN '31'"); getch(); textbackground(BLACK); textcolor(3); gotoxy(1,21); clreol(); gotoxy(1,19); clreol(); goto upp; } upp1: gotoxy(17,21); printf("ENTER MONTH : "); scanf("%d",&m1);

39

if(m1<=12) bi.m=m1; else { gotoxy(21,23); textbackground(7); textcolor(14+128); cprintf(" MONTH GIVE LESS THAN '12'"); getch(); textbackground(BLACK); textcolor(3); gotoxy(1,21); clreol(); gotoxy(1,23); clreol(); goto upp1; } ns=fopen("ho.dat","ab"); fwrite(&bi,size,1,ns); fflush(stdin); fclose(ns); clrscr(); textattr(155); gotoxy(21,12); cprintf("DO U WANT ADD ANOTHER RECORED [Y/N/]"); c=getch(); textbackground(BLACK); textcolor(3); clrscr(); }while(c=='Y' || c=='y'); /***********************/ //FUNTION FOR MODIFY RECORED void mod() { char c='n'; int i=0,t[45],tt[45],ii=0,d1,m1,i1,j1; do { clrscr(); gotoxy(11,22); printf("\tsocial squrity number\n"); ns=fopen("ho.dat","rb"); while(fread(&bi,size,1,ns)==1) { printf("%5d",bi.s_s); t[i]=bi.bn; i++; } fclose(ns); gotoxy(1,1); }

40

printf(" "); gotoxy(32,2); textattr(155); cprintf(" MODIFY SECTION "); gotoxy(1,3); printf(" "); gotoxy(6,5); textbackground(4); textcolor(3+128); cprintf(" ENTER THE SOCIAL SEQURTY NUMBER : "); textcolor(YELLOW); textbackground(BLACK); scanf("%ld",&want); gotoxy(1,5); delline(); b=0; ns=fopen("ho.dat","rb+"); while(fread(&bi,size,1,ns)==1) { if(bi.s_s==want) { for(int j=0;j<i;j++) { if(bi.bn!=t[j]) { tt[ii]=t[j]; ii++; } } fflush(stdin); gotoxy(0,4); printf("\tenter the name of patient gets(temp.name); printf("\n\tenter the father's name of patient "); fflush(stdin); gets(temp.fname); printf("\n\tenter the name of disease fflush(stdin); gets(temp.des); printf("\n\tENTER THE SOCIAL SEQURITY NUMBER scanf("%ld",&temp.s_s); s: gotoxy(9,13); printf("ENTER THE SEX scanf("%s",bi.sex);

: "); :

");

");

: ");

41

if(strcmpi(bi.sex,"male")==0|| strcmpi(bi.sex,"female")==0) goto z; else { gotoxy(16,16); textbackground(4); textcolor(3+128); cprintf("PLEASE ENTER [ MALE/ FEMALE] "); getch(); textbackground(BLACK); textcolor(YELLOW); gotoxy(1,13); clreol(); gotoxy(1,16); clreol(); goto s; } z: printf("\n\tenter the age of patient : "); scanf("%d",&temp.age); gotoxy(1,22); clreol(); gotoxy(1,21); clreol(); gotoxy(30,22); printf("UNUSED BED\n"); for(i1=0;i1<=bed;i1++) { b=0; for(j1=0;j1<=i;j1++) { if(i1==tt[j1]) { b++; break; } } if(b==0) printf("%4d",i1); } up: gotoxy(9,17); printf("enter the BED NUMBER : "); scanf("%d",&temp.bn); if(temp.bn<=bed) { for( j=0;j<ii;j++) { if(temp.bn==tt[j]) {

42

gotoxy(1,19); textbackground(4); textcolor(128+2); cprintf("...........BED NUMBER IS ALREDRY ALLOCATED..........."); textbackground(BLACK); textcolor(YELLOW); printf("\nAGAIN TRY"); getch(); gotoxy(1,19); clreol(); gotoxy(1,20); clreol(); gotoxy(1,17); clreol(); goto up; } } } else { gotoxy(1,19); textbackground(5); textcolor(128+7); cprintf(".........BED NUMBER IS NOT AVALIABLE............"); textbackground(BLACK); textcolor(YELLOW); printf("\n TRY AGAIN"); getch(); gotoxy(1,19); clreol(); gotoxy(1,20); clreol(); gotoxy(1,17); clreol(); goto up; } gotoxy(1,22); clreol(); gotoxy(1,23); clreol(); upp: gotoxy(9,19); printf("ENTER DATE : "); scanf("%d",&d1); if(d1<=31) bi.d=d1; else { gotoxy(21,20); textbackground(3);

43

textcolor(128+2); cprintf("\tDATE GIVE LESS THAN '31'"); getch(); textbackground(BLACK); textcolor(YELLOW); gotoxy(1,20); clreol(); gotoxy(1,19); clreol(); goto upp; } upp1: gotoxy(9,21); printf("ENTER MONTH scanf("%d",&m1); if(m1<=12) bi.d=m1; else { gotoxy(21,22); textbackground(6); textcolor(128+3); cprintf(" MONTH GIVE LESS THAN '12'"); getch(); textbackground(BLACK); textcolor(YELLOW); gotoxy(1,21); clreol(); gotoxy(1,22); clreol(); goto upp1; } clrscr(); gotoxy(1,1);

: ");

printf(" "); gotoxy(32,2); textattr(155); cprintf(" MODIFY SECTION "); gotoxy(1,3); printf(" "); textcolor(YELLOW); textbackground(BLACK); gotoxy(5,4); textbackground(5); textcolor(128+3); cprintf("ACTUAL RECORED");

44

textbackground(BLACK); textcolor(YELLOW); gotoxy(3,6); printf("NAME= "); printf("%s",bi.name); gotoxy(4,7); printf("FATHER'S NAME= "); printf("%s",bi.fname); gotoxy(4,8); printf("DISEASE =%s",bi.des); gotoxy(4,9); printf("BED NO. =%d",bi.bn); gotoxy(4,10); printf("SEX =%s",bi.sex); gotoxy(4,11); printf("SOCIAL =%s",bi.des); gotoxy(50,4); textbackground(11); textcolor(129+4); cprintf("AFTTER MODIFY"); textbackground(BLACK); textcolor(YELLOW); for(int i=3;i<=11;i++) { gotoxy(36,i); printf(""); } gotoxy(40,6); printf("NAME= "); printf("%s",temp.name); gotoxy(40,7); printf("FATHER'S NAME= "); printf("%s",temp.fname); gotoxy(40,8); printf("DISEASE =%s",temp.des); gotoxy(40,9); printf("BED NO. =%d",temp.bn); gotoxy(40,10); printf("SEX =%s",temp.sex); gotoxy(40,11); printf("SOCIAL SECURITY =%ld",temp.s_s); textattr(155); printf("\n "); gotoxy(25,22); cprintf("R U WANT SURE MODIFY Y/N"); check1=getch(); if(check1=='Y' || check1=='y') { fseek(ns,-size,SEEK_CUR);

45

fwrite(&temp,size,1,ns); printf("\n\n\t\t\t"); cprintf(" RECORED MODIFICATION printf("\n\n\t\t\t"); cprintf("PRESS ANY KEY....");

OK

OK");

else { printf("\n\n\t\t\t"); cprintf(" RECORED NOT MODIFY"); printf("\n\n\t\t\t"); cprintf("PRESS ANY KEY...."); } fflush(stdin); fclose(ns); b++; }

if(b==0) { textattr(155); gotoxy(21,12); cprintf("RECORD NOT FOUND THANKS ..............."); gotoxy(21,15); cprintf("PRESS ANY KEY...."); } getch(); clrscr(); gotoxy(15,15); textattr(155); textbackground(BLACK); clrscr(); textattr(155); gotoxy(15,15); cprintf("DO U WANT MODIFY ANOTHER RECORED [Y/N]......"); textbackground(BLACK); textcolor(YELLOW); c=getch(); clrscr(); }while(c=='Y' || c=='y'); } /*******************************/ //FUNTION FOR DESPLAY RECORED void ashow() { char a; void name(); void soci(); clrscr(); gotoxy(8,7);

46

N:"); S:");

printf("DISPLAY ACORDING NAME

-------->n OR

gotoxy(8,9); printf("DISPLAY ACORDING SOCIAL SCURITY NO. --------->s OR gotoxy(8,13); printf(" ENTER U R CHOICE >>>"); box(41,12,45,14,''); gotoxy(43,13); a=getche(); if(a==27) exit(0); switch(a) { case 'N': case 'n': name(); break; case 's': case 'S': soci(); break; default: clrscr(); printf("\n\n\n\n\n\t\t\tWRONG OPTION"); getch(); }

void soci() { int count=1,ss[40],c=0,temp=0,count1=0; ns=fopen("ho.dat","rb"); while(fread(&bi,size,1,ns)==1) { ss[c]=bi.s_s; c++; } printf("\n\n\n"); for(int j=0;j<c;j++) printf("%d\t",ss[j]); for(j=0;j<c;j++) { for(int j1=j+1;j1<c;j1++) { if(ss[j]>ss[j1]) { temp=ss[j1]; ss[j1]=ss[j]; ss[j]=temp; } }

47

} printf("\n\n\n"); for(j=0;j<c;j++) printf("%d\t",ss[j]); for(j=0;j<c;j++) { rewind(ns); while(fread(&bi,size,1,ns)==1) { if(ss[j]==bi.s_s) { clrscr(); gotoxy(1,1); printf(" "); gotoxy(32,2); textattr(155); cprintf(" DISPLAY SECTION "); gotoxy(1,3); printf(" "); textcolor(YELLOW); textbackground(BLACK); printf("RECO NO. : %d",count); printf("\n "); textcolor(4); printf("\n\n\n\n\n\t\t\tNAME : "); printf("%s",bi.name); printf("\n\t\t\tFATHER'S NAME : "); printf("%s",bi.fname); printf("\n\t\t\tDISEASE : "); printf("%s",bi.des); printf("\n\t\t\tSEX : "); printf("%s",bi.sex); printf("\n\t\t\tSOCIAL SECURITY : "); printf("%ld",bi.s_s); printf("\n\t\t\tBED NO. : "); printf("%d",bi.bn); printf("\n\t\t\tMONTH : "); printf("%d",bi.m); printf("\n\t\t\tDATE : "); printf("%d",bi.d); printf("\n\t\t\tAGE : "); printf("%d",bi.age); textbackground(WHITE); textcolor(128+4); printf("\n\n\t\t\t\t"); cprintf(" PRESS ANY KEY");

48

} if(count1==0) printf(" \n\n\n\n\n\t\tNOT EXIT ANY ONE RECORED"); fclose(ns); getch(); } /*******************************/

textbackground(BLACK); textcolor(YELLOW); getch(); count++; count1++; }//if }

void name() { clrscr(); int j,k,c=0,count=1,count1=0; char ss[20][20],temp[20]; ns=fopen("ho.dat","rb"); while(fread(&bi,size,1,ns)==1) { strcpy(ss[c],bi.name); c++; } for(j=0;j<c;j++) { for(int j1=j+1;j1<c;j1++) { k=strcmp(ss[j],ss[j1]); if(k>0) { strcpy(temp,ss[j1]); strcpy(ss[j1],ss[j]); strcpy(ss[j],temp); } } } for(j=0;j<c;j++) { rewind(ns); while(fread(&bi,size,1,ns)==1) { if(strcmp(ss[j],bi.name)==0) { clrscr(); gotoxy(1,1);

49

printf(" "); gotoxy(32,2); textattr(155); cprintf(" DISPLAY SECTION "); gotoxy(1,3); printf(" "); textcolor(YELLOW); textbackground(BLACK); printf("RECO NO. : %d",count); printf("\n "); textcolor(4); printf("\n\n\n\n\n\t\t\tNAME : "); printf("%s",bi.name); printf("\n\t\t\tFATHER'S NAME : "); printf("%s",bi.fname); printf("\n\t\t\tDISEASE : "); printf("%s",bi.des); printf("\n\t\t\tSEX : "); printf("%s",bi.sex); printf("\n\t\t\tSOCIAL SECURITY : "); printf("%ld",bi.s_s); printf("\n\t\t\tBED NO. : "); printf("%d",bi.bn); printf("\n\t\t\tMONTH : "); printf("%d",bi.m); printf("\n\t\t\tDATE : "); printf("%d",bi.d); printf("\n\t\t\tAGE : "); printf("%d",bi.age); textbackground(WHITE); textcolor(128+4); printf("\n\n\t\t\t\t"); cprintf(" PRESS ANY KEY"); textbackground(BLACK); textcolor(YELLOW); getch(); count++; count1 ++; }//if } } if(count1==0) printf("\n\n\n\n\n\n\t\tNOT EXIT ANY ONE RECORED"); getch(); } //FUNTION FOR ONE DESPLAY RECORED

50

void des() { do{ b=0; clrscr(); gotoxy(1,21); printf(" "); ns=fopen("ho.dat","rb"); printf("\t\t\tsocial squrity number"); printf("\n "); while(fread(&bi,size,1,ns)==1) printf("%5d",bi.s_s); printf("\n "); gotoxy(1,2); printf(" "); printf("\t\t\tQUERY FOR DISPLAY :\n "); gotoxy(1,5); printf(" "); printf("\t\t\tENTER SOCIAL SEQURTY NUMBER : "); scanf("%ld",&want); rewind(ns); while(fread(&bi,size,1,ns)==1) { //WHILE if(bi.s_s==want) { //IF printf("\n\t\t\tNAME : "); printf("%s",bi.name); printf("\n\t\t\tFATHER'S NAME : "); printf("%s",bi.fname); printf("\n\t\t\tDISEASE : "); printf("%s",bi.des); printf("\n\t\t\tSEX : "); printf("%s",bi.sex); printf("\n\t\t\tSOCIAL SECURITY : "); printf("%ld",bi.s_s); printf("\n\t\t\tBED NO. : "); printf("%d",bi.bn); b++; break; }//IF } //WHILE if(b==0)

51

{ printf("\n\n\n\t\t\t "); textattr(155); cprintf(" RECORED NOT FOUND "); textcolor(YELLOW); textbackground(BLACK); } fclose(ns); printf("\n\n\n\n\t\t\t "); textattr(155); cprintf(" PRESS ANY KEYS "); textcolor(YELLOW); textbackground(BLACK); getch(); clrscr(); textattr(155); printf("\n\n\n\n\n\n\t\t\t "); cprintf(" R U WANT DESPLAY ANOTHER [Y/N]"); textcolor(YELLOW); textbackground(BLACK); check=getche();

RECORED

}while(check=='y' || check=='Y'); } /*******************************/ //FUNTION FOR DELET RECORED

void del() { clrscr(); int c=0,mn,d1,t=0,c1=0,t1=0; void gross(int*); char c2; do { clrscr(); c1=0; t1=0; ns=fopen("ho.dat","rb+"); gotoxy(1,20); printf(" "); printf("\t\t\tsocial squrity number"); printf("\n "); while(fread(&bi,size,1,ns)==1) printf("%5d",bi.s_s); printf("\n "); gotoxy(1,1);

52

printf(" "); gotoxy(32,2); printf(" DELET SECTION "); gotoxy(1,3); printf(" "); printf("\t\t\tENTER SOCIAL SEQURTY NUMBER : "); printf("\n "); gotoxy(55,4); scanf("%ld",&want); nt=fopen("hos1.dat","wb+"); ntt=fopen("hoss1.dat","ab"); rewind(ns); while(fread(&bi,size,1,ns)==1) { if(bi.s_s!=want) fwrite(&bi,size,1,nt); if(bi.s_s==want) { fwrite(&bi,size,1,ntt); gotoxy(1,6); printf("\t\t\tNAME : "); printf("%-30s",bi.name); printf("\n\t\t\tFATHER'S NAME : "); printf("%-30s",bi.fname); printf("\n\t\t\tDISEASE : "); printf("%s",bi.des); printf("\n\t\t\tSEX : "); printf("%s",bi.sex); printf("\n\t\t\tSOCIAL SECURITY : "); printf("%ld",bi.s_s); printf("\n\t\t\tBED NO. : "); printf("%d",bi.bn); printf("\n\t\t\tDATE : "); printf("%d",bi.d); printf("\n\t\t\tMONTH : "); printf("%d",bi.m); struct date d; getdate(&d); printf("\n\n\t CURRENT LEAVING DATE & MONTH :%-14d%-12d",d.da_day,d.da_mon); d1= d.da_day; mn= d.da_mon; if(bi.m<mn) { while(bi.m<mn) { t=t+date[mn-1]; mn-- ; }

53

} if(c==0) { t=t+d1; t=t-bi.d; c++; } c1++; } } textattr(155); if(c1!=0) { gotoxy(16,17); cprintf("TOTATL DAYS= %d :",t); printf("\n\n\t\t"); cprintf("PRESS ANY KEY"); getch(); textcolor(YELLOW); textbackground(BLACK); clrscr(); gross(&t); } else { gotoxy(16,15); cprintf("RECORD NOT FOUND THANKS printf("\n\n\t\t"); cprintf("PRESS ANY KEY"); getch(); textcolor(YELLOW); textbackground(BLACK); clrscr(); } fclose(nt); fclose(ntt); fclose(ns); remove("ho.dat"); rename("hos1.dat","ho.dat"); ns=fopen("ho.dat","rb"); gotoxy(1,23); clreol(); gotoxy(1,20);

.......");

printf(" "); printf("\t\t\tsocial squrity number"); printf("\n "); while(fread(&bi,size,1,ns)==1) {

54

printf("%5d",bi.s_s); t1++; } if(t1==0) printf(" NOT EXIT ANY ONE SOCIAL SEQURITY OF

PATIENT");

fclose(ns); textcolor(YELLOW); textbackground(BLACK); clrscr(); gotoxy(11,18); textattr(155); cprintf("DO U WANT DELET ANOTHER RECORED ..............."); textcolor(YELLOW); textbackground(BLACK); c2=getche(); clrscr(); }while(c2=='Y' || c2=='y'); } /*-----------------------*/ void gross(int *t) { clrscr(); int rent,charg,temp; hp=fopen("hogs.h","rb"); fread(&h,sizeof(h),1,hp); fclose(hp); printf("\n\n\n\t\tENTER DAILY RENT "); scanf("%d",&rent); rent=(*t)*rent; printf("\n\n\t\tTOTAL RENT -: %d",rent); printf("\n\n\t\tENTER DAILY TRETMENT CHARGE "); scanf("%d",&charg); charg=*t*charg; printf("\n\n\t\tTREATMENT CHARGES -: %d",charg); charg=charg+rent; printf("\n\n\t\tTOTAL CHARGE -: %d",charg); h.gs=h.gs+charg; printf("\n\n\n\t\tTOTAL FUNDS IN HOSPITAL -: %ld",h.gs); hp=fopen("hogs.h","wb"); fwrite(&h,sizeof(h),1,hp); fclose(hp); getch(); } /**********************************/ /**********************************/ void ddes() { int count=0; check1=0;

55

ntt=fopen("hoss1.dat","rb"); while(fread(&bi,size,1,ntt)==1) { count++; check1++; clrscr(); gotoxy(1,1); printf(" "); gotoxy(32,2); textattr(155); cprintf(" DISPLAY DELETED SECTION "); gotoxy(1,3); printf(" "); textcolor(YELLOW); textbackground(BLACK); textcolor(4); printf("\n\n\n\n\n\t\t\tNAME : "); printf("%s",bi.name); printf("\n\t\t\tFATHER'S NAME : "); printf("%s",bi.fname); printf("\n\t\t\tDISEASE : "); printf("%s",bi.des); printf("\n\t\t\tSEX : "); printf("%s",bi.sex); printf("\n\t\t\tSOCIAL SECURITY : "); printf("%ld",bi.s_s); printf("\n\t\t\tBED NO. : "); printf("%d",bi.bn); printf("\n\t\t\tMONTH : "); printf("%d",bi.m); printf("\n\t\t\tDATE : "); printf("%d",bi.d); printf("\n\t\t\tAGE : "); printf("%d",bi.age); textbackground(WHITE); textcolor(128+4); printf("\n\n\t\t\t\t"); cprintf(" PRESS ANY KEY"); textbackground(BLACK); textcolor(YELLOW); getch(); } fclose(ntt); clrscr(); if(check1!=0) { gotoxy(5,15);

56

");

printf("

R U WANT

REMOVE ALL DELETED RECORED

Y/N

check=getche(); if(check=='y' || check=='Y') remove("hoss1.dat"); } if(count==0) printf("\n\n\n\\t\tNOT EXIT ANY ONE getch();

RECORED");

void infor() { int k; getdate(&d); gettime(&t); clrscr(); printf(" "); textbackground(WHITE); textcolor(128+4); printf("\a\a\t\t\t\t"); cprintf("CMC MEDICAL COLLEGE"); textbackground(BLACK); textcolor(3); printf("\nTIME: %2d:%02d:%02d.%02d",t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund); printf("\t\t\t\t\t\tDATE:%d-%d-%d\n", d.da_day,d.da_mon,d.da_year); printf(" "); printf("\n\a\a\t\tNear Railway Crossing, ABOHAR."); printf("\n\n\n\a\a\tFACILITIES\t\t\t\t\tDr.Divya "); printf("\n\a\a\tEquipped with X-Ray\t\t\t\tDr.Moman"); printf("\n\a\a\tLaboratory\t\t\t\t\tDr.Ankit"); printf("\n\a\a\tA\C Operation Theatre"); printf("\n\a\a\tEndoscope"); printf("\n\a\a\tHead & Neck Surgery"); printf("\n\a\a\tAudio Meter"); printf("\n\a\a\tItalian Nebuliser & Nerve Stimulator"); printf("\n\a\a\tTIMING:"); printf("\n\a\a\t9-30 A.M to 2-30 P.M"); printf("\n\a\a\t4-30 P.M to 9-30 P.M"); printf("\n "); box(55,7,75,13,178); for(;!kbhit();) gettime(&t); getch(); }

57

/* for convert gamdoor to getch(); */ /*void ss() { char a[20],b[20]={"gamdoor"}; textcolor(WHITE); clrscr(); aa: cprintf("\n\n\t\tenter the name =: "); gets(a); if(strcmpi(a,"gamdoor")==0) { cprintf("\n\n\t\t\t\a\a\a\" CMC(); \""); for(int i=1;i<=10;i++) { printf("\n"); cprintf("\n\t\aenter\a enter\a enter\a enter \a manla bhi !!!!"); delay(100); } } else { cprintf("\n\n\t\tplease enter gamdoor"); goto aa; } getch(); }

!!!!

58

59

60

61

62

Chapter 6 FUTURE DEVELOPMENT

6. FUTURE DEVELOPMENT OF PROJECT

AS PER THE REQUIREMENTS OUR WHOLE PROGRAM IS DESIGNED. WE CAN ADD AN ADDITIONAL CONSTRAINT TO OUR PROJECT AS AND WHEN REQUIRED. IT CAN EASILY BE IMPROVISED BY ADDITION OF NEW MODULES.

7. Hardware Requirement
PROCESSOR = GENUINE INTEL PENTIUM PROCESSOR RAM = 256 MB HARD DISK=4.3 GB 15 SVGA COLOUR MONITOR KEY BOARD = 104 KEYS PRINTER = HP LASER JET

8. Software Requirement
Operating System: Windows XP Environment: C Tools: Microsoft Office

63

Chapter 7 BIBLOGRAPHY

This section gives you the name of the books required for the development of the project. NAME OF THE BOOK AUTHOR NAME

1. LET US C

Y. KANETKAR

2. PROGRAMMING IN C 3. FUNDAMENTALS OF C

BALAGURUSAMY DIETEL & DIETEL

64

You might also like