Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling SDC Questionnaire Components #2728

Open
Victor-El opened this issue Nov 18, 2024 · 1 comment
Open

Styling SDC Questionnaire Components #2728

Victor-El opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@Victor-El
Copy link

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

2 participants