fix: Scope Consultation Check to Prescription Write Actions Only

🔀 MR: Scope Consultation Check to Prescription Write Actions Only

Summary

This MR fixes an issue where prescription viewing (GET) was incorrectly blocked during an ongoing consultation. The consultation status check is now scoped only to prescription write actions (POST / PUT).


Changes

  • Removed consultation status validation from GET /prescription flow
  • Retained validation for POST and PUT prescription actions
  • Added clear error messaging for blocked write actions
  • Handled API failure and unexpected status cases safely

Scope

  • Frontend-only logic update
  • No backend or API changes
  • No UX regressions for completed consultations

Testing

  • Verified GET /prescription works during all consultation stages
  • Verified POST/PUT blocked when consultation not completed
  • Verified POST/PUT allowed after consultation completion

Notes

  • Clean separation of read vs write logic
  • Regression-free fix

Merge request reports

Loading