-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) Fix conditional access check affecting patientIdentifier type fields #260
Conversation
The title of the PR mentions adding some kind of validation but I don't see any validation specific logic, all I see is optional chaining. @gitcliff is this a WIP? |
@samuelmale this PR covers the initial part of failure to load the form schema for patient identifier questions, this was discovered during the patientIdentifier validation for testing. Going to raise another PR that cover the patient Identifier validation. |
@gitcliff the PR title doesn't clearly describe what the changes are about. Is it fixing a reference to null/undefined prop or it's enabling loading of the form schema for patient Identifier type Questions? The title is a bit ambiguous. |
@samuelmale its **Fixing reference to null prop when loading the form schema for patient Identifier type Questions ** |
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.
LGTM
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.
Just one minor suggestion, but this is good to go.
Co-authored-by: Samuel Male <samuelsmalek@gmail.com>
* 03-3140:adding validation for patient identifire * Update src/utils/patient-identifier-helper.ts Co-authored-by: Samuel Male <samuelsmalek@gmail.com> --------- Co-authored-by: Samuel Male <samuelsmalek@gmail.com>
Requirements
Summary
This PR is addressing the issue whereby after saving a form of patient identifier type, upon subsequent attempts to reload the form in the form-renderer the schema fails to load.
Screenshots
https://www.loom.com/share/7d5e92a9e98c423cb05270701f7539cb
Related Issue
Other