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
463 stars 241 forks source link

Bug Report: datacapture 1.1.0 - read-only mode renders empty questionnaire fragment #2446

Closed reinhild-merz closed 2 months ago

reinhild-merz commented 3 months ago

Describe the bug In new datacapture library (version 1.1.0) read-only mode for questionnaire isn't working correctly. When adding this setting to the builder (setIsReadOnly(true)) Questionnaire Fragment doesn't show the questionnaire.

Component datacapture 1.1.0

To Reproduce This issue can be replicated in Demo app by setting read-only mode in the QustionnaireFragement builder in the EditPatientFragment After adding the mode:

  1. Run the demo app
  2. Click on "Patient List"
  3. Click on any patient in the list
  4. Click on "Edit Patient"
  5. Observe no questionnaire rendered

Expected behavior As in previous(1.0.0) version of the lib, read-only mode should render questionnaire and responses (if provided) in a non-editable fashion.

Screenshots image

Smartphone (please complete the following information):

Would you like to work on the issue? No

santosh-pingle commented 3 months ago

Issue #1829 may have introduced this issue.

santosh-pingle commented 3 months ago

@reinhild-merz Can you verify if #2453 fixes the issue?

reinhild-merz commented 3 months ago

@santosh-pingle yes, #2453 worked well for me