Skip to content
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

[DEA] Edit form rule #1508

Open
Tracked by #1614
mahalakshme opened this issue Feb 14, 2024 · 0 comments
Open
Tracked by #1614

[DEA] Edit form rule #1508

mahalakshme opened this issue Feb 14, 2024 · 0 comments

Comments

@mahalakshme
Copy link

mahalakshme commented Feb 14, 2024

As is:

Currently Edit form rule is supported only in mobile app. It doesn't work on DEA

AC:

  • The contract(input and output) of the rule should be same as like mentioned here
  • When user clicks on edit of a subject registration and if the rule returns true as the value for editable, user should be able to proceed further with editing the form
  • When user clicks on edit of a subject registration and if the rule returns false as the value for editable, show the translation of the message(in the messageKey) in the language configured by the user in the settings of DEA as a toast message like below in red. If translation not available, should show the message returned by rule itself.

Image

  • Applicable for allowing/disallowing edit of registration/encounter/program encounter/enrolment

Analysis notes:

The intention to not allow edit when sync attributes don't match can be achieved by the below:

  • Form element rule: but this executes only when editing
  • Form element group rule: currently error is not displaying though it accepts it as a parameter. Also executes only when editing.
  • Validation rule: Not working in DEA. Also error message appears only in the last page.
  • Edit form rule: Not yet supported in DEA. Seems to be the best option among the above.
@mahalakshme mahalakshme changed the title Edit rule on DEA [DEA] Edit rule Jul 26, 2024
@mahalakshme mahalakshme changed the title [DEA] Edit rule [DEA] Edit form rule Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Analysis Review
Development

No branches or pull requests

1 participant