BUGFIX: Autocomplete dropdown was showing but items weren't selectable
PROBLEM: Clicking autocomplete suggestions didn't add complaints to table
ROOT CAUSE: btnAdd click handler was using old database-submit logic
instead of new client-side array management
SOLUTION: Simplified btnAdd to:
1. Take value from lookup input
2. Check if already exists (prevent duplicates)
3. Add to selectedDischargeComplaints array
4. Call renderDischargeComplaintTable() to refresh
5. Clear input and show success message
HOW IT WORKS NOW:
- Type complaint name → autocomplete dropdown appears
- Click suggestion → sets lookup input value
- btnAdd triggered → adds to array → table refreshes
- Complaint appears in table with editable Frequency/Severity/Duration
All inline editing works without database calls!