Hospital Management Bikram

Embed Size (px)

Citation preview

  • 8/8/2019 Hospital Management Bikram

    1/30

    TERM PAPER

    ON

    Topic: Hospital Management System

    Submitted to: Submitted by:

    Ms. Sunandha Dhawan Bikramdeep Singh

    CSE(LECT)

    B.Tech CSE(HONS)

    REGD NO:-10803188

    ACKNOWLEDGEMENT:-

  • 8/8/2019 Hospital Management Bikram

    2/30

    A Synopsis as this would not have been written without the significant

    inputs and efforts of many people. I would thus like to first thank Ms.

    SUNANDHA DHAWAN LECT, for his guidance and help during the

    course of the making of this Synopsis. Without his support this

    synopsis would have not been made.

    I would also like to thank Bikramdeep Singh Shahi for

    helping with the correct format of the synopsis. It is his contribution

    that has led to a clear and more readable form of this manuscript.

    Though full care has been taken, I welcome any sug

    regarding thework.

    My special thanks to my parents and god who have helped me indeveloping innovative ideas.

    THANKING YOU

    ANKUR AGGARWAL

    WITHOUT HER COOPERATION IT WOULD HAVE BEE

    IMPOSSIBLE FOR ME TO COMPLETE THIS PROJECT.

    TEACHER SIGNATURE

  • 8/8/2019 Hospital Management Bikram

    3/30

    INTRODUCTION:-

    We all know that hospital is a place where people come and get the

    treatment for their diseases. Its a place which should be kept clean

    and hygienic and should be managed properly. So one needs to have a

    proper management system and for that computer is the prime

    requirement.

    Maintaining the records of such large number of patients is not

    possible on paper as its time consuming, requires more labour and

    theres always a chance of misplacing the data. So here computer

    plays a vital role.

    It manages the system so well that one can easily read, write, edit and

    delete the information of a person and that too in minutes. Once the

    information is entered the record is managed easily and is kept

    updated, which is a bit impossible to do on paper.

    In simple words each and everything can be done on it in less time and

    its quite easy to manage and handle and requires less lab

    Therefore projects like this are required to do the needful job.

    So managing such huge systems without computer these days is

    impossible and one can say its the basic necessity of today.

  • 8/8/2019 Hospital Management Bikram

    4/30

    SOURCE CODE

    /****************************************************************

    Hospital Management System

    -By BIKRAMDEEP SHAHI

    ****************************************************************/

    #include#include#include#includeclass all{private:struct address{int house;char street[30];char city[30];

    char state[30];char country[30];

    };struct age{int day;int month;int year;

    };struct patient_info{char name[50];address AD1; //nested structure implementedage A1; //nested structure inplemented

  • 8/8/2019 Hospital Management Bikram

    5/30

    int martial_status;int reg_no;int bld_group;int sex;

    }PI[100];int task;protected:void enter_patient_info();void show_patient_detail();public:void software_detail();void tasks();

    char answer;char answer1;char ch;int serial;

    };

    class date{

    private:int date;int month;int year;

    public:void enter_date();void show_date();

    };

    class dob{private:struct dob1{int date;

  • 8/8/2019 Hospital Management Bikram

    6/30

  • 8/8/2019 Hospital Management Bikram

    7/30

    printf("***HOSPITAL MANAGEMENT SOFTWARE***");printf(" By BIKRAM SHAHI ");printf(" **Hospital Management Tasks**");

    printf("**************************************************");

    printf("Please select a task to do....");printf("1. Enter a new patient information .");printf("2. View detail of existing patient .");printf("3. View detail about the program .");printf("4. Exit from the program .");//other function remainprintf("Enter your task serail :");scanf("%d",&task); //cin>>task;

    switch(task){case 1:{

    A1.enter_patient_info();break;

    }case 2:{

    A1.show_patient_detail();

    break;}case 3:{

    A1.software_detail();break;

    }case 4:{

    clrscr();printf("Thank You for trying this program !!!");

    printf(" This is the end of program....");printf"Press any key to exit.....");getch();exit(0);break;

    }

  • 8/8/2019 Hospital Management Bikram

    8/30

    default:{clrscr();printf("Invalid task serial .");printf("Press any key to continue....");

    getch();clrscr();A1.tasks();

    }}

    }

    void all::enter_patient_info()

    {clrscr();answer='y';if(count==0){serial=1;}else

    {i=serial;}for(i=serial;answer=='y'||answer=='Y';i++){PI[i].reg_no=i;temp=serial;printf(" ***ENTERING INFORMATION FOR PATIENT SERIAL

    NUMBER ",i);

    cin.get(ch);printf(" Registration Number:",P[i].reg_no);

    printf("Enter the name of patient :";clreol();cin.getline(PI[i].name,50);printf("Sex (1-Male 2-Female) :";

  • 8/8/2019 Hospital Management Bikram

    9/30

  • 8/8/2019 Hospital Management Bikram

    10/30

    cin.get(ch);printf("Martial status(1-Married,2-Not Married ):");if(count!=0){

    clreol();}cin>>PI[i].martial_status;while(PI[i].martial_status2){printf("Invalid input for martial status .");printf("Enter a valid martial status :");clreol();

    cin>>PI[i].martial_status;}cin.get(ch);if(count!=0){clreol();

    }clreol();

    printf("Blood group :");clreol();printf("1. A+ ");clreol();printf("2. A- ");clreol();printf("3. B+ ");clreol();printf("4. B- ");

    clreol();printf("5. AB+ ");clreol();printf("6. AB- ");clreol();printf("7. O+ ");

  • 8/8/2019 Hospital Management Bikram

    11/30

    clreol();printf("8. O- ");clreol();printf("Enter :");

    clreol();cin>>PI[i].bld_group;switch(PI[i].bld_group){case 1:case 2:case 3:case 4:

    case 5:case 6:case 7:case 8:{

    break;}

    default:{

    while(PI[i].bld_group!=1&&PI[i].bld_group!=2&&PI[i].bld_group!=3&&

    PI[i].bld_group!=4&&PI[i].bld_group!=5&&PI[i].bld_group!=6&&PI[i].bld_group!=7&&PI[i].bld_group!=8)

    {clreol();printf("Invalid input !");printf("Blood Group :");

    clreol();cin>>PI[i].bld_group;}break;

    }}

  • 8/8/2019 Hospital Management Bikram

    12/30

    cin.get(ch);printf("Want to enter information for another patient ? ");clreol();scanf("%c",&answer);

    count++;serial++;}clrscr();A1.tasks();

    }

    void dob::enter_date()

    {clreol();printf("Date of birth");clreol();printf("Year :");clreol();clreol();cin>>DOB11[temp].year;

    if(DOB11[temp].year10000){do{clreol();printf("Invalid input for year !");printf("Please enter the year correctly :");cin>>DOB11[temp].year;

    }while(DOB11[temp].year10000);

    }clreol();printf("Month :");clreol();cin>>DOB11[temp].month;if(DOB11[temp].month12)

  • 8/8/2019 Hospital Management Bikram

    13/30

    {do{clreol();

    printf("Invalid input for month !");printf("Again enter the month :");clreol();if(count!=0){clreol();}cin>>DOB11[temp].month;

    }while(DOB11[temp].month12);}printf("Date :");clreol();switch(DOB11[temp].month){case 1:case 3:

    case 5:case 7:case 8:case 10:case 12:{

    cin>>DOB11[temp].date;while(DOB11[temp].date31){clreol();

    printf("Invalid date !");printf("Again enter the date :");clreol();cin>>DOB11[temp].date;}break;

  • 8/8/2019 Hospital Management Bikram

    14/30

    }case 2:{

    cin>>DOB11[temp].date;if(DOB11[temp].year%4==0)

    {while(DOB11[temp].date29)

    //for leap year{clreol();printf("Invalid date !");printf("Again enter the date :");clreol();

    cin>>DOB11[temp].date;}

    }else{while(DOB11[temp].date28)

    //for non-leap year{

    clreol();printf("Invalid date !");printf("Again enter the date :");clreol();cin>>DOB11[temp].date;}

    }break;

    }

    default:{cin>>DOB11[temp].date;while(DOB11[temp].date30){clreol();printf("Invalid date !");

  • 8/8/2019 Hospital Management Bikram

    15/30

    printf("Again enter the date :");clreol();cin>>DOB11[temp].date;

    }

    break;}

    } //end of switchclreol();

    }

    void date::enter_date(){

    printf("First of all I need the current date ...");printf("Year :");scanf("%d",&year);if(year10000){do{printf("Invalid input for year !");

    printf("Please enter the year correctly :");scanf("%d",&year);}while(year10000);}printf("Month :");scanf("%d",&month);if(month12){do

    {printf("Invalid input for month !");printf("Again enter the month :");scanf("%d",&month);

    }while(month12);}

  • 8/8/2019 Hospital Management Bikram

    16/30

    printf("Date :");switch(month){case 1:

    case 3:case 5:case 7:case 8:case 10:case 12:{

    cin>>date;while(date31)

    {printf("Invalid date !");printf("Again enter the date :");scanf("%d",&date);}break;

    }case 2:{

    scanf("%d",&date);if(year%4==0){while(date29) //for leap year{printf("Invalid date !");printf("Again enter the date :");scanf("%d",&date);}

    }else{while(date28) //for non-leap year{printf("Invalid date !");

  • 8/8/2019 Hospital Management Bikram

    17/30

    printf("Again enter the date :");scanf("%d",&date);}

    }

    break;}

    default:{cin>>date;while(date30){printf("Invalid date !");printf("Again enter the date :");

    scanf("%d",&date);}break;

    }} //end of switch

    }

    void date::show_date() //remove the goto ststements in this

    function{clrscr();printf("Hello.... It's ");printf("%d",date);rem=date%10;switch(date){case 11:

    case 12:case 13:case 14:case 15:case 16:case 17:

  • 8/8/2019 Hospital Management Bikram

    18/30

    case 18:case 19:case 20:{

    printf("th ");

    goto over;}

    }switch(rem){case 1:{

    cout

  • 8/8/2019 Hospital Management Bikram

    19/30

    break;}

    case 3:{printf("March , ");

    break;}

    case 4:{printf("April , ");break;

    }case 5:{

    printf("May , ");

    break;}

    case 6:{printf("June , ");break;

    }case 7:{

    printf("July , ");

    break;}case 8:{

    printf("August , ");break;

    }case 9:{

    printf("September , ");break;

    }case 10:{

    printf("October , ");break;

    }

  • 8/8/2019 Hospital Management Bikram

    20/30

    case 11:{printf("November , ");break;

    }

    case 12:{printf("December , ");break;

    }}cout

  • 8/8/2019 Hospital Management Bikram

    21/30

    printf("Male ");clreol();}if(PI[regis].sex==2)

    {printf("Female ");clreol();}printf("Blood Group : ");clreol();switch(PI[regis].bld_group){

    case 1:{clreol();printf("A+");break;}

    case 2:{clreol();printf("A-");

    break;}case 3:{

    clreol();printf("B+");break;}

    case 4:{clreol();

    printf("B-");break;}

    case 5:{clreol();cout

  • 8/8/2019 Hospital Management Bikram

    22/30

    ";break;}

    case 6:{

    clreol();cout

  • 8/8/2019 Hospital Management Bikram

    23/30

    printf("Not married ");clreol();}clreol();

    printf(" **ADDRESS**");clreol();

    printf("House no. : "); cout

  • 8/8/2019 Hospital Management Bikram

    24/30

    printf("Access Denied!!! ");printf("Please try again later. ");printf("Press any key to exit to main task menu...");getch();

    clrscr();A1.tasks();}clreol();printf("Sorry, the registration number is invalid .");printf("Press any key to continue....");getch();clreol();

    A1.show_patient_detail();}clreol();printf("Want to see information of another patient :");clreol();cin>>answer1;}while(answer1=='y'||answer1=='Y');clreol();

    clrscr();A1.tasks();}

    void dob::show_date(){cout

  • 8/8/2019 Hospital Management Bikram

    25/30

    case 16:case 17:case 18:case 19:

    case 20:{cout

  • 8/8/2019 Hospital Management Bikram

    26/30

    case 2:{printf("February , ");break;

    }

    case 3:{printf("March , ");break;

    }case 4:{

    printf("April , ");break;

    }

    case 5:{printf("May , ");break;

    }case 6:{

    printf("april ,");break;}

    case 7:{printf("July , ");break;

    }case 8:{

    printf("August , ");break;

    }case 9:{

    printf("September , ");break;

    }case 10:{

    printf("October , ");break;

  • 8/8/2019 Hospital Management Bikram

    27/30

    }

    case 11:{printf("November , ");

    break;}

    case 12:{printf("December , ");break;

    }}cout

  • 8/8/2019 Hospital Management Bikram

    28/30

    ]

    testing

    THE SOURCECODE DECLARED ABOVE FOR THE PROGRAMOF FACULTY INFORMATION & MANAGEMENT SYSTEM HASBEEN TESTED AND IT HAS BEEN FOUND THAT THE ABOVESOURCE CODE IS OKAY AND CORRECT.THE PROGRAMINVOLVES MANY TYPE OF CONVERSIONS. THECONVERSIONS HAS TO DONE CAREFULLY. THPROGRAMME IS DONE INTEGRATION VISE.

  • 8/8/2019 Hospital Management Bikram

    29/30

    FUTURE RESOURCES:

    Review performance and objectives with your

    manager.

    Focus on delivering quantifiable results.

    Link to goals and objectives.

    Monitor development needs & action plan.

    Resource for review monthly to ensure completion by

    year end.

    Add new development needs to list as identified.

    Build resume for potential job changes.

    First impression for potential hiring manager

  • 8/8/2019 Hospital Management Bikram

    30/30

    REFRENCES:

    BOOKS: LET US CANSICANSIC & TURBO CCOMPLETE REFRENCES