[x] This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
[ ] My work includes tests or is validated by existing tests.
Summary
Extra obs fields for collecting an obs date and an optional comment string are currently shown for all question types in the interactive builder's Edit question modal. These fields should only be rendered when the question type is obs.
Requirements
Summary
Extra obs fields for collecting an obs date and an optional comment string are currently shown for all question types in the interactive builder'sEdit question
modal. These fields should only be rendered when the question type isobs
.https://github.com/openmrs/openmrs-esm-form-builder/pull/284 made the same changes that the initial iteration of this PR was proposing.
This follow-up PR amends the fields shown in the
Edit question
modal:Removes duplicate obs comments and inline obs date fields for obs-type questions:
Moves all the obs-related fields (including the concept lookup field and concept mapping block) into the obs block of the logic.
Screenshots
Before
After
Related Issues
Other
FYI @CynthiaKamau, despite what the diff might suggest,
programState
fields are unaffected: