Integrate with https://fhirpath-lab.com/FhirPath
https://github.com/brianpos/fhirpath-lab/blob/develop/server-api.md
Some comments from Brian Postlethwaite
These are the logical models for what data is in/out of the custom operation Simplified logical models for what data in the request/response.
But represented using fhir parameters resources. I'm trying to get real profiles for these to go with things too. The Abstract Syntax tree format isn't documented anywhere. I built it from the Firely engine, and mapped the fhirpath.js to that. In progress mapping the HAPI engine to it too. The tricky part is making it work with the "invert tree" format to make it more readable.
From https://github.com/brianpos/
Hey Ilya, I tried out the branch with the python engine in it and looks like it works reasonable well.
I did note that your results are coming out as a single result.
If a context expression comes through, it should return multiple results, one for each result from the context expression.
Also, you might like to append the version number of your engine in the string that you return for the evaluator (if you have one)
e.g. "valueString": "fhirpath-py" => "valueString": "fhirpath-py (x.y.z)"
This is from the HAPI engine
image.png
This is from yours
image.png