├── README.txt ├── create_db.php ├── css ├── style.css ├── style01.css └── style02.css ├── error.php ├── images ├── del.gif ├── index.jpg ├── mod.gif └── search_button.gif ├── include └── dbinfo.php ├── index.php ├── insert_db.php └── login.php /README.txt: -------------------------------------------------------------------------------- 1 | This Repository has The "Database Management Application for Hospital Management System". Database is capable of maintaining a 2 | patient’s record, doctor’s record, record of other staff members and medical report and final payment for each patient. 3 | 4 | Technologies used: PHP and MySQL. 5 | 6 | 7 | Follow these steps to use the application: 8 | 9 | 1. Please run the file named “create_db.php” in your localhost to create the 10 | database tables. 11 | By doing this an admin “Username” and “Password” will be inserted in the 12 | database. 13 | 14 | Admin USERNAME: IT-1 15 | PASSWORD: IT-1 16 | Now use index.php file to login. 17 | If an error occurs that “Multiple logins not allowed” then run error.php and 18 | try again. 19 | 20 | 2. Now you will see the Account Details of Admin. 21 | 22 | 3. Following options are available in the interface: 23 | Home: 24 | o My account: To view the account details of the user who has logged in. 25 | o Logout: To logout from the current user. 26 | Patients: 27 | o View Details: To search patient details using Name or Patient ID and an advanced search option can also be used to search via Age,Blood Group, Gender or Accompanies’ Name. 28 | o Accompanies: To search Accompanying person of a patient using Patient Name or Patient ID. 29 | o Modify Details: To modify Patient Details using Patient ID. 30 | o Delete Details: To delete Patient Details using Patient ID. 31 | o Add new Details: To Add Details of a new Patient. Patient ID will be automatically generated starting from “P”. 32 | o Add Accompanies: To Add Details of Accompanying Person of a Patient. 33 | o Allot Doctor to a Patient: To Assign Doctor to a Patient entering Patient ID, Doctor ID and Date. 34 | Employee: 35 | o Doctors: To view details of all the Doctors in the Hospital. 36 | o Medical Staff: To view details of entire Medical Staff of the Hospital. 37 | o Administration: To view details of Administrative Staff of the Hospital. 38 | o Modify Details: To modify Employee Details using Employee ID. 39 | o Delete Details: To modify Employee Details using Employee ID. 40 | Add New Details: To Add Details of new Employee.Department-wise new Employee IDs will be generated. 41 | Medical Report (Billing): 42 | o Create Report: Create a new Medical Report of Patient of a particular Department. New Report ID will be generated starting from “R”. 43 | o View Report: To search Report using Report ID. 44 | o Modify Report: To Modify existing Report using Report ID. 45 | o Add Closing Date: To Add Closing date of a Report using Report ID. 46 | o Delete Report: To delete an existing Report using Report ID or Patient Name. 47 | Diagnosis: 48 | o View Tests: To view Tests done on a particular Report using Report ID. 49 | o Add Tests: To Add a new Test to an existing Report. 50 | o Add Result: To Add Result to an existing Test. 51 | o Delete Test: To delete a Test under particular Report using Report ID. 52 | Departments: 53 | o View Departments: To view Details of all existing Departments. 54 | o Add Department: To Add a new Department Details. 55 | o Modify Department: To modify Department Details using Department No. 56 | o Delete Department: To Delete a Department using Department No. 57 | Vehicle Details: 58 | o Search a Vehicle: To search a Vehicle using Type or Registration No. 59 | o Add a Vehicle: To Add details of a new Vehicle. Vehicle Number will be generated starting from “V”. 60 | o Discard a Vehicle: To discard a vehicle using Vehicle Registration No. 61 | o Allot a vehicle: To allot a Vehicle to a Patient. 62 | o Allotment Details: To view Allotment Details of a Vehicle using Registration No. or Type.o Un-allot a Vehicle: To un-allot a Vehicle from a patient using Registration No. 63 | Room Details: 64 | o Search Room: To search details of room using Type or Room ID. 65 | o Add Room: To add a new Room to Database. Room ID will be generated starting from “Z”. 66 | o Discard Room: To Discard a room from Database using Room No. or Type. 67 | o Allot a Room: To Allot a room to particular Patient. 68 | o Allotment Details: To view Allotment Details of rooms using Type or Room ID. 69 | o Allot Medical Staff Duties: To Allot duties to medical staff for a particular Room. 70 | o View Medical Staff Duties: To view details Medical Staff Duties using Room no. 71 | o Un-allot a Room: To un-allot a room using Room ID. 72 | -------------------------------------------------------------------------------- /create_db.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | article, aside, details, figcaption, figure, 2 | footer, header, hgroup, menu, nav, section { 3 | display: block; 4 | } 5 | 6 | body { 7 | line-height: 1; 8 | } 9 | 10 | ol, ul { 11 | list-style: none; 12 | } 13 | 14 | blockquote, q { 15 | quotes: none; 16 | } 17 | 18 | blockquote:before, blockquote:after, 19 | q:before, q:after { 20 | content: ''; 21 | content: none; 22 | } 23 | 24 | table { 25 | border-collapse: collapse; 26 | border-spacing: 0; 27 | } 28 | 29 | body { 30 | font: 13px/20px Warnock,"Lucida Grande", Tahoma, Verdana, sans-serif; 31 | } 32 | 33 | .container { 34 | margin: 80px auto; 35 | width: 640px; 36 | } 37 | 38 | .login { 39 | position: relative; 40 | margin: 0 auto; 41 | padding: 20px 20px 20px; 42 | width: 310px; 43 | background: white; 44 | border-radius: 3px; 45 | -webkit-box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3); 46 | box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3); 47 | } 48 | .login:before { 49 | content: ''; 50 | position: absolute; 51 | top: -8px; 52 | right: -8px; 53 | bottom: -8px; 54 | left: -8px; 55 | z-index: -1; 56 | background: rgba(0, 0, 0, 0.08); 57 | border-radius: 4px; 58 | } 59 | .login h1 { 60 | margin: -20px -20px 21px; 61 | line-height: 40px; 62 | font-size: 15px; 63 | font-weight: bold; 64 | color: #555; 65 | text-align: center; 66 | text-shadow: 0 1px white; 67 | background: #f3f3f8; 68 | border-bottom: 1px solid #cfcfcf; 69 | border-radius: 3px 3px 0 0; 70 | background-image: -webkit-linear-gradient(top, whiteffd, #eef2f5); 71 | background-image: -moz-linear-gradient(top, whiteffd, #eef2f5); 72 | background-image: -o-linear-gradient(top, whiteffd, #eef2f5); 73 | background-image: linear-gradient(to bottom, whiteffd, #eef2f5); 74 | -webkit-box-shadow: 0 1px whitesmoke; 75 | box-shadow: 0 1px whitesmoke; 76 | } 77 | .login p { 78 | margin: 20px 0 0; 79 | } 80 | .login p:first-child { 81 | margin-top: 0; 82 | } 83 | .login input[type=text], .login input[type=password] { 84 | width: 278px; 85 | } 86 | .login p.remember_me { 87 | float: left; 88 | line-height: 31px; 89 | } 90 | .login p.remember_me label { 91 | font-size: 12px; 92 | color: #777; 93 | cursor: pointer; 94 | } 95 | .login p.remember_me input { 96 | position: relative; 97 | bottom: 1px; 98 | margin-right: 4px; 99 | vertical-align: middle; 100 | } 101 | .login p.submit { 102 | text-align: right; 103 | } 104 | 105 | .login-help { 106 | margin: 20px 0; 107 | font-size: 11px; 108 | text-align: center; 109 | text-shadow: 0 1px #2a85a1; 110 | } 111 | .login-help a { 112 | color: #000000; 113 | text-decoration: none; 114 | } 115 | .login-help a:hover { 116 | text-decoration: underline; 117 | } 118 | 119 | :-moz-placeholder { 120 | color: #c9c9c9 !important; 121 | font-size: 13px; 122 | } 123 | 124 | ::-webkit-input-placeholder { 125 | color: #ccc; 126 | font-size: 13px; 127 | } 128 | 129 | input { 130 | font-family: "Lucida Grande", Tahoma, Verdana, sans-serif; 131 | font-size: 14px; 132 | } 133 | 134 | input[type=text], input[type=password] { 135 | margin: 5px; 136 | padding: 0 10px; 137 | width: 200px; 138 | height: 34px; 139 | color: #404040; 140 | background: white; 141 | border: 1px solid; 142 | border-color: #c4c4c4 #d1d1d1 #d4d4d4; 143 | border-radius: 2px; 144 | outline: 5px solid #eff4f7; 145 | -moz-outline-radius: 3px; 146 | -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12); 147 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12); 148 | } 149 | input[type=text]:focus, input[type=password]:focus { 150 | border-color: #7dc9e2; 151 | outline-color: #dceefc; 152 | outline-offset: 0; 153 | } 154 | 155 | input[type=submit] { 156 | padding: 0 18px; 157 | height: 29px; 158 | font-size: 12px; 159 | font-weight: bold; 160 | color: #527881; 161 | text-shadow: 0 1px #e3f1f1; 162 | background: #cde5ef; 163 | border: 1px solid; 164 | border-color: #b4ccce #b3c0c8 #9eb9c2; 165 | border-radius: 16px; 166 | outline: 0; 167 | -webkit-box-sizing: content-box; 168 | -moz-box-sizing: content-box; 169 | box-sizing: content-box; 170 | background-image: -webkit-linear-gradient(top, #edf5f8, #cde5ef); 171 | background-image: -moz-linear-gradient(top, #edf5f8, #cde5ef); 172 | background-image: -o-linear-gradient(top, #edf5f8, #cde5ef); 173 | background-image: linear-gradient(to bottom, #edf5f8, #cde5ef); 174 | -webkit-box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15); 175 | box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15); 176 | } 177 | input[type=submit]:active { 178 | background: #cde5ef; 179 | border-color: #9eb9c2 #b3c0c8 #b4ccce; 180 | -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2); 181 | box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2); 182 | } 183 | 184 | .lt-ie9 input[type=text], .lt-ie9 input[type=password] { 185 | line-height: 34px; 186 | } 187 | 188 | -------------------------------------------------------------------------------- /css/style01.css: -------------------------------------------------------------------------------- 1 | table { 2 | border-collapse: collapse; 3 | } 4 | td { 5 | border-bottom: 0.5px solid #CCCCCC; 6 | padding-right: 1em; 7 | text-align: left; 8 | } 9 | td 10 | { 11 | padding: 6px 4px; 12 | } -------------------------------------------------------------------------------- /css/style02.css: -------------------------------------------------------------------------------- 1 | .button { 2 | font: bold 11px Arial; 3 | text-decoration: none; 4 | background-color: #EEEEEE; 5 | color: #333333; 6 | padding: 2px 6px 2px 6px; 7 | border-top: 1px solid #CCCCCC; 8 | border-right: 1px solid #333333; 9 | border-bottom: 1px solid #333333; 10 | border-left: 1px solid #CCCCCC; 11 | } -------------------------------------------------------------------------------- /error.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prateeksinghal/Hospital-Management-System/a8452606cd4c3f88dd6265a71686fdab962e3d39/images/del.gif -------------------------------------------------------------------------------- /images/index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prateeksinghal/Hospital-Management-System/a8452606cd4c3f88dd6265a71686fdab962e3d39/images/index.jpg -------------------------------------------------------------------------------- /images/mod.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prateeksinghal/Hospital-Management-System/a8452606cd4c3f88dd6265a71686fdab962e3d39/images/mod.gif -------------------------------------------------------------------------------- /images/search_button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prateeksinghal/Hospital-Management-System/a8452606cd4c3f88dd6265a71686fdab962e3d39/images/search_button.gif -------------------------------------------------------------------------------- /include/dbinfo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 || Name: | $name |
| Employee ID: | $eid |
| Date of Birth: | $dob |
| Department: | $dept |
| Contact: | $contact |
| Gender: | $gender |
| Address: | $add |
Employee-ID: $id
Batch No.: $batch
Dept-No.: $dept
Address: $add
Contact: $contact
Employee-ID: $id
Dept-No.: $dept
Address: $add
Contact: $contact
Employee-ID: $id
Dept-No.: $dept
Address: $add
Contact: $contact