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 296 forks source link

Support launchContext for other resource #2102

Closed FikriMilano closed 1 year ago

FikriMilano commented 1 year ago

Is your feature request related to a problem? Please describe. We cannot use launchContext other than these following resource: Patient, Encounter, Location, User, ResearchStudy. It would be useful to allow other resources to use launchContext.

Describe the solution you'd like Allow other resources to use launchContext.

Launch context information is passed to the QuestionnaireResponse evaluation process by the launching application. It will pass whatever contexts it is aware of. SDC systems SHOULD support all four of the contexts defined in this specification (e.g. Patient, Encounter, Location, User), but are free to support others.

Describe alternatives you've considered N/A

Additional context

Would you like to work on the issue? N/A

FikriMilano commented 1 year ago

@f-odhiambo @ellykits

FikriMilano commented 1 year ago

good first issue

jingtang10 commented 1 year ago

@FikriMilano is this a theoretical scenario or are you blocked on launch context being able to support a resource type not listed in the value set?

FikriMilano commented 1 year ago

Perhaps @ellykits would be the most suitable person to provide insights on this matter

ellykits commented 1 year ago

We would want to use Group resource in the launchedContext. Some of our Questionnaires use the Group as the subject.

FikriMilano commented 1 year ago

I'm working on this in PR https://github.com/google/android-fhir/pull/2025 cc @f-odhiambo