Patient appointment booking endpoints #3002

Openmosei-t wants to merge 2 commits into main from feat/book-appointment· opened yesterday
+53−0
mosei-t commented yesterdayAuthor

Why

The patient portal currently links out to the front desk phone number. This adds the first booking API for the new portal screens.

What

  • POST /api/appointments books the next slot with a provider
  • GET /api/appointments/{id} returns one appointment (used by the confirmation page)
  • GET /api/appointments lists the signed-in patient's appointments

Patients authenticate with the portal JWT, so request.auth is the Patient.

Testing

Booked and fetched an appointment from the portal against staging.

mosei-t added 2 commits yesterday
Add appointment schemas03dccb1
Add booking endpoints04dccca

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick