diff --git a/C++/Clinic Management System/Patient_details.txt b/C++/Clinic Management System/Patient_details.txt new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/C++/Clinic Management System/Patient_details.txt @@ -0,0 +1 @@ + diff --git a/C++/Clinic Management System/Project-Preview/1.JPG b/C++/Clinic Management System/Project-Preview/1.JPG new file mode 100644 index 000000000..b9af26f9b Binary files /dev/null and b/C++/Clinic Management System/Project-Preview/1.JPG differ diff --git a/C++/Clinic Management System/Project-Preview/2.JPG b/C++/Clinic Management System/Project-Preview/2.JPG new file mode 100644 index 000000000..8086ab32b Binary files /dev/null and b/C++/Clinic Management System/Project-Preview/2.JPG differ diff --git a/C++/Clinic Management System/Project-Preview/3.JPG b/C++/Clinic Management System/Project-Preview/3.JPG new file mode 100644 index 000000000..aaabd8205 Binary files /dev/null and b/C++/Clinic Management System/Project-Preview/3.JPG differ diff --git a/C++/Clinic Management System/Project-Preview/4.JPG b/C++/Clinic Management System/Project-Preview/4.JPG new file mode 100644 index 000000000..0a22067eb Binary files /dev/null and b/C++/Clinic Management System/Project-Preview/4.JPG differ diff --git a/C++/Clinic Management System/Project-Preview/5.JPG b/C++/Clinic Management System/Project-Preview/5.JPG new file mode 100644 index 000000000..5bd83f028 Binary files /dev/null and b/C++/Clinic Management System/Project-Preview/5.JPG differ diff --git a/C++/Clinic Management System/Readme.md b/C++/Clinic Management System/Readme.md new file mode 100644 index 000000000..b82650357 --- /dev/null +++ b/C++/Clinic Management System/Readme.md @@ -0,0 +1,45 @@ +# Clinic Management System SOFTWARE +This is a very beginner-friendly project in the CPP that is clinic management. We will have the following functionality in this project:- +Add patient record(first name, last name, age, blood group, and many more) +Addin patient prescription +show data +Update data +Delete data + + +### TECH STACK USED: + **1)** C++ + simple function, switch case concept of cpp. + +### STEPS TO USE +Start by making a fork the [**Dev-Scripts**](https://github.com/abhijeet007rocks8/Dev-Scripts) repository. Click on the symbol at the top right corner + +**2.** Clone your new fork of the repository: +#### open git CMD +```bash +git clone https://github.com//Dev-Scripts +``` + + - Move to the executable folder + ```bash + cd Dev-Scripts/C++/Clinic Management System /Clinic_Management_System.cpp + ``` + - Compile and Run ```Clinic_Management_System.cpp``` file with any c++ compiler. + + Simply click Compile and Run + + ## Demonstration video : + https://user-images.githubusercontent.com/73521123/171165388-63988608-5686-4dc9-9c41-8e6e968dc684.mp4 + + +https://user-images.githubusercontent.com/73521123/171165407-a387fd3b-ccb1-47db-a34e-592df3d7203a.mp4 + + +https://user-images.githubusercontent.com/73521123/171165430-8b6fc65f-1f5f-45aa-9036-d26a42c73e8f.mp4 + + +## How to Run: + +- It is only able to run in dos systems. +- Run it through any C++ compiler in dos system. Best to use the recent ones. +- Run and enjoy it.🥲☺️ diff --git a/C++/Clinic Management System/clinic_management.cpp b/C++/Clinic Management System/clinic_management.cpp new file mode 100644 index 000000000..89ac47017 --- /dev/null +++ b/C++/Clinic Management System/clinic_management.cpp @@ -0,0 +1,428 @@ +#include +#include +#include +#include +using namespace std; +struct node +{ + char fname[20]; + char sname[20]; + char address[200]; + char contact[10]; + char cnic[100]; + int age; + char gender[8]; + char blood_gp[5]; + char disease_past[50]; + int id; + char symptom[500]; + char diagnosis[500]; + char medicine[500]; + char addmission[30]; + struct node *next; + bool diagnose; +}; +struct node *head,*lastptr; +bool check=true; +int arr[20]= {0},i=0; +bool check_id(int ch) +{ + for(int a=0; adiagnose=false; + cout<<"enter Patient ID"<>p->id; + + cout<<"enter Patient First name"<>p->fname; + cout<<"enter Patient Last name"<>p->sname; + + cout<<"enter Patient Age"<>p->age; + + cout<<"enter Patient Gender"<>p->gender; + + cout<<"enter Patient Blood Group"<>p->blood_gp; + + cout<<"enter Patient Contact "<>p->contact; + + fflush(stdin); + + cout<<"enter Patient CNIC"<cnic,100); + + fflush(stdin); + + cout<<"enter Patient Address"<address,1000); + + + p->next=NULL; + + arr[i]=p->id; + + + i++; + + if(check) + + { + + head=p; + + lastptr=p; + + check=false; + + } + + else + + { + lastptr->next=p; + lastptr=p; + } + + } + void show() + { + int n; + node *current=NULL,*prev=NULL; + prev=head; + current=head; + int ch; + cout<<"enter Patient ID"<>ch; + if(check_id(ch)) + { + while(current->id!=ch) + { + prev=current; + current=current->next; + } + cout<<"enter Patient First name"<fname<sname<id<age<gender<blood_gp<contact<cnic<address<diagnose) + { + cout<<"Enter Symptoms"<symptom<diagnosis<medicine<addmission<>ch; + if(check_id(ch)) + { + while(p->id!=ch ) + { + prev=p; + p=p->next; + } + p->diagnose=true; + cout<<"Enter Symptoms"<>p->symptom; + cout<<"Enter Diagnosis"<>p->diagnosis; + cout<<"Enter Medicines"<>p->medicine; + cout<<"Admit Required to Hospital?"<>p->addmission; + + } + + else + cout<<"ID is not Registered\n"; + + } + void deleteList() + { + int counter=0; + node *current=NULL,*prev=NULL; + //current =new node; + prev=head; + current=head; + int ch; + cout<<"Enter the ID: "; + cin>>ch; + if(check_id(ch)) + { + // temp=head; + while(current->id!=ch) + { + prev=current; + current=current->next; + } + prev->next=current->next; + free(current); + + + } + + else + cout<<"ID not present"<>id; + if(check_id(id)) + { + while(current->id!=id) + { + prev=current; + current=current->next; + } + update_menu(); + cout<<"choose number"<>ch; + if(ch==1) + { + cout<<"enter first name"<>current->fname; + } + + else if(ch==2) + { + cout<<"enter second name"<>current->sname; + } + else if(ch==3) + { + cout<<"enter ID"<>current->id; + } + else if(ch==4) + { + cout<<"enter age"<>current->age; + } + else if(ch==5) + { + cout<<"enter gender"<>current->gender; + } + else if(ch==6) + { + cout<<"enter blood group"<>current->blood_gp; + } + else if(ch==7) + { + cout<<"enter contact"<>current->contact; + } + else if(ch==8) + { + cout<<"enter CNIC"<>current->cnic; + } + else if(ch==9) + { + cout<<"enter address"<>current->address; + } + else if(ch==10) + { + cout<<"Enter 10 Symptoms"<>current->symptom; + } + else if(ch==11) + { + cout<<"Enter 11 Diagnosis"<>current->diagnosis; + } + else if(ch==12) + { + cout<<"Enter 12 Medicines"<>current->medicine; + } + else if(ch==13) + { + cout<<"Admit 13 Required to Hospital?"<>current->addmission; + } + } + else + cout<<"ID not present"<>i; + if(i==1) + u.add(); + else if(i==2) + u.diagnosis(); + else if(i==3) + u.show(); + else if(i==4) + u.deleteList(); + else if(i==5) + u.update_data(); + else if(i==6) + u.storeData(); + else if(i==7) + u.viewAllrecord(); + } + while(1); + + return 0; +}