..................................C language.................................................................................... Projects........................................................................................................................................coding.........................................................................
..................................................Assume a structure called patient and necessary data members.
Write function to read patient name and mobile number
Write function to issue token. If token is not available, it should display appropriate message
Write a function to display patient name and mobile number given token number
Below C program implement Token System to book an appointment at doctor's clinic.
Everyday Doctor can check only 20 patients. Therefore, the below C program is implemented in such a way that it can book 20 appointments per day.
To do this 20 tokens numbered from 1 to 20 are used in the program.
This C program follows a bottom-up approach.
In the program Structure named patient is implemented that stores the data of patients and related necessary information.
The program contains two functions PatientInformation() and Display().
The PatientInformation() function performs tasks like taking the information of the patient's name, mobile numbers, and allocating the appropriate token number to the patients.
The Display() function shows the complete appointment list for the day that includes token number, patient's name, and mobile number.
C Program Source Code:
/*C Program to implement Token System for Doctor’s Clinic*/
/*Importing C Libraries*/
#include
#include
#include
#include
/*Create Structure named patient that contains information of token numbers, patient name, mobile no. and pointer next*/
/*User-defined function PatientInformation that takes input data of patients like name & mobile no and assign a token number (1-20) after appointment booked successfully*/
void PatientInformation(patient *pointer)
{
int tnumber;
char key;
/*First check token is available or not. If all 20 appointment are booked then token == 0 and display following message*/
if(token==0)
{
printf("\n\n\n Sorry! Today's all Appointments are full.\n\n Try to book an appointment for Tomorrow Early Morning at 8 AM\n\n\n");
}
/*Otherwise ask to enter the patient data like name and mobile number*/
else
{
if(pointer==NULL)
{
head = (patient*)malloc(sizeof(patient));
pointer = head;
pointer->next = NULL;
read: /*Lable read*/
printf("\n Name of the Patient: ");
Size: 183.37 KB
Language: en
Added: Sep 16, 2024
Slides: 16 pages
Slide Content
DOCTOR APPOINTMENT SYSTEM IN C Created By :-
Doctor Appointment System Submitted To :- Department : Training and Placement. Faculty : Submitted By :- Student name : Enrollment no . : Branch : Mechanical Semester : 5 th ( A )
Declaration :- I hereby declare that this project of “Doctor appointment system” has not been copied from anywhere but designed and developed by us through the help of our college faculties for which we are very thankful of them . Student name Enrollment no.
INDEX :- Introduction of the project Objective Requirement Forms Report Limitations Future enhancement Conclusion
Introduction of the project :- Project Title is “Doctor appointment system “ .( A project for scheduling a patient’s appointment , treatment and services . ) The need of healthcare services is growing with the increase in population and the number of patients who seek health care at hospitals , medical facilities and physicians practice has improved significantly. These bring a new set of challenge for the staff of the facility and administrators . Online scheduling software , a recent technological advancement , has made the booking process in hospitals easier for both patients and administrative staffs .
Objective :- It enables individuals to securely and conveniently book their appointments , requests online via a laptop , smartphone and other web connected devices . The staff spends less time on managing appointments and can therefore , use their free time for more urgent and vital tasks . The time savings made by the facility can translate automatically into monetary savings as a reduction in services and staff translates into a reduction in expenses .
Hardware and Software Requirements :- The platform used is C . Hence we decided to use Turbo C++ . For optional coding and easy debugging we use Turbo C++ and made explicit . cpp files. Hence forth for optimal usage of such software a windows based operating system preferably Windows 7/8/XP/10 must be there . Hardware Requirements :- Computer Processor : Pentium personal computer with minimum 90 MHz or higher processor . Memory : 256 MB RAM ( 128 MB recommended )
FORMS Form 1
Form 2
Form 3
Form 4
Form 5
Limitations :- 1. We are not maintaining the database for online procedure . 2. In every year you maintain database regularly and reset database every year .
Future Enhancement :- We provide the facility to add the application database online . Appointment facility will be provided online by android application . We will manage records also .
Conclusion :- An automated Appointment and scheduling software have been developed to address some of the challenges faced by medical workers. The benefits of implementing this technology would touch everyone involved n the scheduling process , as administrators and staff can conduct their task more efficiently and accurately ,while customers and clients have the ability to book their appointments more quickly and conveniently . The proposed system is aimed at simplifying the task of the patient and the doctor .It will reduce long waiting time for patients and eradicate long queue.