Kulcare Docs
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

CategoryTested✅ Passed❌ Failed
Search UI550
Search Functionality505
Total1055

Detailed Test Results

Search UI ✅

#Test CaseResultNotes
1Search input✅ PassSearch input field works
2Filter UI✅ PassFilters work correctly
3Pagination UI✅ PassNext/Previous buttons work
4Empty state✅ Pass"No doctors found" message works
5Hospital search✅ PassExisting hospitals appear

Search Functionality ❌

#Test CaseResultNotes
6Search doctors by name❌ FAILNewly created doctor not appearing (Bug #30)
7Search doctors by specialty❌ FAILNewly created doctor not appearing (Bug #30)
8Search doctors by city❌ FAILNewly created doctor not appearing (Bug #30)
9Combined filters❌ FAILNewly created doctor not appearing (Bug #30)
10Hospital search (new)❌ FAILNewly created hospital not appearing (Bug #30)

Bug Found

Bug #DescriptionSeverityStatus
30Newly created doctors/hospitals not appearing in search🟡 HighOpen

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 CauseLikelihood
1Typesense index not updated on entity creation🔴 High
2Missing search indexing job🟡 Medium
3Entity status not set to 'active'🟡 Medium
4Missing required search fields🟡 Medium
5RLS policy filtering new entries🟡 Medium
6Stale search index cache🟡 Medium
7Invite acceptance not triggering index update🟡 Medium

Investigation Checklist

  • Check Typesense dashboard - are new doctors indexed?
  • Check identity.practitioners table - status field value
  • Check identity.facilities table - active flag
  • Check identity.practitioner_roles table - 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
  1. Add search indexing to entity creation/update flow
  2. OR create background job to sync DB with Typesense
  3. 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

SectionTest CasesBlocked Reason
Patient App Booking FlowTC-1 to TC-77No doctors to test
Doctor App Add PatientTC-1 to TC-28Cannot proceed to booking
Doctor App Booking FlowTC-1 to TC-47Cannot select doctor

Session Status: ✅ Complete (Testing blocked by Bug #30)

On this page