This document contains the source code and output for a hospital management system project in C++. It includes class definitions for patients, billing, and other functions for tasks like adding patients, creating bills, searching for patients, and managing rooms. The output shows sample functions and structure definitions used in the project code.
The document describes a proposed hospital management system (HMS) that aims to automate and standardize a hospital's management processes. Currently, hospitals rely on manual paper-based systems that are inefficient and prone to errors. The HMS would control key information like patient data, schedules, and invoices electronically. It would make hospital management more efficient and reduce errors by standardizing data and ensuring integrity across information systems. The system design involves modules for registration, pharmacy, doctors, reception, laboratory, and discharge summaries. The technical requirements specify technologies like ASP.NET, C#, and SQL Server for development. UML diagrams including use cases, sequences, and classes are used for design. Data flow diagrams and entity-relationship diagrams model the
This document provides an overview and requirements for developing a Hospital Management System. It describes collecting both primary and secondary data. Key objectives of the system are to computerize patient and hospital details, schedule appointments and services, update medical store inventory, handle test reports, and keep patient information up-to-date. The system will have modules for login, patients, doctors, billing, and generating reports. It will use a relational database with tables for patient, doctor, room, and bill details.
Hospital Management System Project Report Sarfaraj Alam
The document provides an overview of a hospital management system project implemented using PHP. It discusses the various modules of the project including admin, user/patient, doctor, nurse, pharmacist, laboratories, and accountant modules. It also covers the requirements specification including hardware requirements of Intel dual-core processor, 1GB RAM, 80GB hard disk and software requirements of Windows 7/8/10, HTML, CSS, JavaScript, and MySQL database. The feasibility study and existing manual system are analyzed and the benefits of the proposed web-based system are outlined.
Just tried to make a project proposal of my "Hospital Management Project". It may have errors.I have taken help from some source.It will be pleasure to me this proposal it helps someone.
The document describes a hospital management system project created using Visual Basic 6.0. It includes 3 modules - admin, user (patient) and doctor modules. The admin can manage departments, users, doctors and view reports. Patients can view appointments, medications and history. Doctors can manage patient accounts. It discusses hardware requirements of Intel dual core processor and 512MB RAM and software requirements of Windows OS and MS Access database. Entity relationship and data flow diagrams are presented to illustrate the database and system design. The system aims to computerize hospital management for secure storage and fast retrieval of patient information.
The document describes a proposed hospital management system that aims to digitize and improve upon an existing manual paper-based system. The proposed system would manage key information like patients, doctors, appointments, prescriptions, lab reports, and more in an efficient online manner. It consists of 6 main modules - administration, doctors, patients, reception, laboratories, and appointments. The system would use technologies like HTML, CSS, PHP, JavaScript, Bootstrap and store data in a MySQL database. It is intended to save time and resources over the current manual process.
The document provides an overview of a hospital management system project. It describes the existing manual system and its limitations. The proposed computerized system aims to overcome these limitations by providing features such as unique patient IDs, search capabilities, and automated billing. The system will use Visual Basic 6.0 for the front end, MS Access as the back end database, and be installed on PCs meeting the specified hardware requirements. It will allow secure, fast, and efficient management of hospital operations and data.
This project report describes a Hospital Management System (HMS) that was developed to automate operations at hospitals. The HMS allows for maintaining patient records, storing diagnosis and test information, providing test facilities for doctors, and generating bills. It has two user levels - administrator and user. The report provides an introduction to the system, describes overall goals and requirements, presents data flow diagrams and database tables, and includes screenshots of the system interface. It concludes that the HMS aims to efficiently digitize hospital workflows and storage of patient information.
The document describes a proposed hospital management system (HMS) that aims to automate and standardize a hospital's management processes. Currently, hospitals rely on manual paper-based systems that are inefficient and prone to errors. The HMS would control key information like patient data, schedules, and invoices electronically. It would make hospital management more efficient and reduce errors by standardizing data and ensuring integrity across information systems. The system design involves modules for registration, pharmacy, doctors, reception, laboratory, and discharge summaries. The technical requirements specify technologies like ASP.NET, C#, and SQL Server for development. UML diagrams including use cases, sequences, and classes are used for design. Data flow diagrams and entity-relationship diagrams model the
This document provides an overview and requirements for developing a Hospital Management System. It describes collecting both primary and secondary data. Key objectives of the system are to computerize patient and hospital details, schedule appointments and services, update medical store inventory, handle test reports, and keep patient information up-to-date. The system will have modules for login, patients, doctors, billing, and generating reports. It will use a relational database with tables for patient, doctor, room, and bill details.
Hospital Management System Project Report Sarfaraj Alam
The document provides an overview of a hospital management system project implemented using PHP. It discusses the various modules of the project including admin, user/patient, doctor, nurse, pharmacist, laboratories, and accountant modules. It also covers the requirements specification including hardware requirements of Intel dual-core processor, 1GB RAM, 80GB hard disk and software requirements of Windows 7/8/10, HTML, CSS, JavaScript, and MySQL database. The feasibility study and existing manual system are analyzed and the benefits of the proposed web-based system are outlined.
Just tried to make a project proposal of my "Hospital Management Project". It may have errors.I have taken help from some source.It will be pleasure to me this proposal it helps someone.
The document describes a hospital management system project created using Visual Basic 6.0. It includes 3 modules - admin, user (patient) and doctor modules. The admin can manage departments, users, doctors and view reports. Patients can view appointments, medications and history. Doctors can manage patient accounts. It discusses hardware requirements of Intel dual core processor and 512MB RAM and software requirements of Windows OS and MS Access database. Entity relationship and data flow diagrams are presented to illustrate the database and system design. The system aims to computerize hospital management for secure storage and fast retrieval of patient information.
The document describes a proposed hospital management system that aims to digitize and improve upon an existing manual paper-based system. The proposed system would manage key information like patients, doctors, appointments, prescriptions, lab reports, and more in an efficient online manner. It consists of 6 main modules - administration, doctors, patients, reception, laboratories, and appointments. The system would use technologies like HTML, CSS, PHP, JavaScript, Bootstrap and store data in a MySQL database. It is intended to save time and resources over the current manual process.
The document provides an overview of a hospital management system project. It describes the existing manual system and its limitations. The proposed computerized system aims to overcome these limitations by providing features such as unique patient IDs, search capabilities, and automated billing. The system will use Visual Basic 6.0 for the front end, MS Access as the back end database, and be installed on PCs meeting the specified hardware requirements. It will allow secure, fast, and efficient management of hospital operations and data.
This project report describes a Hospital Management System (HMS) that was developed to automate operations at hospitals. The HMS allows for maintaining patient records, storing diagnosis and test information, providing test facilities for doctors, and generating bills. It has two user levels - administrator and user. The report provides an introduction to the system, describes overall goals and requirements, presents data flow diagrams and database tables, and includes screenshots of the system interface. It concludes that the HMS aims to efficiently digitize hospital workflows and storage of patient information.
Cosmosoft Hospital management system is among the top web based HMS solution which is including more than 12 basic modules and web reporting for top management along with all the financial modules of Hospital management system, For more details visit our website www.cosmosoftsolution.com
You can view the demo of our Hospital management system, for demo plz send us your detail at marketing@cosmosoftsolution.com
This document is a major project report submitted by Ranjit Singh for the development of a Hospital Management System using Java programming and a database. It includes an introduction describing the purpose, scope and relevant tools used. An overall description provides goals of the proposed system to manage patient, doctor and room records, billing, and user login details. A feasibility study evaluates the technical, economic, operational and schedule feasibility of the system. The report also includes sections on the entity relationship diagram, database and GUI design, implementation, testing, and conclusion.
The document describes a hospital management system project created by students. The system allows registration of patients, storing patient and staff details, and computerized billing. It assigns a unique ID to each patient and includes search functionality. Only administrators and receptionists can access and add data to the database. The project aims to automate hospital management and administrate doctor appointments. It seeks to develop software that is user-friendly, simple, fast and cost-effective for collecting patient information and diagnosis details.
This document provides a summary of a project on a Hospital Management System. It includes sections on the definition of a hospital and how a hospital management system works. It describes the need for an HMS including minimizing documentation and improving patient care. The document outlines the software requirements specification for the HMS including functional requirements like administration, patient, and billing modules. It provides details on the system design with data flow diagrams, entity relationship diagrams, class diagrams and use case diagrams. It concludes with discussing future enhancements and limitations.
The purpose of the project entitled as “Hospital Management System” is to computerize the
Front Office Management of Hospital to develop software which is user friendly simple, fast,
and cost – effective. It deals with the collection of patient’s information like add patient, update
patient, delete patient, search patient, view patient diagnosis, etc. Traditionally, it was done
manually. The main function of the system is register and store patient details and doctor details
and retrieve these details as and when required, and also to manipulate these details
meaningfully. The Hospital Management System can be entered using a username and
password. It is accessible by an Admin, Doctor & Receptionist. Only they can add data into
the database. The data can be retrieved easily. The data are well protected for personal use and
makes the data processing very fast.
the slide is based on the hospital management system projects. It tells some basic requirements for the project and will give some idea regarding your related projects and will help you in generating new ideas.
This document provides a project report for an automated fees collection system created by Yash Duggall. The report includes sections on the introduction, objectives, advantages, hardware/software requirements, analysis, input/output design, system characteristics, and recognition of need for the system. The system was created to automate an institute's manual fees collection process in order to make it more efficient by reducing paperwork, errors, and time spent on tasks like updating records and generating reports.
The document proposes a hospital management system to automate the manual paper-based system currently used. It aims to standardize data, consolidate records, ensure data integrity and reduce inconsistencies. The system would manage patient information, staff details, schedules and other facilities digitally. It faces challenges in designing and implementing the new system, and maintaining it going forward to address errors, adapt to changes and allow for enhancements. The system requirements include user interfaces, hardware and software needs, and communication protocols to allow the system to work across platforms and browsers. It is concluded that the automated system would improve efficiency, provide a friendly interface, enable easy access and updating of information, and offer security and reliability benefits over the existing manual process.
PROJECT-HOSPITAL MANAGEMENT SYSTEM CHAP. 1 TO 4NICHOLAS RATEMO
This document provides background information on the proposed Nyamache Management System project. It summarizes the current manual patient record keeping system at Nyamache Hospital, which involves paper-based registration, billing, and record retrieval. This is inefficient and error-prone. The proposed electronic system aims to improve accuracy, efficiency and information retrieval. It will involve modules for registration, billing, stock management and administration. The document outlines the project objectives, budget, and methodology using a system development lifecycle approach involving planning, analysis, design, testing and documentation.
Design and implementation of a hospital management systemOvercomer Michael
This document provides an introduction and background to a hospital management system project. It discusses the limitations of the current manual system, including that it is time-consuming and prone to errors. The proposed computerized system aims to automate key hospital processes like admissions, discharges, doctor assignments, and billing online. It also discusses the benefits of the proposed system, like increased efficiency, control, security and easy retrieval of patient information. Some limitations of the proposed system are also outlined, such as potential for incorrect information entry and lack of immediate information retrieval.
Hospital Management System (HMS) is a complete hospital suite serving all functional areas of the hospital.
Each of the department's work processes are in together with the system's business process.
It is user friendly software.
It covers complete cycle from Appointment, Patient Registration, Patient History, Patient Case, and Doctor.
This document presents a major project on a hospital management system. The system aims to automate key hospital processes like maintaining patient, doctor, and room records, and generating bills. It allows user login, patient and doctor registration, admitting and discharging patients, and viewing reports. The system is designed to improve data storage, access, and accuracy compared to a conventional manual system. It uses MySQL database and has a graphical user interface for key functions like registration, billing, and viewing records. The goal is to create an integrated computerized system for efficient hospital administration.
1) The document outlines an outpatient management system project for Yogiji Creations Pvt. Ltd., including an introduction to the company, objectives of the proposed system, existing system limitations, and technical details.
2) It describes the various diagrams created for the system - data flow diagrams, use case diagrams, sequence diagrams, state chart diagrams, class diagrams, and entity relationship diagrams.
3) Screenshots of the interfaces are provided and test cases are described to test functions like login, forgot password, and new user registration.
The document provides a software requirement specification for a hospital management system. It outlines the purpose, scope, feasibility study conducted, definitions, acronyms, an overview, and specific requirements for the system. The specific requirements section describes the external interface requirements including the user interface, hardware interface, software interface and communication interface. It also describes the functional requirements covering administration, patient, lab, and billing modules. The performance, design constraints, and assumptions/dependencies are defined.
My project Hospital Management System include registration of patients,storing their detail into the system and also computerized .My software has the facility to give a unique id for every patient and store the detail of every patient and doctor automatically. User can search availability of a doctor and the details of a patient using the id.
This is Just an overview how to present those slides which Describes Software Working....
its a General way of Representation....
Don't worry About Forms Shown inside...
The document outlines a hospital management system project that includes maintaining patient details, prescriptions, tests, and billing. It describes the scope of the project, stakeholders like patients, doctors, and staff. It discusses the feasibility of the system in terms of technical capabilities, scalability, and flexibility. Diagrams show the database, pharmaceutical activities, and remote doctor consultations. The presentation concludes with screenshots of the billing and payment system and thanks the audience.
The document provides an overview of a project report on a Hospital Management System. It includes an introduction describing the purpose and scope of the system. It then discusses the overall description, including goals, background on existing hospital processes, project requirements, user characteristics, and constraints. Finally, it analyzes the feasibility of the system from technical, economic, operational, and schedule perspectives. The system aims to automate hospital workflows and improve accuracy, reliability, and immediate access to information.
Hospital Management Record System ProposalBishal Bista
This document is a project proposal for developing a Hospital Record Management System. It includes an abstract describing the need to automate a hospital's current manual paper-based system. It outlines the proposed system which will manage patient information, room availability, staff schedules, and patient invoices. It also includes sections on the existing system limitations, proposed system objectives, system requirements and specifications, a literature review on electronic records management, design and implementation considerations, and future enhancements. The overall goal is to develop a computerized system to replace the hospital's inefficient manual processes and improve operations.
This document is a project report on a Gas Booking System. It includes an acknowledgement section thanking those who provided guidance. It also includes a certificate section certifying the completion of the project. The content section lists the different parts of the project like introduction, source code, output, requirements, advantages/disadvantages and conclusion. The objective of the software is to computerize the manual system of a Gas Agency to make transactions faster and easier. It replaces paper work and provides easy management and navigation.
Cosmosoft Hospital management system is among the top web based HMS solution which is including more than 12 basic modules and web reporting for top management along with all the financial modules of Hospital management system, For more details visit our website www.cosmosoftsolution.com
You can view the demo of our Hospital management system, for demo plz send us your detail at marketing@cosmosoftsolution.com
This document is a major project report submitted by Ranjit Singh for the development of a Hospital Management System using Java programming and a database. It includes an introduction describing the purpose, scope and relevant tools used. An overall description provides goals of the proposed system to manage patient, doctor and room records, billing, and user login details. A feasibility study evaluates the technical, economic, operational and schedule feasibility of the system. The report also includes sections on the entity relationship diagram, database and GUI design, implementation, testing, and conclusion.
The document describes a hospital management system project created by students. The system allows registration of patients, storing patient and staff details, and computerized billing. It assigns a unique ID to each patient and includes search functionality. Only administrators and receptionists can access and add data to the database. The project aims to automate hospital management and administrate doctor appointments. It seeks to develop software that is user-friendly, simple, fast and cost-effective for collecting patient information and diagnosis details.
This document provides a summary of a project on a Hospital Management System. It includes sections on the definition of a hospital and how a hospital management system works. It describes the need for an HMS including minimizing documentation and improving patient care. The document outlines the software requirements specification for the HMS including functional requirements like administration, patient, and billing modules. It provides details on the system design with data flow diagrams, entity relationship diagrams, class diagrams and use case diagrams. It concludes with discussing future enhancements and limitations.
The purpose of the project entitled as “Hospital Management System” is to computerize the
Front Office Management of Hospital to develop software which is user friendly simple, fast,
and cost – effective. It deals with the collection of patient’s information like add patient, update
patient, delete patient, search patient, view patient diagnosis, etc. Traditionally, it was done
manually. The main function of the system is register and store patient details and doctor details
and retrieve these details as and when required, and also to manipulate these details
meaningfully. The Hospital Management System can be entered using a username and
password. It is accessible by an Admin, Doctor & Receptionist. Only they can add data into
the database. The data can be retrieved easily. The data are well protected for personal use and
makes the data processing very fast.
the slide is based on the hospital management system projects. It tells some basic requirements for the project and will give some idea regarding your related projects and will help you in generating new ideas.
This document provides a project report for an automated fees collection system created by Yash Duggall. The report includes sections on the introduction, objectives, advantages, hardware/software requirements, analysis, input/output design, system characteristics, and recognition of need for the system. The system was created to automate an institute's manual fees collection process in order to make it more efficient by reducing paperwork, errors, and time spent on tasks like updating records and generating reports.
The document proposes a hospital management system to automate the manual paper-based system currently used. It aims to standardize data, consolidate records, ensure data integrity and reduce inconsistencies. The system would manage patient information, staff details, schedules and other facilities digitally. It faces challenges in designing and implementing the new system, and maintaining it going forward to address errors, adapt to changes and allow for enhancements. The system requirements include user interfaces, hardware and software needs, and communication protocols to allow the system to work across platforms and browsers. It is concluded that the automated system would improve efficiency, provide a friendly interface, enable easy access and updating of information, and offer security and reliability benefits over the existing manual process.
PROJECT-HOSPITAL MANAGEMENT SYSTEM CHAP. 1 TO 4NICHOLAS RATEMO
This document provides background information on the proposed Nyamache Management System project. It summarizes the current manual patient record keeping system at Nyamache Hospital, which involves paper-based registration, billing, and record retrieval. This is inefficient and error-prone. The proposed electronic system aims to improve accuracy, efficiency and information retrieval. It will involve modules for registration, billing, stock management and administration. The document outlines the project objectives, budget, and methodology using a system development lifecycle approach involving planning, analysis, design, testing and documentation.
Design and implementation of a hospital management systemOvercomer Michael
This document provides an introduction and background to a hospital management system project. It discusses the limitations of the current manual system, including that it is time-consuming and prone to errors. The proposed computerized system aims to automate key hospital processes like admissions, discharges, doctor assignments, and billing online. It also discusses the benefits of the proposed system, like increased efficiency, control, security and easy retrieval of patient information. Some limitations of the proposed system are also outlined, such as potential for incorrect information entry and lack of immediate information retrieval.
Hospital Management System (HMS) is a complete hospital suite serving all functional areas of the hospital.
Each of the department's work processes are in together with the system's business process.
It is user friendly software.
It covers complete cycle from Appointment, Patient Registration, Patient History, Patient Case, and Doctor.
This document presents a major project on a hospital management system. The system aims to automate key hospital processes like maintaining patient, doctor, and room records, and generating bills. It allows user login, patient and doctor registration, admitting and discharging patients, and viewing reports. The system is designed to improve data storage, access, and accuracy compared to a conventional manual system. It uses MySQL database and has a graphical user interface for key functions like registration, billing, and viewing records. The goal is to create an integrated computerized system for efficient hospital administration.
1) The document outlines an outpatient management system project for Yogiji Creations Pvt. Ltd., including an introduction to the company, objectives of the proposed system, existing system limitations, and technical details.
2) It describes the various diagrams created for the system - data flow diagrams, use case diagrams, sequence diagrams, state chart diagrams, class diagrams, and entity relationship diagrams.
3) Screenshots of the interfaces are provided and test cases are described to test functions like login, forgot password, and new user registration.
The document provides a software requirement specification for a hospital management system. It outlines the purpose, scope, feasibility study conducted, definitions, acronyms, an overview, and specific requirements for the system. The specific requirements section describes the external interface requirements including the user interface, hardware interface, software interface and communication interface. It also describes the functional requirements covering administration, patient, lab, and billing modules. The performance, design constraints, and assumptions/dependencies are defined.
My project Hospital Management System include registration of patients,storing their detail into the system and also computerized .My software has the facility to give a unique id for every patient and store the detail of every patient and doctor automatically. User can search availability of a doctor and the details of a patient using the id.
This is Just an overview how to present those slides which Describes Software Working....
its a General way of Representation....
Don't worry About Forms Shown inside...
The document outlines a hospital management system project that includes maintaining patient details, prescriptions, tests, and billing. It describes the scope of the project, stakeholders like patients, doctors, and staff. It discusses the feasibility of the system in terms of technical capabilities, scalability, and flexibility. Diagrams show the database, pharmaceutical activities, and remote doctor consultations. The presentation concludes with screenshots of the billing and payment system and thanks the audience.
The document provides an overview of a project report on a Hospital Management System. It includes an introduction describing the purpose and scope of the system. It then discusses the overall description, including goals, background on existing hospital processes, project requirements, user characteristics, and constraints. Finally, it analyzes the feasibility of the system from technical, economic, operational, and schedule perspectives. The system aims to automate hospital workflows and improve accuracy, reliability, and immediate access to information.
Hospital Management Record System ProposalBishal Bista
This document is a project proposal for developing a Hospital Record Management System. It includes an abstract describing the need to automate a hospital's current manual paper-based system. It outlines the proposed system which will manage patient information, room availability, staff schedules, and patient invoices. It also includes sections on the existing system limitations, proposed system objectives, system requirements and specifications, a literature review on electronic records management, design and implementation considerations, and future enhancements. The overall goal is to develop a computerized system to replace the hospital's inefficient manual processes and improve operations.
This document is a project report on a Gas Booking System. It includes an acknowledgement section thanking those who provided guidance. It also includes a certificate section certifying the completion of the project. The content section lists the different parts of the project like introduction, source code, output, requirements, advantages/disadvantages and conclusion. The objective of the software is to computerize the manual system of a Gas Agency to make transactions faster and easier. It replaces paper work and provides easy management and navigation.
This project is useful for BCA, MSCIT and class XII students.It is useful for generating report cards of student on the basis of marks enter by the user.
This project report describes the development of a billing management system. It includes sections on system analysis, requirements gathering, features of the billing system, module descriptions, software and hardware specifications, project coding, and outputs. The system was created to automate manual billing processes and generate reports. It allows users to view transactions, totals, and make online payments. The project focused on generating receipts, displaying calculations, and including different access levels for security.
This document contains a summary of a project report on a canteen management system. It includes 15 sections that describe various aspects of the project such as introduction, databases, source code, outputs, requirements, advantages/disadvantages, and conclusion. The source code section lists 5 Python files that form the core of the system: canteen_menu.py, customers.py, product.py, invoice_report.py, and mainpage.py. The outputs and installation sections provide brief descriptions of the system demonstration and database/language setup.
This document describes a student report card management project created by Prakhar Seth. It includes an introduction, data dictionary, source code, output, and limitations. The project allows users to view class and individual student results, results by optional subject, and create, delete, or modify student records. The project uses data file handling and classes. It has functions for calculations, getting and displaying information, searching by roll number, and performing CRUD operations. Modification is only reflected in the main student file, not optional subject files. The project could be improved with graphics, additional subjects, and fully reflecting changes in all files.
This project report describes a telephone billing system that allows users to add, modify, delete, display, and list customer records stored in a file. The system calculates telephone bills based on the number of calls, customer type (residential or office), and applies taxes and late fees. It uses classes and functions to manage input/output with data files and provide a menu-driven interface for common operations like viewing bills, modifying customer data, and generating reports of all customers.
This document contains source code for a computer shop management system project. It includes functions for adding, modifying, deleting, and searching computer product records in a database. It also contains functions for generating sales invoices and reports. The main menu allows selecting between product management, sales/purchases, and reports generation. Overall, the source code provides a way to manage the entire operations of a computer shop using a database to store product and sales information.
This document describes a project for automating a book store's inventory system. It begins with an acknowledgment section thanking those who provided guidance. It then includes an introduction outlining the problems with a manual system and benefits of an automated one. The document outlines the proposed automated system's requirements, design, source code, testing, and possibilities for future enhancements. The system is intended to allow easy searching and purchase of books in a store's inventory database.
Hyper market management system project +2 computer scienceVaishak AP
This document describes a Hyper Market Management System project developed in C++. It includes sections on the introduction, working environment, system analysis, system design, screens and outputs, source code, and conclusion. The system analysis section describes the existing manual system and proposed automated system. The design uses classes to represent products with data members like product number, quantity, name, price, and discount. Functions are used to create, read, update, and delete product details from a data file. The source code section includes the C++ code for the main functions like adding products, viewing products, generating customer bills, and more.
The document describes an online doctor appointment system. The system allows patients to view available appointment times, book appointments, and manage their healthcare schedules online. It also enables doctors to manage their calendars and patient appointments electronically. The system aims to streamline the appointment booking process, improve communication between patients and doctors, and enhance the overall delivery of healthcare services.
The document describes a hospital management system project submitted by two students, Mahmud Islam and Anowar Jahid, to fulfill their degree requirements. The project aims to computerize the management of a hospital to develop a user-friendly, fast, and cost-effective software system. It involves registering and storing patient and doctor details and allowing them to be retrieved and manipulated meaningfully. The system inputs include patient details and diagnoses, while outputs display this stored information.
This document provides an overview of a Clinic Management System project developed using Python Django. The system was created to digitize and streamline operations for general clinics. It covers modules for staff maintenance, patient profiles, appointments, inventory, and generates reports. The system uses a three-tier architecture and stores data in a Django MySQL database. It aims to reduce paperwork, improve efficiency of processes, and enhance the user experience for clinic staff and patients.
This document describes a C++ program for managing patient data at City Hospital Mungaoli. The program allows users to add, remove, and view patient records across three departments - Heart, Lung, and Plastic Surgery. It stores patient first name, last name, and Aadhar number. The main menu lets the user select a department to access department-specific functions like adding normal/critical patients, retrieving the next patient, removing deceased patients, and viewing the patient list.
Cosmetics Shop Management System is a complete solution for managing a Shop, in other words, an enhanced tool that assists in organizing the day-to-day activities of a Shop. There is the need of an application for efficient management and handling customer orders. This Cosmetics Shop Management System keeps every record Shop and reducing paperwork
This document provides acknowledgements and thanks for those who helped with a hospital management database project. It thanks the teacher, friends, and seniors for their guidance, encouragement, information and experience during the project preparation. It includes the C++ code for the hospital management database program, which implements a queue to manage patients in different hospital departments like heart, lung, and plastic surgery. Users can add, remove, view patients and switch between departments using the program.
This document summarizes a hospital management system project. It begins with acknowledging those who provided support and guidance. It then provides an introduction to the project, explaining that it will automate operations at LIFE LINE hospital by tracking staff, patients, wards, billing and more. The project objectives are to computerize patient and hospital details, automate processes, manage records and staff/doctor availability. Key modules include admission, billing, consultation, and ambulance services. Sample code is provided for the login form and main menu.
This document provides sample code snippets from a hospital management system project written in Visual Basic .NET. It includes code for a login form, main menu form, inpatient admission form, outpatient admission form, and inpatient billing form. The code handles form loading, button clicks to navigate between forms, and database insertion/selection queries.
This document summarizes a hospital management system project. It begins with acknowledgements and thanks to various parties. It then provides an introduction and synopsis of the project, which aims to automate the daily operations of Lifeline Hospital by tracking staff, patient, ward, medical, invoice and appointment details. The project deals with processing each hospital department and aims to reduce manual processing. It includes modules for admission, staff details, billing, consultation, ward details and ambulance services. Sample code is provided for the login form and main menu.
Development of an interactive car sale system which lets a user to find a car and its details is the main objective of this project. The administrators can access, enter, modify and delete the details of every car. Administrators are responsible of maintaining the details of vehicles like the Manufacturer information,
This document contains the source code for a book shop management system project. It includes functions for adding, modifying, deleting book records from the database, and searching books by various criteria. It also includes functions for generating reports on book sales and purchases and printing invoices. The source code uses Python and connects to a MySQL database to manage the book data.
1) The document discusses various Python flow control statements including if, if-else, nested if-else, and elif statements with examples of using these to check conditions and execute code blocks accordingly.
2) Examples include programs to check number comparisons, even/odd numbers, positive/negative numbers, and using nested if-else for multi-level checks like checking triangle validity.
3) The last few sections discuss using if-else statements to classify triangles as equilateral, isosceles, or scalene and to check if a number is positive, negative, or zero.
The document discusses Python's if-else conditional statements. It provides examples of using if-else to check 1) if a user's age is greater than or equal to 18, 2) if a number is positive or negative, 3) if a number is even or odd, 4) if a number is divisible by 3 or 7, and 5) if a year is a leap year. The last example shows how to find the maximum between two numbers using if-else. The syntax and logic of if-else statements are explained through these examples.
This document discusses different types of flow control in Python programs. It explains that a program's control flow defines the order of execution and can be altered using control flow statements. There are three main types of control flow: sequential, conditional/selection, and iterative/looping.
Sequential flow executes code lines in order. Conditional/selection statements like if/else allow decisions based on conditions. Iterative/looping statements like for and while loops repeat code for a set number of iterations or as long as a condition is true. Specific conditional statements, loops, and examples are described in more detail.
This document discusses different types of operators in Python including arithmetic, comparison, assignment, logical, membership, and identity operators. It provides examples of using arithmetic operators like addition, subtraction, multiplication, division, floor division, exponentiation, and modulus on variables. It also covers operator precedence and use of operators with strings.
The document discusses various operators in Python including assignment, comparison, logical, identity, and membership operators. It provides examples of how each operator works and the output. Specifically, it explains that assignment operators are used to assign values to variables using shortcuts like +=, -=, etc. Comparison operators compare values and return True or False. Logical operators combine conditional statements using and, or, and not. Identity operators compare the memory location of objects using is and is not. Membership operators test if a value is present in a sequence using in and not in.
The print() function in Python allows users to customize output. The sep and end parameters can be used to control the separator between values and the ending text. Sep allows specifying the character or string inserted between values, like a comma, while end controls the string appended after the last value, like a new line. Examples demonstrate using sep and end to print values on separate lines, with different separators like commas and tabs, or append text to the end of a print statement.
This document discusses data types and variables in Python. It explains that a variable is a name that refers to a memory location used to store values. The main data types in Python are numbers, strings, lists, tuples, and dictionaries. It provides examples of declaring and initializing different types of variables, including integers, floats, characters, and strings. Methods for assigning values, displaying values, and accepting user input are also demonstrated. The document also discusses type conversion using functions like int(), float(), and eval() when accepting user input.
The document discusses user-defined functions in Python. It provides examples of different types of functions: default functions without parameters, parameterized functions that accept arguments, and functions that return values. It demonstrates how to define functions using the def keyword and call functions. The examples show functions to print messages, calculate mathematical operations based on user input, check if a number is even or odd, and display sequences of numbers in different patterns using loops. Finally, it provides an example of a program that uses multiple functions and user input to perform mathematical operations.
This document discusses random functions in Python. It explains how to import the random module and describes several functions:
- random() generates random float numbers between 0 and 1
- randrange() returns random integers within a given range
- randint() returns random integers within a range similar to randrange()
Examples are provided to demonstrate how to use these functions to generate random numbers between certain values or in lists.
Functions allow programmers to organize code into reusable blocks to perform related actions. There are three types of functions: built-in functions, modules, and user-defined functions. Built-in functions like int(), float(), str(), and abs() are predefined to perform common tasks. Modules like the math module provide additional mathematical functions like ceil(), floor(), pow(), sqrt(), and trigonometric functions. User-defined functions are created by programmers to customize functionality.
NATURAL ENVIRONMENT,CATEGORIES OF RESOURCES,NATURAL RESOURCES,RENEWABLE AND NON-RENEWABLE,EXHAUSTIBLE , NON-EXHAUSTIBLE RESOURCES,HOW ENVIRONMENT IS CRUCIAL FOR US
WHAT IS DICTIONARY IN PYTHON?
HOW TO CREATE A DICTIONARY
INITIALIZE THE DICTIONARY
ACCESSING KEYS AND VALUES FROM A DICTIONARY
LOOPS TO DISPLAY KEYS AND VALUES IN A DICTIONARY
METHODS IN A DICTIONARY
TO WATCH VIDEO OR PDF:
https://computerassignmentsforu.blogspot.com/p/dictinpyxii.html
introduction to boolean logic,truth table and types of forms in truth table , evaluate the expression using truth table
to download pdf:
https://computerassignmentsforu.blogspot.com/p/booleanclassxi.html
To watch video:
https://youtu.be/OrszQmx0BWQ
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Tatiana Kojar
Skybuffer AI, built on the robust SAP Business Technology Platform (SAP BTP), is the latest and most advanced version of our AI development, reaffirming our commitment to delivering top-tier AI solutions. Skybuffer AI harnesses all the innovative capabilities of the SAP BTP in the AI domain, from Conversational AI to cutting-edge Generative AI and Retrieval-Augmented Generation (RAG). It also helps SAP customers safeguard their investments into SAP Conversational AI and ensure a seamless, one-click transition to SAP Business AI.
With Skybuffer AI, various AI models can be integrated into a single communication channel such as Microsoft Teams. This integration empowers business users with insights drawn from SAP backend systems, enterprise documents, and the expansive knowledge of Generative AI. And the best part of it is that it is all managed through our intuitive no-code Action Server interface, requiring no extensive coding knowledge and making the advanced AI accessible to more users.
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slackshyamraj55
Discover the seamless integration of RPA (Robotic Process Automation), COMPOSER, and APM with AWS IDP enhanced with Slack notifications. Explore how these technologies converge to streamline workflows, optimize performance, and ensure secure access, all while leveraging the power of AWS IDP and real-time communication via Slack notifications.
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxSitimaJohn
Ocean Lotus cyber threat actors represent a sophisticated, persistent, and politically motivated group that poses a significant risk to organizations and individuals in the Southeast Asian region. Their continuous evolution and adaptability underscore the need for robust cybersecurity measures and international cooperation to identify and mitigate the threats posed by such advanced persistent threat groups.
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on integration of Salesforce with Bonterra Impact Management.
Interested in deploying an integration with Salesforce for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Digital Marketing Trends in 2024 | Guide for Staying AheadWask
https://www.wask.co/ebooks/digital-marketing-trends-in-2024
Feeling lost in the digital marketing whirlwind of 2024? Technology is changing, consumer habits are evolving, and staying ahead of the curve feels like a never-ending pursuit. This e-book is your compass. Dive into actionable insights to handle the complexities of modern marketing. From hyper-personalization to the power of user-generated content, learn how to build long-term relationships with your audience and unlock the secrets to success in the ever-shifting digital landscape.
5th LF Energy Power Grid Model Meet-up SlidesDanBrown980551
5th Power Grid Model Meet-up
It is with great pleasure that we extend to you an invitation to the 5th Power Grid Model Meet-up, scheduled for 6th June 2024. This event will adopt a hybrid format, allowing participants to join us either through an online Mircosoft Teams session or in person at TU/e located at Den Dolech 2, Eindhoven, Netherlands. The meet-up will be hosted by Eindhoven University of Technology (TU/e), a research university specializing in engineering science & technology.
Power Grid Model
The global energy transition is placing new and unprecedented demands on Distribution System Operators (DSOs). Alongside upgrades to grid capacity, processes such as digitization, capacity optimization, and congestion management are becoming vital for delivering reliable services.
Power Grid Model is an open source project from Linux Foundation Energy and provides a calculation engine that is increasingly essential for DSOs. It offers a standards-based foundation enabling real-time power systems analysis, simulations of electrical power grids, and sophisticated what-if analysis. In addition, it enables in-depth studies and analysis of the electrical power grid’s behavior and performance. This comprehensive model incorporates essential factors such as power generation capacity, electrical losses, voltage levels, power flows, and system stability.
Power Grid Model is currently being applied in a wide variety of use cases, including grid planning, expansion, reliability, and congestion studies. It can also help in analyzing the impact of renewable energy integration, assessing the effects of disturbances or faults, and developing strategies for grid control and optimization.
What to expect
For the upcoming meetup we are organizing, we have an exciting lineup of activities planned:
-Insightful presentations covering two practical applications of the Power Grid Model.
-An update on the latest advancements in Power Grid -Model technology during the first and second quarters of 2024.
-An interactive brainstorming session to discuss and propose new feature requests.
-An opportunity to connect with fellow Power Grid Model enthusiasts and users.
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfflufftailshop
When it comes to unit testing in the .NET ecosystem, developers have a wide range of options available. Among the most popular choices are NUnit, XUnit, and MSTest. These unit testing frameworks provide essential tools and features to help ensure the quality and reliability of code. However, understanding the differences between these frameworks is crucial for selecting the most suitable one for your projects.
Have you ever been confused by the myriad of choices offered by AWS for hosting a website or an API?
Lambda, Elastic Beanstalk, Lightsail, Amplify, S3 (and more!) can each host websites + APIs. But which one should we choose?
Which one is cheapest? Which one is fastest? Which one will scale to meet our needs?
Join me in this session as we dive into each AWS hosting service to determine which one is best for your scenario and explain why!
Introduction of Cybersecurity with OSS at Code Europe 2024Hiroshi SHIBATA
I develop the Ruby programming language, RubyGems, and Bundler, which are package managers for Ruby. Today, I will introduce how to enhance the security of your application using open-source software (OSS) examples from Ruby and RubyGems.
The first topic is CVE (Common Vulnerabilities and Exposures). I have published CVEs many times. But what exactly is a CVE? I'll provide a basic understanding of CVEs and explain how to detect and handle vulnerabilities in OSS.
Next, let's discuss package managers. Package managers play a critical role in the OSS ecosystem. I'll explain how to manage library dependencies in your application.
I'll share insights into how the Ruby and RubyGems core team works to keep our ecosystem safe. By the end of this talk, you'll have a better understanding of how to safeguard your code.
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...alexjohnson7307
Predictive maintenance is a proactive approach that anticipates equipment failures before they happen. At the forefront of this innovative strategy is Artificial Intelligence (AI), which brings unprecedented precision and efficiency. AI in predictive maintenance is transforming industries by reducing downtime, minimizing costs, and enhancing productivity.
Taking AI to the Next Level in Manufacturing.pdfssuserfac0301
Read Taking AI to the Next Level in Manufacturing to gain insights on AI adoption in the manufacturing industry, such as:
1. How quickly AI is being implemented in manufacturing.
2. Which barriers stand in the way of AI adoption.
3. How data quality and governance form the backbone of AI.
4. Organizational processes and structures that may inhibit effective AI adoption.
6. Ideas and approaches to help build your organization's AI strategy.
Skybuffer SAM4U tool for SAP license adoptionTatiana Kojar
Manage and optimize your license adoption and consumption with SAM4U, an SAP free customer software asset management tool.
SAM4U, an SAP complimentary software asset management tool for customers, delivers a detailed and well-structured overview of license inventory and usage with a user-friendly interface. We offer a hosted, cost-effective, and performance-optimized SAM4U setup in the Skybuffer Cloud environment. You retain ownership of the system and data, while we manage the ABAP 7.58 infrastructure, ensuring fixed Total Cost of Ownership (TCO) and exceptional services through the SAP Fiori interface.
Generating privacy-protected synthetic data using Secludy and MilvusZilliz
During this demo, the founders of Secludy will demonstrate how their system utilizes Milvus to store and manipulate embeddings for generating privacy-protected synthetic data. Their approach not only maintains the confidentiality of the original data but also enhances the utility and scalability of LLMs under privacy constraints. Attendees, including machine learning engineers, data scientists, and data managers, will witness first-hand how Secludy's integration with Milvus empowers organizations to harness the power of LLMs securely and efficiently.
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Hospitalmanagement
1. ………………………………. SCHOOL,…………
Project Report
On
HOSPITAL
MANAGEMENT SYSTEM
(PATIENTS BILL MANAGEMENT SYSTEM)
In the partial fulfillment of All India Senior School
Certificate Examination for the session ………….
conducted by Central Board Of Secondary Education.
…………………….
CLASS--XII
2. ACKNOWLEDGEMENT
I would like to convey my heartful thanks to
………………….. (Computer Science) who always
gave valuable suggestions & guidance for completion
of my project.
He helped me to understand & remember important
details of the project. My project has been a success
only because of his guidance.
I am especially indented & I am also beholden to my
friends. And finally I thank to the members of my
family for their support & encouragement.
3. CERTIFICATE
This is to certify that ……………………….. of
class ……. of
……………………………………………. has
completed her project under my supervision. She
has taken proper care & shown sincerity in
completion of this project.
I certify that this project is up to my
expectation & as per the guideline issued by
CBSE.
……………………….
(Computer Science faculty )
5. INTRODUCTION
This project HOSPITAL MANAGEMENT
SYSTEM(PATIENTS BILL MANAGEMENT SYSTEM)
includes easy working of the hospital system in maintaining
the hospital system.
This software keep the records of all the patients and their
information about all the bills paid or due
Objective of this software is to computerize the manual system
of a hospital, so that all the transactions become fast and easy.
It replaces all the paper work. It works according to the need
and lowers the workload of user.
Objective of the program is rather simple .It provides easy
management of transaction. It’s provides an easy navigation
menu which a layman user can also use.
It manages the entire record along with date, patient code,
patient’s records and doctors details etc. In this program there
is a working mode available administrator. An administrator is
as usual given all the rights like adding information, modifying
existing information, deleting and viewing the information.
In this system clearly aims at reducing the paper work at the
cost to be borne of the registers and other things are much
higher than the System’s working. Its keep record of all the
information given to it according to the date which makes
locating a record quite easy
14. cout<<"MOBILE NO:";
gotoxy(15,18);
cin>>mobno;
gotoxy(1,19);
cout<<"E-MAIL(IF NO ENTER "NO"):";
gotoxy(30,19);
cin.getline(email,70);
if(strcmp(email,"NO")==0||strcmp(email,"no")==0)
strcpy(email,"NO EMAIL ID");
gotoxy(1,20);
cout<<"SPECIALISED IN : ";
cin>>sep;
gotoxy(45,20);
cout<<"AMOUNT TO DEPOSIT: ";cin>>fees;
strcpy(doc_status,"available");
}
//input fuction for patients information
//****************display doctors information in a box
void display_doctor_rectangle()
{
gotoxy(5,7);
cout<<"======================================================================";
gotoxy(1,8);
cout<<"DOC. REG:";
gotoxy(12,8);
cout<<dno;
gotoxy(25,8);
cout<<"NAME:";
gotoxy(30,8);
cout<<" "<<dnm.fname;
gotoxy(40,8);
cout<<"- "<<dnm.lname;
gotoxy(60,8);
cout<<"AGE:";
gotoxy(65,8);
cout<<dnm.age;
gotoxy(1,9);
cout<<"ADDRESS::";
gotoxy(10,9);
cout<<dadd.hno_street<<"-";
gotoxy(15,9);
cout<<dadd.city;
cout<<","<<dadd.state;
gotoxy(50,9);
cout<<"MARTIAL STATUS:";
cout<<martialstatus;
gotoxy(1,10);
cout<<"MOBILE NO:";
gotoxy(12,10);
cout<<mobno;
gotoxy(1,11);
cout<<"E-MAIL:";
gotoxy(10,11);
cout<<email;
gotoxy(40,10);
cout<<"SPECIALIZED:";
gotoxy(60,10);
cout<<sep;
gotoxy(5,12);
cout<<"======================================================================";
}};
//*********CLASS DEFINATION
//********MAIN BODY
void main()
{
char ch;
intro();
if(checkpass()==0)
{
do
15. {
//****************TEMPORARY***********************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================MAIN MENU====================";
gotoxy(28,7);
cout<<"01. intro. to hospital system(PLEASE RUN FOR FIRST TIME ONLY) ";
gotoxy(28,8);
cout<<"02. ADMINISTRATOR";
gotoxy(28,9);
cout<<"03. EXIT";
gotoxy(20,10);
cout<<"==============================================";
gotoxy(25,12);
cout<<"Please Select Your Option (1-3) ";
gotoxy(30,14);
ch=getche();
switch(ch)
{
case '1': clrscr();
runfirsttime();
break;
case '2': admin_menu();
break;
case '3':exit(0);
default :cout<<"a";
}
}while(ch!='3');
}else
{
exit(0);
}}
//***************************************************************
//********MAIN BODY
//********FUNCTION DEFINATIOS
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{ clrscr();
gotoxy(4,2);
cout<<"************************HOSPITAL MANAGEMENT ******************************";
gotoxy(5,4);
cout<<"==============(PATIENTS BILLING MANAGEMENT SYSTEM)=====================";
gotoxy(5,5);
cout<<"****************************S=Y=S=T=E=M********************************";
gotoxy(50,10);
cout<<"PROJECT:";
gotoxy(50,12);
cout<<"MADE BY : --------------------";
gotoxy(10,14);
cout<<"---------------CLASS : XII --------------------";
getch();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intromain()
{ clrscr();
gotoxy(1,2);
cout<<"*******************HOSPITAL******MANAGEMENT********SYSTEM*************";
gotoxy(1,3);
cout<<"**************************(PATIENTS BILLING SYSTEM********************";
}
//******************************login name and password****************
int checkpass()
{
char nm[20];
char pass[10];
16. clrscr();
intromain();
gotoxy(20,20);
cout<<"PLEASE ENTER THE USER NAME:";
gotoxy(20,21);
cin>>nm;
clrscr();
gotoxy(20,20);
cout<<"PLEASE ENTER THE PASSWORD:";
gotoxy(20,21);
cin>>pass;
if(strcmp(nm,"admin")==0 && strcmp(pass,"vicky")==0)
{
return 0; }else { return 1; }
}
//********************************************************************
//***************************************************************
// ADMINSTRATOR MENU FUNCTION
//****************************************************************
void admin_menu()
{
clrscr();
char ch2,patno[15];
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================ADMIN MENU====================";
gotoxy(22,7);
cout<<"1.PATIENTS (OPD/ICU/OTHER)INFORMATION";
gotoxy(22,8);
cout<<"2.BILLS/TRANSCATIONS";
gotoxy(22,9);
cout<<"3.DOCTORS INFORMATION AND CHARGES";
gotoxy(22,10);
cout<<"4.ROOMS INFORMATION AND CHARGES";
gotoxy(22,11);
cout<<"5.REPORTS";
gotoxy(22,12);
cout<<"6.BACK TO MAIN MENU";
gotoxy(22,13);
cout<<"Please Enter Your Choice (1-6) ";
gotoxy(22,14);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1': clrscr();
patient_menu();
break;
case '2':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PATIENTS NO:";
gotoxy(55,9);
cin>>patno;
billingmenu(patno);
break;
case '3':clrscr();
doctors_menu();
break;
case '4':clrscr();
rooms_menu();
break;
case '5':
clrscr();
REPORTS();
break;
default:
17. cout<<"a";//admin_menu();
}
}
//***************************************************************
//***************************************************************
// PATIENTS INFORMATION ADD / MODIFY / DELETE
//****************************************************************
void patient_menu()
{
clrscr();
char ch2;
char patno[15];
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================PATIENT'S MENU====================";
gotoxy(22,7);
cout<<"1.ADD PATIENT INFORMATION";
gotoxy(22,8);
cout<<"2.MODIFY PATIENT INFORMATION";
gotoxy(22,9);
cout<<"3.DISCHARGE PATIENT";
gotoxy(22,10);
cout<<"4.BACK TO MAIN MENU";
gotoxy(22,11);
cout<<"Please Enter Your Choice (1-4) ";
gotoxy(22,12);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1': clrscr();
patientadmittmenu();
break;
case '2':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PATIENT. NO. TO BE SEARCHED:";
gotoxy(55,9);
cin>>patno;
modify_patientinfo(patno);
break;
case '3':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PATIENT. NO. TO BE SEARCHED AND DISCHARGE:";
gotoxy(55,9);
cin>>patno;
discharge_PATinfo(patno);
break;
default:
cout<<"a";//admin_menu();
}
}
//***************************************************************
//***************************************************************
// DOCTORS INFORMATION ADD / MODIFY / DELETE
//****************************************************************
void doctors_menu()
{
clrscr();
char ch2;
char docno[15];
//************************************************************
clrscr();
intromain();
18. gotoxy(20,6);
cout<<"=================DOCTOR'S MENU====================";
gotoxy(22,7);
cout<<"1.ADD DOCTOR INFORMATION";
gotoxy(22,8);
cout<<"2.MODIFY DOCTOR INFORMATION";
gotoxy(22,9);
cout<<"3.DELETE DOCTOR INFORMATION";
gotoxy(22,10);
cout<<"4.BACK TO MAIN MENU";
gotoxy(22,11);
cout<<"Please Enter Your Choice (1-4) ";
gotoxy(22,12);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1': clrscr();
doctor_new();
break;
case '2':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE DOC. NO.TO BE SEARCHED:";
gotoxy(55,9);
cin>>docno;
modify_DOCinfo(docno);
break;
case '3':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE DOC NO. OF TO BE SEARCHED AND DELETE:";
gotoxy(55,9);
cin>>docno;
delete_DOCinfo(docno);
break;
default:
cout<<"a";//admin_menu();
}
}
//***************************************************************
//***************************************************************
// ROOMS INFORMATION ADD / MODIFY / DELETE
//****************************************************************
void rooms_menu()
{
clrscr();
char ch2;
char romname[15];
int val=0;
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================ROOM'S MENU====================";
gotoxy(22,7);
cout<<"1.ADD INCREASE ROOMS INFORMATION";
gotoxy(22,8);
cout<<"2.DECREASE ROOMS INFORMATION";
gotoxy(22,9);
cout<<"3.BACK TO MAIN MENU";
gotoxy(22,10);
cout<<"Please Enter Your Choice (1-3) ";
gotoxy(22,11);
//**********************************************************
ch2=getche();
switch(ch2)
{
19. case '1': clrscr();
intromain();
gotoxy(10,8);
cout<<"**ENTER THE ROOM NAME: ";
cin>>romname;
gotoxy(10,9);
cout<<"**ENTER THE VALUE TO INCREASE: ";
cin>>val;
addnewroomstypes(romname,val);
break;
case '2':
clrscr();
intromain();
gotoxy(10,8);
cout<<"**ENTER THE ROOM NAME: ";
cin>>romname;
gotoxy(10,9);
cout<<"**ENTER THE VALUE TO INCREASE: ";
cin>>val;
intromain();
modify_roomtype(romname,val);
break;
default:
cout<<"a";//admin_menu();
}
}
//***************************************************************
// REPORTS
//****************************************************************
void REPORTS()
{
clrscr();
char ch2,M;
char sarch[15];
dateinfo dtsearch;
char w[15];
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================REPORTS====================";
gotoxy(22,7);
cout<<"1.ALL PATIENTS INFORMATION DATE WISE";
gotoxy(22,8);
cout<<"2.ALL PATIENTS INFORMATION CITY WISE";
gotoxy(22,9);
cout<<"3.ALL PATIENTS INFORMATION WARD WISE";
gotoxy(22,10);
cout<<"4.ALL PATIENTS INFORMATION DOCTOR WISE";
gotoxy(22,11);
cout<<"5.PATIENTS DETAILS WITH DOCTOR VISITED LIST";
gotoxy(22,12);
cout<<"6.PATIENTS DETAILS WITH BILLS DETAILS";
gotoxy(22,13);
cout<<"7.ALL DOCTOR LIST";
gotoxy(22,14);
cout<<"8.ALL ROOMS LIST";
gotoxy(22,15);
cout<<"9.ALL DOCTOR LIST ON THE BASIS OF MARTIAL STATUS";
gotoxy(22,16);
cout<<"11.BACK TO MAIN MENU";
gotoxy(22,17);
cout<<"Please Enter Your Choice (1-11) ";
gotoxy(22,18);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1':intromain();
gotoxy(10,8);
20. cout<<"*****ENTER THE DATE WISEDATE(dd/mm/yyyy) SEARCH OF PATIENTS:";
gotoxy(30,9);
cin>>dtsearch.dd;
gotoxy(35,9);
cout<<"/";
gotoxy(40,9);
cin>>dtsearch.mm;
gotoxy(45,9);
cout<<"/";
gotoxy(50,9);
cin>>dtsearch.yy;
searchPATIENTSdatewise(dtsearch);
break;
case '2': intromain();
gotoxy(10,8);
cout<<"*****ENTER THE CITY WISE SEARCH OF PATIENTS:";
gotoxy(55,9);
cin>>sarch;
searchPATIENTS(sarch);
break;
case '3':
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE WARD WISE SEARCH OF PATIENTS:";
gotoxy(55,9);
cin>>w;
searchPATIENTSwardwise(w);
break;
case '7':
clrscr();
intromain();
displayallDOC();
break;
case '8':
clrscr();
intromain();
displayallroomlimit();
break;
case '9':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE MARTIAL (M: MALE or F: FEMALE):";
gotoxy(55,9);
cin>>M;
displayallDOConmartial(M);
break;
default:
cout<<"a";//admin_menu();
}
}
//***************************************************************
//************"roomlimit.dat
void runfirsttime()
{
roomlimit rmlimit[4]={{"GEN",200},{"PAC",50},{"PNONAC",50},{"ICU",100}};
roomlimit rm;
ifstream objiff("roomlimit.dat",ios::binary);
if(!objiff)
{
gotoxy(10,20);
cout<<"File could not be open !! Press any Key...";
objiff.close();
getch();
ofstream objoff("roomlimit.dat",ios::binary);
clrscr();
intromain();
for(int x=0;x<4;x++)
{
rm=rmlimit[x];
21. objoff.write((char*)&rm,sizeof(roomlimit));
}
objoff.close();
clrscr();
intromain();
gotoxy(5,7);
cout<<"================================================================";
objiff.close();
}
//***********first doctors list by the hospital
nameinfo docnm[5]={{"DR.ANMOL","MIR",45},{"Dr.Shaleen","Agarwal",38},{"Dr.Swati","Aggarwal",45},
{"Dr.Pooja","Aggarwal",55},{"Dr.Rohit","Srivastava",56}};
address dadd[5]={{"SEC-2","Gurgaon","HARYANA"},{"SEC-2","Gurgaon","HARYANA"},{"SEC-2","Gurgaon","HARYANA"},
{"SEC-2","Gurgaon","HARYANA"},{"SEC-2","Gurgaon","HARYANA"}};
dateinfo dt[5]={{12,4,2012},{12,4,2012},{17,7,2015},{12,4,2014},{12,4,2016}};
doctor doc[5];
doc[0].input("D001",docnm[0],'M',dadd[0],"8975652325","NONE",dt[0],1000,"Gastroenterology","AVALIABLE");
doc[1].input("D002",docnm[1],'F',dadd[1],"8975652325","NONE",dt[1],1200,"Liver Transplant ","AVALIABLE");
doc[2].input("D003",docnm[2],'F',dadd[2],"8975652325","NONE",dt[2],1000,"Anaesthesia & Pain","AVALIABLE");
doc[3].input("D004",docnm[3],'F',dadd[3],"8975652325","NONE",dt[3],1000,"Dermatology & Cosmetology","AVALIABLE");
doc[4].input("D005",docnm[4],'M',dadd[4],"8975652325","NONE",dt[4],1000,"Cardiology & Cardiac Surgery","AVALIABLE");
// add martial status of patient and doctor and the Department of doctors also
//doctor(char dno1[15],nameinfo dnm1,char MS,address dadd1,char mobno2[15],char email2[70],dateinfo ddate2,float
fees2,char sep2[20],char doc_status2[15])
ofstream objoff2("doctor.dat",ios::binary|ios::app);
for(int x=0;x<5;x++)
{
objoff2.write((char*)&doc[x],sizeof(doctor));
}
objoff2.close();
getch();
}
//************"roomlimit.dat
//****************reports
void displayallDOC()
{
ifstream objiff("doctor.dat",ios::binary);
doctor doc;
//*****************************
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"CODE"<<setw(15)<<"NAME OF DOCTOR"<<setw(5)<<"AGE"<<setw(12)<<"--
ADDRESS---"<<setw(18)<<"SPECIALIZATION";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&doc,sizeof(doctor)))
{
doc.showalldoctorsrowwise(c1);
c1++;
}
objiff.close();
getch();
//*****************************
}
void displayallroomlimit()
{
roomlimit rm;
ifstream objiff("roomlimit.dat",ios::binary);
//*****************************
if(!objiff)
{
22. cout<<"File could not be open !! Press any Key...";
getch();
return;
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"ROOM NAME"<<setw(25)<<"LIMIT OF ROOM";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&rm,sizeof(roomlimit)))
{
gotoxy(1,c1);
cout<<rm.rname<<setw(25)<<rm.limit;
c1++;
}
objiff.close();
getch();
//*****************************
}
//****************display doctors on the basis of martial status
void displayallDOConmartial(char MR)
{
ifstream objiff("doctor.dat",ios::binary);
doctor doc;
//*****************************
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"CODE"<<setw(15)<<"NAME OF DOCTOR"<<setw(5)<<"AGE"<<setw(12)<<"------
ADDRESS-------"<<setw(18)<<"SPECIALIZATION";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&doc,sizeof(doctor)))
{
if(doc.getdocmartialstatus()==toupper(MR))
{
doc.showalldoctorsrowwise(c1);
c1++;
}
}
objiff.close();
getch();
//*****************************
}
void patientadmittmenu()
{
clrscr();
char ch2;
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================PATIENT'S MENU====================";
gotoxy(22,7);
cout<<"1.ADMITTED TO ICU";
gotoxy(22,8);
cout<<"2.ADMITTED TO GENERAL WARD";
gotoxy(22,9);
cout<<"3.ADMITTED TO PRIVATE ROOM WITHOUT AC";
gotoxy(22,10);
cout<<"4.ADMITTED TO PRIVATE ROOM WITH AC";
23. gotoxy(22,11);
cout<<"5.BACK TO MAIN MENU";
gotoxy(22,12);
cout<<"Please Enter Your Choice (1-5) ";
gotoxy(22,13);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1':
write_patients("ICU");
break;
case '2': write_patients("GEN");
break;
case '3':write_patients("PNONAC");
break;
case '4':write_patients("PAC");
break;
default:
cout<<"a";//admin_menu();
}
}
void write_patients(char unit[15])
{
//*****************add new registered donars information
ofstream objoff;
patient pobj;
objoff.open("patients.dat",ios::binary|ios::app);
//ofstream objofflist("donarlist.dat",ios::binary|ios::app);
clrscr();
intromain();
//int rnn=getdonarno();
char getprv_regno[15];
strcpy(getprv_regno,getreg());
if(strcmp(getprv_regno,"NULL")!=0)
{
gotoxy(5,4);
cout<<"Previous PATIENT NO: "<<getprv_regno;
}
pobj.create_patient();
objoff.write((char*)&pobj,sizeof(patient));
objoff.close();
//************write to billing file
//*********decrease the limit
dec_roomlimit(unit);
//*********decrease the limit
//*********create room list of patient
create_room_allot(pobj.getpno(),unit,pobj.getdate(),"FILLED");
//*****************first room bill
createbillroom(pobj.getpno(),unit,pobj.getdate(),pobj.getamount());
//*****************first room bill
gotoxy(10,24);
cout<<"***************PATIENTS RECORD SAVED******************* ";
cin.ignore();
getch();
objoff.close();
}
//************get the patients last number****************
char *getreg()
{
ifstream objiff;
patient st;
int count=0;
char tmpregno[15];
objiff.open("patients.dat",ios::binary);
objiff.seekg(0,ios::beg);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
25. billing billobj;
ofstream objoff;
objoff.open("bills.dat",ios::binary|ios::app);
billobj.billdeposit(pno,billunitdetail,amount,dtofbill);
objoff.write((char*)&billobj,sizeof(billing));
objoff.close();
}
//*********search the patients details city wise
void searchPATIENTS(char sr[15])
{
ifstream objiff;
patient st;
objiff.open("patients.dat",ios::binary);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"PATNo."<<setw(15)<<"NAME OF PATIENT"<<setw(5)<<"AGE"<<setw(12)<<"------
ADDRESS-------"<<setw(18)<<"MOBILE NO."<<setw(12)<<"BLOOD GROUP";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&st,sizeof(patient)))
{
if(strcmp(st.getcity(),sr)==0)
{
st.showallpatientsrowwise(c1);
c1++;
}
}
objiff.close();
getch();
}
//*********search the patients details date wise
void searchPATIENTSdatewise(dateinfo sr)
{
ifstream objiff;
patient st;
objiff.open("patients.dat",ios::binary);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"PATNo."<<setw(15)<<"NAME OF PATIENT"<<setw(5)<<"AGE"<<setw(12)<<"------
ADDRESS-------"<<setw(18)<<"MOBILE NO."<<setw(12)<<"BLOOD GROUP";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&st,sizeof(patient)))
{
if(st.pmm()==sr.dd && st.pdd()==sr.mm && st.pyy()==sr.yy)
{
st.showallpatientsrowwise(c1);
c1++;
}
}
objiff.close();
getch();
}
void searchPATIENTSwardwise(char ward[15])
{
26. ifstream objiff;
patient st;
objiff.open("patients.dat",ios::binary);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
clrscr();
intromain();
int c1=7;
gotoxy(1,5);
cout<<"PATNo."<<setw(15)<<"NAME OF PATIENT"<<setw(5)<<"AGE"<<setw(12)<<"------
ADDRESS-------"<<setw(18)<<"MOBILE NO."<<setw(12)<<"BLOOD GROUP";
gotoxy(1,6);
cout<<"========================================================================";
while(objiff.read((char*)&st,sizeof(patient)))
{
if(strcmp(getward(st.getpno()),ward)==0)
{
st.showallpatientsrowwise(c1);
c1++;
}
}
objiff.close();
getch();
}
char *getward(char pno[15])
{
ifstream objiff;
room_rec robj;
char tmp[15];
objiff.open("roomrecord.dat",ios::binary);
while(objiff.read((char*)&robj,sizeof(room_rec)))
{
if(strcmp(pno,robj.pno)==0)
{
strcpy(tmp,robj.un);
break;
}
}
objiff.close();
return tmp;
}
//********************DISCHARGE OF PATIENTS
void discharge_PATinfo(char ptno[15])
{
clrscr();
intromain();
//********bills file
billing billobj;
ifstream billsiff;
billsiff.open("bills.dat",ios::binary);
int flag=-1;//,fpos=0;
//********bills file
ifstream fp;
patient st;
fp.open("patients.dat",ios::binary);
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&st,sizeof(patient)))
{
if(strcmp(st.getpno(),ptno)==0)
27. {
flag=1;
break;
}
}
if(flag==1)
{
//fp.seekp(fpos-sizeof(patient),ios::beg);
st.display_patient_rectangle();
fp.close();
//*********now display all the bills of patients
gotoxy(5,13);
cout<<"-----------------LIST OF BILLS TO BE PAID BY PATIENTS---------------";
int y1=15;
//*********now display all the bills of patients
dateinfo billdate;
int bno=1;
gotoxy(5,14);
cout<<"BILL NO"<<setw(8)<<"BILL INFO."<<setw(8)<<"DATEOF BILL"<<setw(10)<<"AMOUNT";
while(billsiff.read((char*)&billobj,sizeof(billing)))
{
if(strcmp(billobj.getpno(),ptno)==0)
{
billdate=billobj.getdate();
gotoxy(5,y1);
cout<<bno<<setw(8)<<billobj.getbilldetail()<<setw(8)<<billdate.dd<<"/"<<billdate.mm<<"/"<<billdate.yy<<setw(8)<<billobj.geta
mount();
y1++;
bno++;
}
}
billsiff.close();
}else
{
fp.close();
billsiff.close();
}
getch();
}
//*****************************************
//************modify patients details
void modify_patientinfo(char patno[15])
{
clrscr();
intromain();
fstream fp;
fp.open("patients.dat",ios::binary|ios::in|ios::out);
patient st;
nameinfo nminfo;
address ad1;
char oldunit[15];
int choice=0;
char mb[15],eid[75],bg[5],ch2;
int fpos=-1,ag=0;
int flag=-1;
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&st,sizeof(patient)))
{
if(strcmp(st.getpno(),patno)==0)
{
flag=1;
fpos=(int)fp.tellg();
break;
}
}
28. if(flag==1)
{
fp.seekp(fpos-sizeof(patient),ios::beg);
st.display_patient_rectangle();
gotoxy(20,13);
cout<<"==========PATIENTS'S MODIFICATION MENU====================";
gotoxy(22,14);
cout<<"1.MODIFY NAME";
gotoxy(22,15);
cout<<"2.MODIFY AGE";
gotoxy(22,16);
cout<<"3.MODIFY ADDRESS";
gotoxy(22,17);
cout<<"4.MODIFY MOBILE NO.";
gotoxy(22,18);
cout<<"5.MODIFY EMAIL";
gotoxy(22,19);
cout<<"6.MODIFY BLOOD GROUP";
gotoxy(22,20);
cout<<"7.CHANGE THE ROOM ";
gotoxy(22,21);
cout<<"Please Enter Your Choice (1-7) ";
gotoxy(22,22);
//**********************************************************
ch2=getche();
clrscr();
intromain();
st.display_patient_rectangle();
switch(ch2)
{
case '1':
gotoxy(20,13);
cout<<"===ENTER THE FIRST NAME TO MODIFY: ";cin>>nminfo.fname;
gotoxy(20,14);
cout<<"===ENTER THE LAST NAME TO MODIFY: ";cin>>nminfo.lname;
st.setfullname(nminfo);
break;
case '2':
gotoxy(20,13);
cout<<"===ENTER THE AGE TO MODIFY: ";cin>>ag;
st.setage(ag);
break;
case '3':
gotoxy(20,13);
cout<<"===ENTER THE HNO/STREET TO MODIFY: ";
cin.ignore();
cin.getline(ad1.hno_street,15);
gotoxy(20,14);
cout<<"===ENTER THE CITY TO MODIFY: ";cin>>ad1.city;
gotoxy(20,15);
cout<<"===ENTER THE STATE TO MODIFY: ";cin>>ad1.state;
st.setaddress(ad1);
break;
case '4':
gotoxy(20,13);
cout<<"===ENTER THE MOBILE TO MODIFY: ";cin>>mb;
st.setmobileno(mb);
break;
case '5':
gotoxy(20,13);
cout<<"===ENTER THE EMAIL TO MODIFY: ";
cin.ignore();
cin.getline(eid,75);
st.setemail(eid);
break;
case '6':
gotoxy(20,13);
cout<<"===ENTER THE BLOOD GROUP TO MODIFY: ";cin>>bg;
st.setblodgrp(bg);
29. break;
case '7':
gotoxy(20,13);
cout<<"===ENTER 1-ICU 2-GEN 3-PNONAC 4-PAC TO MODIFY: ";cin>>choice;
if(choice==1)
{
strcpy(oldunit,getoldunit(patno));
createmodifyroom(patno,"ICU",oldunit);
}else if(choice==2)
{
strcpy(oldunit,getoldunit(patno));
createmodifyroom(patno,"GEN",oldunit);
}else if(choice==3)
{
strcpy(oldunit,getoldunit(patno));
createmodifyroom(patno,"PNONAC",oldunit);
}else if(choice==4)
{
strcpy(oldunit,getoldunit(patno));
createmodifyroom(patno,"PAC",oldunit);
}
break;
}}}
void createmodifyroom(char pno[15],char unNEW[15],char unOLD[15])
{
dateinfo dt;
float amount=0.00;
gotoxy(10,15);
cout<<"Enter the room amount:";
cin>>amount;
gotoxy(5,17);
cout<<"DATE(dd/mm/yyyy):";
gotoxy(30,17);
cin>>dt.dd;
gotoxy(35,17);
cout<<"/";
gotoxy(40,17);
cin>>dt.mm;
gotoxy(45,17);
cout<<"/";
gotoxy(50,17);
cin>>dt.yy;
//*********decrease the limit
inc_roomlimit(unOLD);
dec_roomlimit(unNEW);
//*********decrease the limit
//*********create room list of patient
create_room_allot(pno,unNEW,dt,"FILLED");
//*****************first room bill
createbillroom(pno,unNEW,dt,amount);
//*****************first room bill
}
char *getoldunit(char ptno[15])
{
char tmpunit[15];
fstream fp;
room_rec robj;
int fpos=0,flag=-1;
fp.open("roomrecord.dat",ios::binary|ios::in|ios::out);
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
while(fp.read((char*)&robj,sizeof(room_rec)))
{
if(strcmp(robj.pno,ptno)==0 && strcmp(robj.room_status,"FILLED")==0)
{
flag=1;
fpos=(int)fp.tellg();
30. break;
}
}
if(flag==1)
{
fp.seekp(fpos-sizeof(room_rec),ios::beg);
strcpy(tmpunit,robj.un);
strcpy(robj.room_status,"EXPIRED");
}
fp.write((char*)&robj,sizeof(room_rec));
fp.close();
return tmpunit;
}
void inc_roomlimit(char rname[15])
{
int fpos=0;
roomlimit rm,tmp;
fstream objiff("roomlimit.dat",ios::binary|ios::in|ios::out);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
while(objiff.read((char *) &rm, sizeof(roomlimit)))
{
if(strcmp(rm.rname,rname)==0)
{ fpos=(int)objiff.tellg();
break;
}
}
objiff.seekp(fpos-sizeof(roomlimit),ios::beg);
tmp=rm;
tmp.limit=tmp.limit+1;
objiff.write((char *) &tmp, sizeof(roomlimit));
objiff.close();
}
//*************new doctor information
void doctor_new()
{
ofstream objoff;
objoff.open("doctor.dat",ios::binary|ios::app);
doctor doc;
clrscr();
intromain();
char getprv_regno[15];
strcpy(getprv_regno,getdocno());
if(strcmp(getprv_regno,"NULL")!=0)
{
gotoxy(5,4);
cout<<"Previous NO: "<<getprv_regno;
}
doc.create_doctor();
objoff.write((char*)&doc,sizeof(doctor));
objoff.close();
gotoxy(10,24);
cout<<"***************DOCTORS RECORD SAVED******************* ";
cin.ignore();
getch();
}
//**************DOCTOR PREVIOUS NO
char *getdocno()
{
ifstream objiff;
int count=0;
char tmpregno[15];
objiff.open("doctor.dat",ios::binary);
doctor doc;
objiff.seekg(0,ios::beg);
if(!objiff)
31. {
cout<<"File could not be open !! Press any Key...";
getch();
}
while(objiff.read((char *) &doc, sizeof(doctor)))
{
count++;
}
//***********jump to the last line
objiff.seekg(count-sizeof(doc),ios::beg);
objiff.read((char *) &doc, sizeof(doctor));
strcpy(tmpregno,doc.getdocno());
objiff.close();
if(count!=0)
return tmpregno;
else
return "NULL";
}
//*************new doctor information
//**********delete the doctor
void delete_DOCinfo(char dcno[15])
{
doctor doc;
clrscr();
intromain();
ifstream fp;
fp.open("doctor.dat",ios::binary);
int flag=-1;
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char *) &doc, sizeof(doctor)))
{
if(strcmp(doc.getdocno(),dcno)==0)
{
flag=1;
//fpos=(int)fp.tellg();
break;
}
}
char ch;
if(flag==0)
{
cout<<"nnrecord not exist";
fp.close();
}else
{
doc.display_doctor_rectangle();
fp.close();
gotoxy(1,15);
cout<<"*****************************************************************************";
gotoxy(5,16);
cout<<"======DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N)========";
gotoxy(2,17);
cin>>ch;
if (toupper(ch)=='Y')
{
ofstream outFile;
outFile.open("Temp1.dat",ios::binary);
ifstream objiff("doctor.dat",ios::binary);
objiff.seekg(0,ios::beg);
while(fp.read((char *) &doc, sizeof(doctor)))
{
if(strcmp(doc.getdocno(),dcno)!=0)
{
outFile.write((char *) &doc, sizeof(doctor));
}
32. }
outFile.close();
objiff.close();
remove("doctor.dat");
rename("Temp1.dat","doctor.dat");
gotoxy(30,20);
cout<<"----------------------------Record Deleted----------------------------------";
getch();
}
}
}
//**********delete the doctor
//**************modify doctors list
void modify_DOCinfo(char dcno[15])
{
char ch2;
doctor doc;
clrscr();
intromain();
fstream fp;
fp.open("doctor.dat",ios::binary|ios::in|ios::out);
nameinfo nminfo;
address ad1;
char mb[15],eid[75],spec[45];
int fpos=-1,ag=0;
int flag=-1;
float charges=0.00;
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char *) &doc, sizeof(doctor)))
{
if(strcmp(doc.getdocno(),dcno)==0)
{
flag=1;
fpos=(int)fp.tellg();
break;
}
}
if(flag==1)
{
fp.seekp(fpos-sizeof(doctor),ios::beg);
doc.display_doctor_rectangle();
gotoxy(20,13);
cout<<"==========DOCTOR'S MODIFICATION MENU====================";
gotoxy(22,14);
cout<<"1.MODIFY NAME";
gotoxy(22,15);
cout<<"2.MODIFY AGE";
gotoxy(22,16);
cout<<"3.MODIFY ADDRESS";
gotoxy(22,17);
cout<<"4.MODIFY MOBILE NO.";
gotoxy(22,18);
cout<<"5.MODIFY EMAIL";
gotoxy(22,19);
cout<<"6.MODIFY SPECIALIZATION";
gotoxy(22,20);
cout<<"7.MODIFY FEE STRUCTURE";
gotoxy(22,21);
cout<<"Please Enter Your Choice (1-7) ";
gotoxy(22,22);
//**********************************************************
ch2=getche();
clrscr();
intromain();
doc.display_doctor_rectangle();
33. switch(ch2)
{
case '1':
gotoxy(20,13);
cout<<"===ENTER THE FIRST NAME TO MODIFY: ";cin>>nminfo.fname;
gotoxy(20,14);
cout<<"===ENTER THE LAST NAME TO MODIFY: ";cin>>nminfo.lname;
doc.setDOCfullname(nminfo);
break;
case '2':
gotoxy(20,13);
cout<<"===ENTER THE AGE TO MODIFY: ";cin>>ag;
doc.setDOCage(ag);
break;
case '3':
gotoxy(20,13);
cout<<"===ENTER THE HNO TO MODIFY: ";cin>>ad1.hno_street;
gotoxy(20,14);
cout<<"===ENTER THE CITY TO MODIFY: ";cin>>ad1.city;
gotoxy(20,15);
cout<<"===ENTER THE STATE TO MODIFY: ";cin>>ad1.state;
doc.setDOCaddress(ad1);
break;
case '4':
gotoxy(20,13);
cout<<"===ENTER THE MOBILE TO MODIFY: ";cin>>mb;
doc.setDOCmobileno(mb);
break;
case '5':
gotoxy(20,13);
cout<<"===ENTER THE EMAIL TO MODIFY: ";cin>>eid;
doc.setDOCemail(eid);
break;
case '6':
gotoxy(20,13);
cout<<"===ENTER THE SPECIALIZATION TO MODIFY: ";cin>>spec;
doc.setDOCspec(spec);
break;
case '7':
gotoxy(20,13);
cout<<"===ENTER THE MODIFY DOCTOR FEES: ";cin>>charges;
doc.setDOCfees(charges);
break;
default:
cout<<"a";//admin_menu();
}
fp.write((char *) &doc, sizeof(doctor));
}
fp.close();
}
//**********************add more rooms
void addnewroomstypes(char ename[15],int value)
{
int fpos=0;
roomlimit rm,tmp;
fstream objiff("roomlimit.dat",ios::binary|ios::in|ios::out);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
while(objiff.read((char *) &rm, sizeof(roomlimit)))
{
if(strcmp(rm.rname,ename)==0)
{ fpos=(int)objiff.tellg();
break;
}
}
objiff.seekp(fpos-sizeof(roomlimit),ios::beg);
tmp=rm;
34. tmp.limit=tmp.limit+value;
objiff.write((char *) &tmp, sizeof(roomlimit));
objiff.close();
}
void modify_roomtype(char ename[15],int value)
{
int fpos=0;
roomlimit rm,tmp;
fstream objiff("roomlimit.dat",ios::binary|ios::in|ios::out);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
while(objiff.read((char *) &rm, sizeof(roomlimit)))
{
if(strcmp(rm.rname,ename)==0)
{ fpos=(int)objiff.tellg();
break;
}
}
objiff.seekp(fpos-sizeof(roomlimit),ios::beg);
tmp=rm;
tmp.limit=tmp.limit-value;
objiff.write((char *) &tmp, sizeof(roomlimit));
objiff.close();
}
void billingmenu(char patno[15])
{
clrscr();
intromain();
ifstream fp;
fp.open("patients.dat",ios::binary);
patient st;
char ch2;
char newdesc[50];
dateinfo searchdt;
float newamount=0.00;
int flag=-1;
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&st,sizeof(patient)))
{
if(strcmp(st.getpno(),patno)==0)
{
flag=1;
//fpos=(int)fp.tellg();
break;
}
}
fp.close();
if(flag==1)
{
//fp.seekp(fpos-sizeof(patient),ios::beg);
st.display_patient_rectangle();
gotoxy(20,13);
cout<<"==========PATIENTS'S BILLS MENU====================";
gotoxy(22,14);
cout<<"1.ADD NEW BILL";
gotoxy(22,15);
cout<<"2.MODIFY BILL DISCRIPTION DATE WISE";
gotoxy(22,16);
cout<<"3.MODIFY BILL AMOUNT DATE WISE";
gotoxy(22,17);
cout<<"Please Enter Your Choice (1-3) ";
gotoxy(22,22);
35. //**********************************************************
ch2=getche();
clrscr();
intromain();
st.display_patient_rectangle();
switch(ch2)
{
//*****************************
case '1':
addnewbill(patno);
break;
case '2':
clrscr();
intromain();
gotoxy(12,14);
cout<<"Enter the change description details:";
cin.ignore();
cin.getline(newdesc,50);
cout<<"Date Of Bill to search:";
gotoxy(30,15);
cin>>searchdt.dd;
gotoxy(35,15);
cout<<"/";
gotoxy(40,15);
cin>>searchdt.mm;
gotoxy(45,15);
cout<<"/";
gotoxy(50,15);
cin>>searchdt.yy;
mob_billdesc(patno,searchdt,newdesc);
break;
case '3':
clrscr();
intromain();
gotoxy(12,14);
cout<<"Enter the change Amount:";
cin>>newamount;
cout<<"Date Of Bill to search:";
gotoxy(30,15);
cin>>searchdt.dd;
gotoxy(35,15);
cout<<"/";
gotoxy(40,15);
cin>>searchdt.mm;
gotoxy(45,15);
cout<<"/";
gotoxy(50,15);
cin>>searchdt.yy;
mob_billamount(patno,searchdt,newamount);
break;
} }}
void mob_billdesc(char patno[15],dateinfo dt,char desc[50])
{
billing billobj;
fstream fp;
dateinfo tmpdate;
int flag=-1,fpos=0;
fp.open("bills.dat",ios::binary|ios::in|ios::out);
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&billobj,sizeof(billing)))
{ tmpdate=billobj.getdate();
if((strcmp(billobj.getpno(),patno)==0) && (dt.dd==tmpdate.dd && dt.mm==tmpdate.mm && dt.yy==tmpdate.yy))
{
flag=1;
36. fpos=(int)fp.tellg();
break;
}
}
if(flag==1)
{
fp.seekp(fpos-sizeof(billing),ios::beg);
billobj.setbilldetails(desc);
fp.write((char *) &billobj, sizeof(billing));
fp.close();
}else
{
gotoxy(15,15);
cout<<"Record not found!!!!";
fp.close();
}
} //**************add new bill
void addnewbill(char patno[15])
{
clrscr();
intromain();
dateinfo dt;
char detail[45];
float amt=0.00;
gotoxy(5,13);
cout<<"Enter the bill details:";
cin.ignore();
cin.getline(detail,45);
cin.ignore();
gotoxy(5,14);
cout<<"Enter the amount:";
cin>>amt;
gotoxy(28,15);
cout<<"DateOfBill:";
gotoxy(30,16);
cin>>dt.dd;
gotoxy(35,16);
cout<<"/";
gotoxy(40,16);
cin>>dt.mm;
gotoxy(45,16);
cout<<"/";
gotoxy(50,16);
cin>>dt.yy;
createbillother(patno,detail,dt,amt);
}
//**************add new bill
void mob_billamount(char patno[15],dateinfo dt,float amt)
{
billing billobj;
fstream fp;
dateinfo tmpdate;
int flag=-1,fpos=0;
fp.open("bills.dat",ios::binary|ios::in|ios::out);
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&billobj,sizeof(billing)))
{ tmpdate=billobj.getdate();
if((strcmp(billobj.getpno(),patno)==0) && (dt.dd==tmpdate.dd && dt.mm==tmpdate.mm && dt.yy==tmpdate.yy))
{ flag=1;
fpos=(int)fp.tellg();
break;
}
}
if(flag==1)
42. REQUIREMENTS
HARDWARE REQUIRED
• Printer, to print the required documents of the project
• Compact Drive
• Processor : intel
• Ram : 512 MB or more than 512MB
• Harddisk : 80 GB or more than 80GB.
SOFTWARE REQUIRED
• Operating system : Windows XP
• Turbo C++, for execution of program and Ms word, for
presentation of output.
43. ADVANTAGES
• Patients do not need to wait in long queues.
• This software reduces paper work.
• It is easy to handle Patients as well as the doctor’s record.
• This software saves the time.
• Information of the patients and doctors stores permanently.
DISADVANTAGES
• This system suitable for only small level hospitals.
• Online facility is not available.
44. CONCLUSION
This software is efficient in maintaining patient’s details and
can easily perform operations of patient’s entry and discharge
records. This software also reduces the work load of the entry
system as they know how many patients are there and the
detail information about the availability of Doctors.
45. SYSTEM DESIGN
Then we began with the design phase of the system. System design is a solution, a
“HOW TO” approach to the creation of a new system. It translates system
requirements into ways by which they can be made operational. It is a
translational from a user oriented document to a document oriented
programmers. For that, it provides the understanding and procedural details
necessary for the implementation. Here we use Flowchart to supplement the
working of the new system. The system thus made should be reliable, durable and
above all should have least possible maintenance costs. It should overcome all the
drawbacks of the Old existing system and most important of all meet the user
requirements.
46. BIBLIOGRAPHY
The C++ Programming Language , 3rd Edition / Stroustrup Addison-Wesley.
C++ Primer, 3rd Edition / Lippman and Lajoie Addison-Wesley.
The Scott Meyers series, Addison-Wesley:
Effective C++ : 50 Specific Ways to Improve Your Programs and Designs, 2nd Edition
More Effective C++ : 35 New Ways to Improve Your Programs and Designs
and Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library
Beginners' C++ Course, 3rd Edition Ron Wein