KYP feature implementation and patient fetch flow
This merge request adds a Know Your Patient (KYP) pre-screening step to the EHRS medical camp workflow. The goal is to help volunteers capture essential patient information before doctor consultation, so doctors can understand patient context quickly during camps.
🩺 What This Feature Does
-Introduces a KYP Pre-assessment page for medical camps
-Allows volunteers to search patients using Book Number
-Automatically fetches existing patient details when available
-Collects basic workplace and lifestyle information in a simple form
Limits:
Maximum 20 questions
Do have NA if the answer is unknown
Ensures KYP information is visible to:
-
Volunteers
-
Doctors during consultation
KYP data is treated as camp-specific, not permanent history
Improves:
Consultation readiness
Time efficiency for doctors
Structured patient intake during high-volume camps
Uses the existing EHRS UI theme
No major layout or design changes
Focused on clarity, speed, and ease of use for volunteers
Handles common camp scenarios:
Patient not found
Incomplete records
Manual registration fallback
Frontend-only implementation
Reuses existing APIs and backend logic
No FastAPI, database, or schema changes
Changes are isolated and easy to revert if needed
🧪 Testing Performed
Patient lookup using valid and invalid Book Numbers
KYP form input validation (word limits, empty fields)
Visibility of KYP data during doctor consultation flow
No backend changes
No changes to core patient registration logic
No redesign of existing volunteer or doctor dashboards
Please review from a medical camp usability perspective
Focus on:
Simplicity for volunteers
Information usefulness for doctors
Smooth integration into existing camp flow