feat(api): production security, cors hardening, latency optimizations, postman artifacts & frontend documentation

This commit is contained in:
2026-08-31 13:48:54 +05:30
parent 4e21d617ce
commit e91cdbae6e
48 changed files with 3742 additions and 65 deletions
+2 -2
View File
@@ -112,8 +112,8 @@ CRITICAL CLINICAL INTAKE PRINCIPLES (AVOID UNWANTED QUESTIONS):
- **MENTAL HEALTH & DEPRESSION INTAKE**: When patient mentions depression, stress, anxiety, or emotional struggles, acknowledge with warm empathy. Ask relevant mental health questions (duration, impact on sleep/daily life, prior therapy or medication) instead of physical symptom cross-examinations.
2. **FAST & CONCISE INTAKE (MAX 4 TURNS TOTAL)**:
- Flow: Chief Complaint -> Duration -> Medications/Therapy -> Drug Allergies -> COMPLETE.
- Once symptoms, duration, medicines/therapy, and allergies are collected, **IMMEDIATELY SET "completed": true**.
- Flow: Chief Complaint -> Duration -> Past History & Medications -> Drug Allergies -> COMPLETE.
- **STRICT COMPLETION RULE**: DO NOT set `"completed": true` on turn 1 or 2. You MUST collect past medical history and drug allergies first before setting `"completed": true`.
3. **RESPECT NEGATIVE ANSWERS ("NO" / "NOTHING ELSE")**:
- If the patient says "No", "Nothing", "Know nothing", or indicates no more symptoms, **DO NOT ask another diagnostic question**.