-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(lab): enforce the visit field when create lab #2559
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/Asi5tKLsXTrxsh3FjGBuY1XTqH6s |
Just had a quick peek @SamuelQZQ you might still be busy with this, it looks like the required message does not display yet? See report incident example showing all required fields messages if all of them are not filled in |
if (!lab.visitId) { | ||
labError.visit = 'labs.requests.error.visitRequired' | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a test should be added to cover this piece of functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the validate-lab.test.ts
already cover this right?
@blestab The visit field is implemented with the Any suggestion? Should I create a PR for the component Repo? |
@blestab @jackcmeyer Any response? |
@SamuelQZQ, sorry been offline. |
@blestab Sounds good. |
HospitalRun/components#689 has been created for you @SamuelQZQ |
@SamuelQZQ select component has been merged HospitalRun/components#690 |
@jackcmeyer Do you have time to have a look |
@SamuelQZQ sorry about delay, but the project is unfortunately back in a "frozen state". can you fix conflicts? thanks! |
Fixes #2557
Changes proposed in this pull request:
visit
field when saving the Lab.