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
494 stars 295 forks source link

Styling SDC Questionnaire Components #2728

Open Victor-El opened 1 day ago

Victor-El commented 1 day ago

I am new to using Open Health Stack and the SDC library. I have been having some issues with replicating the exact UI as the image that I have attached below. I am looking forward to some suggestions on how to go about this. A sample questionnaire JSON file will be of great help. Image

jingtang10 commented 21 hours ago

Thanks for raising this. @Victor-El, this questionnaire from the catalog app: https://github.com/google/android-fhir/blob/master/catalog/src/main/assets/layout_default.json has some similar questions in your screenshot above. Please try it out. If you want to try the catalog app follow the instructions here: https://google.github.io/android-fhir/use/SDCL/Demo-app/

Question for you: in your phone number question, is the country code a fixed value or is it something the user can change?

You may want to take a look at this: https://github.com/google/android-fhir/blob/master/datacapture/src/main/java/com/google/android/fhir/datacapture/contrib/views/PhoneNumberViewHolderFactory.kt if you have specific requirements for phone numbers.