Skip to content

Driver Assignment & Authentication #44

@Josemiles-ctr

Description

@Josemiles-ctr

Description

Allow hospital admins to assign drivers to ambulances and create driver accounts.

Detailed Requirements

  • Hospital admin creates driver account:

    • Driver name
    • Driver email
    • Driver phone
    • License number
    • License expiration date
    • Driver photo (ID verification)
  • Assign driver to ambulance (can change):

    • Select ambulance
    • Select driver
    • Save assignment with confirmation
  • Driver receives invitation email with temporary password

  • Driver must change password on first login

  • Driver can view assigned ambulance

Technical Details

  • API: POST /api/drivers (create driver)
  • API: PUT /api/ambulances/:id (assign driver)
  • API: GET /api/drivers/:id (get driver details)
  • User Type: DRIVER in database
  • Email: Invitation with temporary password

Acceptance Criteria

  • Hospital admin can create driver account
  • All required fields validated
  • License expiration date in future
  • Driver photo uploaded successfully
  • Driver assigned to ambulance
  • Invitation email sent with password
  • Driver can login with temporary password
  • Driver forced to change password on first login
  • Driver can view ambulance assignment
  • Ambulance can be reassigned to another driver
  • Unit tests for driver creation (min 85% coverage)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions