A healthcare platform with patient records management and voice authentication.
backend-api/: Backend server (Flask)public/: Frontend files (HTML, CSS, JavaScript)
-
Navigate to the backend directory:
cd backend-api -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt -
Initialize the database:
python init_db.py -
Run the server:
python run.py
The backend API will be available at http://localhost:5000
The frontend is static HTML/CSS/JavaScript and doesn't require any build steps.
-
Serve the
publicdirectory using any static file server. -
For development, you can use Python's built-in HTTP server:
cd public python -m http.server 8000
The frontend will be available at http://localhost:8000
-
Unified Login System
- Tabbed interface for patient and doctor/hospital login
- Distinct visual styling for each user type
-
Voice Authentication
- Patients can use voice recognition for enhanced security
- Voice patterns are stored and verified against hospital records
-
Patient Records Management
- Upload and manage medical records
- View and download records
- Secure access to patient information
-
Responsive Design
- Works seamlessly on desktop and mobile devices
- Intuitive layout adapts to different screen sizes
POST /auth/signup/<user_type>: Register a new user (patient or hospital)POST /auth/login: Login and get JWT tokenGET /auth/profile: Get current user profilePUT /auth/profile: Update user profile
GET /records/list: List all recordsGET /records/patient/<patient_id>: Get records for a specific patientGET /records/<record_id>: Get a specific recordPOST /records/add: Add a new record (JSON)POST /records/upload: Upload a record fileGET /records/download/<record_id>: Download a record fileDELETE /records/delete/<record_id>: Delete a record
The application uses SQLite with the following tables:
users: Authentication informationpatients: Patient profileshospitals: Hospital profilesrecords: Medical recordsvoice_auth: Voice authentication data
- Users navigate to the login page from the homepage
- They select either "Patient" or "Doctor/Hospital" tab
- They enter their credentials and submit the form
- Upon successful authentication, they are redirected to the appropriate dashboard
- Patients can view their records and upload voice samples
- Hospitals can manage patient records and view analytics
- Patient records their voice by saying their full name
- The system extracts the name from the voice recording
- The name is compared against hospital records
- If verified, the voice file is uploaded to the patient's profile
- The patient can then use voice authentication for future logins
- Two-factor authentication for enhanced security
- Integration with hospital electronic health record systems
- Biometric authentication options (fingerprint, facial recognition)
- Accessibility improvements for users with disabilities