google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
486 stars 287 forks source link

Add dropdown list support in the sdc library #153

Closed jingtang10 closed 3 years ago

jingtang10 commented 3 years ago

This should make use of the extension item control: http://hl7.org/fhir/uv/sdc/2019May/rendering.html#control-appearance

joiskash commented 3 years ago

@jingtang10 Suppose there is no item-control extension in the questionnaire.item, would this be the default widget for choice type questions?

jingtang10 commented 3 years ago

I think it makes sense for this to be default as opposed to radio button. We can also define a heuristic that says if the number of items is less than 3 or 4 we use radio button instead. But we don't have to do that now. Default to this is fine. FYI @fredhersch .

jingtang10 commented 3 years ago

Perhaps use this as an example as well: https://www.hl7.org/fhir/questionnaire-example-bluebook.html

It's a good exmaple becuase it doesn't use valuesets for the choices questions.