Test reportsSessions
Session 7: Patient App - Search & Discovery
Date: 2026-06-11 Module: Patient App - Search & Discovery URL: https://patient-stg.kulcare.com/search Tester: [Your Name]
Test Results Summary
| Category | Tested | ✅ Passed | ❌ Failed |
|---|---|---|---|
| Search UI | 5 | 5 | 0 |
| Search Functionality | 5 | 0 | 5 |
| Total | 10 | 5 | 5 |
Detailed Test Results
Search UI ✅
| # | Test Case | Result | Notes |
|---|---|---|---|
| 1 | Search input | ✅ Pass | Search input field works |
| 2 | Filter UI | ✅ Pass | Filters work correctly |
| 3 | Pagination UI | ✅ Pass | Next/Previous buttons work |
| 4 | Empty state | ✅ Pass | "No doctors found" message works |
| 5 | Hospital search | ✅ Pass | Existing hospitals appear |
Search Functionality ❌
| # | Test Case | Result | Notes |
|---|---|---|---|
| 6 | Search doctors by name | ❌ FAIL | Newly created doctor not appearing (Bug #30) |
| 7 | Search doctors by specialty | ❌ FAIL | Newly created doctor not appearing (Bug #30) |
| 8 | Search doctors by city | ❌ FAIL | Newly created doctor not appearing (Bug #30) |
| 9 | Combined filters | ❌ FAIL | Newly created doctor not appearing (Bug #30) |
| 10 | Hospital search (new) | ❌ FAIL | Newly created hospital not appearing (Bug #30) |
Bug Found
| Bug # | Description | Severity | Status |
|---|---|---|---|
| 30 | Newly created doctors/hospitals not appearing in search | 🟡 High | Open |
Root Cause Analysis
What Works ✅
- Search infrastructure (UI, filters, pagination) is functional
- Typesense integration is working for pre-existing data
- Filter logic correctly filters existing results
What's Broken ❌
- Newly created doctors/hospitals are NOT being indexed in Typesense
- Search API returns empty results for new entities
- Data sync between database and search index is broken
Search Architecture
[Database: identity.practitioners, identity.facilities]
↓
[Typesense Index]
↓
[Search API: /identity/practitioners/search]
↓
[Patient App Search UI]Possible Root Causes
| # | Possible Cause | Likelihood |
|---|---|---|
| 1 | Typesense index not updated on entity creation | 🔴 High |
| 2 | Missing search indexing job | 🟡 Medium |
| 3 | Entity status not set to 'active' | 🟡 Medium |
| 4 | Missing required search fields | 🟡 Medium |
| 5 | RLS policy filtering new entries | 🟡 Medium |
| 6 | Stale search index cache | 🟡 Medium |
| 7 | Invite acceptance not triggering index update | 🟡 Medium |
Investigation Checklist
- Check Typesense dashboard - are new doctors indexed?
- Check
identity.practitionerstable - status field value - Check
identity.facilitiestable - active flag - Check
identity.practitioner_rolestable - status field - Check if background job syncs DB → Typesense
- Check invite acceptance flow for search sync trigger
- Verify specialty, city, and other required fields are populated
Recommended Fix
- Add search indexing to entity creation/update flow
- OR create background job to sync DB with Typesense
- OR manually re-index all practitioners and facilities
Impact
- Patient cannot find newly registered doctors
- Cannot book appointments with new doctors
- All downstream booking flow tests blocked
- Revenue impact: Appointments cannot be booked
Testing Blocked
| Section | Test Cases | Blocked Reason |
|---|---|---|
| Patient App Booking Flow | TC-1 to TC-77 | No doctors to test |
| Doctor App Add Patient | TC-1 to TC-28 | Cannot proceed to booking |
| Doctor App Booking Flow | TC-1 to TC-47 | Cannot select doctor |
Session Status: ✅ Complete (Testing blocked by Bug #30)