Check the Live Demo Here
The First Aid is a Next.js application that provides a platform for emergency consent granting and healthcare management. This app allows users to securely grant remote consent in emergencies and includes an HRMS (Healthcare Resource Management System) for managing appointments, medical records, and essential healthcare information.
In situations where a patient cannot physically give consent, and no guardian is available, healthcare providers can use The First Aid app to generate a consent form. Registered nominees receive notifications and can remotely authorize the procedure by entering a secure MPIN, which legally authorizes the hospital to proceed with the necessary actions.
- Remote Consent Granting: Nominees receive a notification for emergency consent requests and can securely approve using an MPIN.
- HRMS (Healthcare Resource Management System):
- Appointment scheduling for patients
- Access to medical history, prescriptions, and vital medical data for healthcare providers
- User Dashboard: Patients can manage nominees and update personal information.
- Admin Dashboard: Healthcare administrators can manage patient records, schedule appointments, and monitor consent statuses.
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- UI Library: ShadCN
- Animations: Framer Motion
- Database: MongoDB
- Design: Initial designs created in Figma
To run the project locally, follow these steps:
- Node.js >= 16
- MongoDB instance (local or remote)
-
Clone the repository:
git clone https://github.com/dipesh2508/the-first-aid.git cd the-first-aid
-
Install dependencies:
npm install
-
Modify the
.env
file in the root directory and add the used environment variables.
To start the development server:
npm run dev
Open http://localhost:3000 in your browser to see the application.
The application uses MongoDB as its database. Set up your MongoDB instance and add your MongoDB connection string in the .env
file as MONGODB_URL
.
- User Registration: Patients create an account and add nominees (e.g., family members) to receive consent requests in emergencies.
- Emergency Consent: When a patient needs emergency assistance but cannot provide consent, the app notifies the nominee to approve the procedure by verifying their MPIN.
- Healthcare Management: Healthcare staff can view patient records, schedule appointments, and manage emergency consent requests through the HRMS features.