(refactor) O3-3297: Refactor select concept answers #289
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
Within AFE, the functionality for
select-concept-answers
is that the datasource is configured make a network request using the field'sconceptUuid
. However, in the event that an answer is selected within an associated field, the datasource will make a network request based on the uuid tied to the answer selected in the associated field, thus giving a different list in the dropdown with every different answer selected.This PR adds this functionality, enabling the dropdown to be populated based on a the answer selected in a referenced field.
It also enables
select-concept-answers
's list of answers to be populated by data from aCoded
concept.Sample schema:
Screenshots
Screen.Recording.2024-05-22.at.21.42.54.mov
Related Issue
https://openmrs.atlassian.net/browse/O3-3297
Other