-
Notifications
You must be signed in to change notification settings - Fork 245
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
initialExpression extension for advanced form behaviour #1033
Comments
In order to implement this issue, the approach that I am going to use will be as follows.
Currently, CC: @f-odhiambo @ndegwamartin @maimoonak @jingtang10 @Tarun-Bhardwaj |
After Exploring the FhirPathEngine further, I came to know that it has multiple overloaded methods for evaluating FhirPath expressions. So, I modified the approach that I proposed before as follows,
|
Looking through the code of FHIRPathEngine https://github.com/hapifhir/org.hl7.fhir.core/blob/b075c5695ffa7267ef7010f8e560731d20a90383/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/FHIRPathEngine.java#L502 the code for |
@jingtang10 I checked the methods, they are actually almost identical and doing the same job. I can modify step one to use only this method |
Related to the expressions that are not currently supported, I posted a query here https://chat.fhir.org/login/#narrow/stream/179255-questionnaire/topic/FHIRPATH.20SDC.20implementation |
Dear, I just realized that initialExpression is part of the populate questionnaire and not a extension to be managed by the form filler, if this is not supported, then does the SDK support Observation-based Population or StructureMap based population ? thanks again for your work best regards |
We currently support Expression Based population - https://github.com/google/android-fhir/wiki/Structured-Data-Capture-Library#questionnaire-population This extension allows for adding an expression as part of the population e.g. time.now() versus setting the value of a field that was previously collected cc: @delcroip @jingtang10 |
@fredhersch does it means that this issue can be closed ? (all the related work will be usefull for other expressions) |
this issue can be closed after two things:
|
Is your feature request related to a problem? Please describe.
When rendering a Questionnaire via the data capture library, I need to be able to use an expression to set an initial value - see SDC Expressions
Describe the solution you'd like
SDC Library support for initialExpression extension using FHIRPath
For example:
For other examples, see sample questionnaire
Describe alternatives you've considered
CQL or Questionnaire population
The text was updated successfully, but these errors were encountered: