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
484 stars 285 forks source link

Choice item answer lookups via "contained" ValueSet answerOptions within Questionnaire #612

Closed fredhersch closed 3 years ago

fredhersch commented 3 years ago

Is your feature request related to a problem? Please describe. Currently, the choice item controls only works for inlined answerOptions.

Describe the solution you'd like

[1] For a Questionnaire that has an expanded "contained" ValueSet

Describe alternatives you've considered Inlined answerOptions already supported

Additional context

fredhersch commented 3 years ago

@aditya-07 This looks like relevant context http://hl7.org/fhir/R4/questionnaire.html#choices

jingtang10 commented 3 years ago

for this - @fredhersch and @litlfred do we have an example of expanded valueset in contained? @aditya-07 couldn't find any. at the moment we only have non-expanded valuesets in the contained resources list of a questionnaire.

aditya-07 commented 3 years ago

@fredhersch @litlfred openhie-covid-case-report.json has contained sets but all of them have compose instead of the expanded CodeSystem.

fredhersch commented 3 years ago

I see the problem @aditya-07 .. We will need to generate our own example. Maybe we can add something simple to an existing one for Yes/No? Happy to have a look at this tomorrow.