Sidheeq Thrissure
11/03/2025, 5:53 AMQuestionnaire.item (a question/input field) of type choice or open-choice where the options presented to the user are generated dynamically by a Medplum Bot.
For example, I want a "Select Lab Panel" field where the list of available lab panels is retrieved from an external system or generated based on complex logic (e.g., patient age, current date, etc.) by a Bot.
🚧 Current Challenge & Context:
1. I am primarily using the Medplum Provider App UI to render and fill out the Questionnaire. (This means the "custom frontend component" approach won't work easily).
2. I understand that for a standard Medplum form to display dynamic options, the options must come from a referenced ValueSet.
3. My current plan is to use a Bot to periodically update a specific ValueSet resource with the latest options.
Thanks in advance for your help!finnbergquist
11/03/2025, 11:19 PMfinnbergquist
11/03/2025, 11:29 PMQuestionnaire.item, you could dynamically populate the answerOption [] instead of using answerValueSetfinnbergquist
11/03/2025, 11:30 PMSidheeq Thrissure
11/04/2025, 10:48 AMSidheeq Thrissure
11/04/2025, 11:06 AMfinnbergquist
11/04/2025, 5:11 PM