-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add Reference class to display string function #1740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @omarismail94!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @omarismail94!
...java/com/google/android/fhir/datacapture/MoreQuestionnaireResponseItemAnswerComponentTest.kt
Show resolved
Hide resolved
@jingtang10 PTAL. I resolved your comment and also moved where the I wanted to come up with one function to combine both like this:
however, the logic becomes divergent. An example: in For Do we want to make what is displayed consistent, or is there a reason there is a difference between how |
I don't think they need to be different - please unify them. |
@jingtang10 Unified the functions. With regards to existing tests that I needed to change, I only had to change MoreAnswerOptionsTest; I had to change the display format of the Date |
datacapture/src/main/java/com/google/android/fhir/datacapture/MoreAnswerOptions.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed with @omarismail94 - will refactor and make context mandatory, and then maybe move the extension function to Type
instead.
implemented this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks omar!
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1735
Description
Add Reference type and obtain the field to display the string of on the UI.
Follow-up question: are there other class types we could be missing here other than
Reference
?Alternative(s) considered
N/A
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
Screenshots (if applicable)
device-2022-11-30-223358.mp4
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.