How To Make Patient Admission Portal for a Hospital Management System
This is part-39 of my healthcare management system for a hospital. Its about patient admission for further assessment. A ipd /opd staff can make admit of a patient by choosing Floor,block, Room number, Category such as AC, Non AC, cabin, ward. after choosing requirement price will be automatically calculate according to room and category. When staff input UHID number of a pre registred patient. It will automatically fillup some details according to Patient UHID number. The UHID has been provided during first registration of a patient into the hospital portal .
This project Consist of 9 files.
.admission.php
2.admit_patient.php
3.admitted_patient.php
4.load_admission_patient_data.php
5.admitted_patient_details.php
6.create_bill.php
7.payment_handler.php
8.total_bill.php
9.view_total_bill.php
How to make this project
Step
1: Setting Up the Environment
- Install a Local Server: Use tools like XAMPP or WAMP to set up a local server
with PHP and MySQL support.
- Database Setup:
Create a MySQL database named hospital
and include a table patient with fields such as refNumber,
full_name, age, gender, emergency_contact, and status.
- File Structure:
Create a project folder with files such as:
- index.php: Main entry point.
- admission.php: Handles the admission logic.
- load_admission_patient_data.php: Fetches patient data.
- header.php, sidenav.php: Reusable UI components.
- styles.css: Custom styling for the dashboard.
Step
2: Designing the User Interface
Use Bootstrap to create a responsive
and user-friendly interface:
- Header and Navigation:
Include header.php and sidenav.php for a consistent look.
- Dashboard Layout:
Use a grid layout to display cards for:
- Admitting patients.
- Viewing admitted patients.
- Checking total bills received.
Step
3: Creating the Admission Form
- Use HTML <form>
elements to capture patient details.
- Include fields like UHID, department, doctor, room
type, and cost.
- Add a confirmation dialog to ensure data
accuracy before submission.
Step
4: Backend Logic for Patient Admission
- Admission Script (admission.php):
- Use prepared statements to securely handle database
queries.
- Validate user inputs and ensure patient information is
fetched correctly.
- Patient Data Fetching (load_admission_patient_data.php):
- Retrieve patient details based on the UHID (refNumber).
- Return the response in JSON format to integrate
seamlessly with the front end.
Step
5: Implement AJAX to fetch data without
refreshing the page: Step
6: Data Validation and Security Step
7: Enhancing User Experience Step
8: Integrating a Popup Notification System Step
9: Testing and Debugging
Post a Comment