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

(feat) Support for static specific answers #87

Merged

Conversation

icrc-jofrancisco
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • [] My work includes tests or is validated by existing tests.

Summary

This PR introduces support for providing a filtered list of specific answers in configurations. Instead of fetching all possible answers for a question, the system now allows explicitly defining and serving a static set of answers.

When the answers property is specified, only the IDs listed will be considered as possible answers.

{
    "answers": [
        "concept-uuid-1",
        "concept-uuid-2"
    ]
}

Concepts labels are still fetched dynamically, requiring no static configuration.

Screenshots

N/A

Related Issue

N/A

Other

Thanks,

@NethmiRodrigo
Copy link
Contributor

Hey guys! Is this a fix that should get included in the release?

@icrc-jofrancisco
Copy link
Contributor Author

Hey guys! Is this a fix that should get included in the release?

If possible yes, that would be great! Thanks

@NethmiRodrigo
Copy link
Contributor

NethmiRodrigo commented Dec 11, 2024

Alrighty! Would it take long to get this approved and merged @icrc-jofrancisco? No hurry, of course :)

@icrc-jofrancisco icrc-jofrancisco merged commit f8fc00c into openmrs:main Dec 11, 2024
4 checks passed
@NethmiRodrigo NethmiRodrigo mentioned this pull request Dec 11, 2024
3 tasks
denniskigen pushed a commit that referenced this pull request Dec 18, 2024
Cuts a minor release of Fast Data Entry, `v1.1.0` with some new features and housekeeping.

Here's the draft changelog:

* (feat) Add ability to disable and set default values for answers in specificQuestions by @icrc-jofrancisco in #84
* (feat) Support for static specific answers by @icrc-jofrancisco in #87

* (chore) O3-4255: Bump @carbon/react to v1.17.0 by @dilankavishka in #85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants