Skip to content

feat: add volunteer current camp status API for the today and future camps

Backend Changes – medical_camp_service.py

Overview

Introduced a new API to determine a volunteer’s current medical camp status. This API enables the frontend to dynamically decide which screen to render based on:

  • Camp availability (today or upcoming)
  • Volunteer registration (signup) status
  • Volunteer attendance status

Frontend Flow Handling

Based on the API response, the frontend will display:

  • No Camp Scheduled – When no current or future camp exists
  • Camp Registration Page – When a camp exists but the volunteer has not signed up
  • QR Code Attendance Screen – When signed up but attendance not marked
  • Volunteer Dashboard – When attendance is already marked

Implementation Details

  • get_volunteer_camp_status() now filters camps using camp_date >= today, excluding past/completed camps and prioritizing today or the nearest upcoming camp.
  • Returns full camp details (camp_id, camp_date, location) along with signup and attendance boolean flags.
  • Reuses existing signup and attendance logic from CampVisit.
  • If no current or future camp exists, returns signup = False and attendance = False. 1.creating a new end point for /volunteer/signup-status

Screenshot_from_2026-02-17_10-11-14

2.After volunteer can signup for camp then signup is changed to true

Screenshot_from_2026-02-17_10-17-15

3.After signup admin can mark the attendance for volunteer

Screenshot_from_2026-02-17_10-18-55

Merge request reports

Loading