Closed fredhersch closed 3 years ago
@jingtang10 @Tarun-Bhardwaj for triaging
Decision to implement as per the current spec:
"Answer is a Coding drawn from a list of possible answers (as with the choice type) or a free-text entry in a string (valueCoding or valueString)."
Will explore adding a default valueCoding system to the extension and then treating free-text options as valueCoding. @costateixeira to propose to SDC group
cc: @jingtang10, costateixeira
Is your feature request related to a problem? Please describe. Current SDC library does not support open-choice option
Describe the solution you'd like Able to provide open-choice as an item type. Specifying this will then implement the behaviour as per the specification
Additional context Here is a sample Questionnaire that uses open-choice options - https://openhie.github.io/case-reporting-hiv-vn/Questionnaire-hiv-case-report-questionnaire.json.html
There are two scenarios to support:
1. No list to select from: There are no choices to select from and open-choice just provides a text box and the answer is stored as a String
Ux designs
For option 1, this should just display a text field
For option 2, this should be a single choice set of options (drop down list or if repeats is true a set of checkboxes with an 'other' option.
Here are two designs: