-
Notifications
You must be signed in to change notification settings - Fork 71
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
(feat) O3-3230: add rule builder to form builder #279
Open
senthil-athiban
wants to merge
138
commits into
openmrs:main
Choose a base branch
from
senthil-athiban:feat/validation-rule-builder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
(feat) O3-3230: add rule builder to form builder #279
senthil-athiban
wants to merge
138
commits into
openmrs:main
from
senthil-athiban:feat/validation-rule-builder
+4,646
−14
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
senthil-athiban
force-pushed
the
feat/validation-rule-builder
branch
from
August 10, 2024 08:04
bf84218
to
800e66d
Compare
…ilder into feat/validation-rule-builder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Summary
Features Included:
required or not
.allow future dates
in the date form field.disallow decimal values
in numeric form field.historical expression
for a form field.hideWhenExpression
logic to render the form field conditionallyfailsWhenExpression
logic with custom error-message, which allow user to define a validation logic in the form field, and throws an custom error-message when condition failsdisableWhenExpression
, which gives ability to disable the form field, if the conditions are not satisfiedcalculateExpression
logic, which will perform calculation (BSA
,BMI
,EDD
,HeightForAgeZscore
) in the form field without require manual effort and minimize the calculation error.isDateBefore
,isDateAfter
), which will compare the base date with target date, and throws an error if the conditions are failed.ComboBox
component, which allow users to search answers from the list items as well as to enter a custom value if the answers are not found in the list itemsScreen Recorder
https://www.loom.com/share/c892130d32684f739f9b0c7759c033f1?sid=6c9a1da5-7f95-4e33-82de-b37d679080cc
Demo depicts the ability to add multiple rules for same question field dynamically
https://www.loom.com/share/cef02c0d362c4d3f92bc846527329656?sid=d5156068-8bc6-4cf5-b48a-ab3c5e1cc690
Related Issue
O3-3230
O3-3231
O3-3232
O3-3233
O3-3234
O3-3235
O3-3236
O3-3237
O3-3238
O3-3413
O3-3422
O3-3802
O3-3803
O3-3804
Other
Figma Design of rule builder:
Logged Data
For a specified rule containing multiple conditional logics
For a specified conditional logic that contains multiple conditions and actions: