-
Notifications
You must be signed in to change notification settings - Fork 345
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 environment variables to FhirPath #2570
Comments
I'd also love to see this too. |
Also happy to contribute to this, as would love to see this type of capability also make implementing a proposed
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At this moment, it is possible to add constants to the SymbolTable so you can supply your own external values (just like functions) and refer to them from FhirPath.
However, it is also really useful to supply extrernal variables that can be different from invocation to invocation of a compiled fhirpath statement, variables that are specific for a single run of an expression.
We already pass in an
EvaluationContext
when we run an expression, so a natural extension point would be to make it possible to add context variables here, that can then be referenced from the FhirPath, e.g. with the normal % syntax.Alternatively, we could introduce our own syntax in FhirPath, but that requires changes to the parser and brings little added value.
The text was updated successfully, but these errors were encountered: