Skip to content

KYP feature implementation and patient fetch flow

Sahasra Reddy requested to merge knowyour-patient into develop

📌 Purpose

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

🔄 Medical Camp Workflow Fit

KYP data is treated as camp-specific, not permanent history

Improves:

Consultation readiness

Time efficiency for doctors

Structured patient intake during high-volume camps

🖥️ UI & Experience

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

️ Technical Scope

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

🚫 Not Included

No backend changes

No changes to core patient registration logic

No redesign of existing volunteer or doctor dashboards

📝 Notes for Review

Please review from a medical camp usability perspective

Focus on:

Simplicity for volunteers

Information usefulness for doctors

Smooth integration into existing camp flow

Edited by Sahasra Reddy

Merge request reports

Loading