android-fhir
android-fhir copied to clipboard
Add Launch and Submission Timestamps to QR
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2372
Description
PR adds QuestionnaireItemComponent
and QuestionnaireResponseItemComponent
for form launch and submission timestamps
Alternative(s) considered N/A
Type Feature
Screenshots (if applicable)
Checklist
- [x] I have read and acknowledged the Code of conduct.
- [x] I have read the Contributing page.
- [x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
- [x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
- [x] I have run
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project. - [ ] I have run
./gradlew check
and./gradlew connectedCheck
to test my changes locally. - [x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).
cc: @f-odhiambo @qiarie
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
@hamza-vd Please update the branch to latest.
@aditya-07 this is done
I think we should not implicitly do this for all Questionnaires as it might be undesirable to receive unexpected items in QuestionnaireResponse.
We should consider adding the flag to either DataCaptureConfig or via QuestionnaireFragment.args!
I don't think we should use items at all for this type of metadata. And if we use extension we can avoid adding additional configs too.
Any update here?
@jingtang10 As suggested there will be a change in the implementation. I will implement the following changes.
- The
authored
field will be used as a submission timestamp. - The launch-timestamp will be added as an extension to the
QuestionnaireResponse
thanks for creating this discussion @hamza-vd: https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/Ability.20to.20Capture.20Questionnaire.20Launch.20and.20Submit.20Timestamp