This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
New Imaging Request - required visit not enforced #2556
Labels
🐛bug
issue/pull request that documents/fixes a bug
imaging
in progress
indicates that issue/pull request is currently being worked on
Milestone
When requesting a new imaging, visit is required but a user can still save without choosing a visit. See #2552 (review)
🐛 Bug Report
When creating a new imaging request, a user should not be able to save without specifying a visit.
To Reproduce
Go to staging https://staging.hospitalrun.io/
Create a new patient and create one visit for this patient
Create a new imaging request leaving the visit field empty
Notice you are allowed to save even though the visit is marked as required
Expected behavior
User should not be able to save a New Imaging request without selecting a visit.
Reference
See how the Patient or Type field are handled and do the same
Your Environment
The text was updated successfully, but these errors were encountered: