Skip to content

[PLAN] Expert Roles and Help Request Mapping

Ahmet Erdem Bulut edited this page Apr 17, 2026 · 1 revision

Expert Role System Design

Overview

This page documents the design decisions for the expert role system, defining how expert users are categorized, how help requests are mapped to expertise areas, and how the notification and filtering logic works as a result.


Expert Role Types

Expertise categories are predefined and grouped under help request categories. Each expert selects one or more expertise areas from this list during profile setup.

Help Request Category Expertise Areas
MEDICAL First Aid, Doctor/Nurse, Paramedic, Psychologist, Pharmacist
SHELTER Search & Rescue, Civil Engineer, Firefighter
TRANSPORT Driver, Logistics
FOOD Food Safety, Nutrition
OTHER General Volunteer (maybe)

Expertise areas are stored in the database and managed by admins through the admin panel. New areas can be added or removed without any code change or deployment.


User Assignment

  • Expert users select their expertise areas from the predefined list on their profile page.
  • Each selection is stored as an ExpertiseField record linked to the user.
  • An is_approved field is included on each record. It defaults to True for now. Admin-based approval will be introduced in a later milestone.
  • A user may hold multiple expertise areas across different categories.

Help Request to Expertise Mapping

Each help request belongs to one of the five categories: MEDICAL, SHELTER, TRANSPORT, FOOD, or OTHER. When a request is created, the system identifies which expertise areas fall under that category and targets only the experts holding those areas.

Example:

  • A MEDICAL help request → notifies experts with First Aid, Doctor/Nurse, Paramedic, Psychologist, or Pharmacist expertise in the same hub.

Notification Behavior

Condition Behavior
Approved expert with matching expertise in same hub Receives FCM notification immediately
Expert with matching expertise but not approved Does not receive notification
Expert in same hub but different expertise category Does not receive notification
No matching expert found in hub Requester is notified that no expert is currently available and the other experts in the hub will receive notifications

Filtering and Visibility

  • Help request list can be filtered by category on both frontend and mobile.
  • Expert profiles display their approved expertise areas.
  • On the help request detail page, the required expertise category is shown so experts can self-assess relevance before responding.

Future Considerations

  • Admin approval flow for expertise verification will be added alongside the admin panel.
  • Additional expertise areas can be added to the predefined list from the admin panel.
  • Hub hierarchy (city → district) may affect notification targeting in a future milestone.

Clone this wiki locally