Comments (2)
Even if this isn't the correct place, I wanted to post this for anyone that has issues getting the resolve() function to work with FhirPath. (Note, I've only tested this with STU3 and R4)
By default, the FhirPathCompiler only uses the standard FhirPath functions by invoking the AddStandardFP extension on the SymbolTable. To use the resolve(), hasValue(), memberOf(), and htmlchecks functions, the AddFhirExtensions() extension method must be called against the symbol table and passed to the FhirPathCompiler.
What this means for this project is that 3 changes need to be made (note I only looked at the WPF project):
- In the CustomFluentPathFunctions, the call _st = new SymbolTable().AddStandardFP(); needs to be changed to _st = new SymbolTable().AddStandardFP().AddFhirExtensions();
- In MainWindow.ButtonGo_Click a ScopedNode needs to be passed into the CompiledExpression. The resolve() function can only be used against a ScopedNode. This means that after creating a ScopedNode instance to wrap the ITypedExpression, the node must be passed into the CompiledExpression.
prepopulatedValues = xps(inputNav, evalContext);
becomes
ScopedNode node = new ScopedNode(inputNav);
prepopulatedValues = xps(node, evalContext); - The FhirPathProcessor.ProcessPrepopulatedValues needs to be modified to hande the ScopedNode. Instead of using ToFhirValues, use the ToPoco extension off of the ScopedNode (ITypedElement).
Feel free to ask me any questions regarding FhirPath or its implementation.
from fhirpathtester.
It's not supported as there is no way to setup a source server to resolve the content from.
(Though I guess could at least resolve within a contained resource/bundle)
from fhirpathtester.
Related Issues (10)
- JSON resources in 1.0.2 don't work HOT 4
- Conversion from JSON to XML doesnt work for STU3 or R4 HOT 1
- Store the history
- Setting to restrict versions of FHIR
- Better support for invariant testing HOT 1
- Support authentication when retrieving content from the web
- Errors with = and ~ for date and datetime HOT 1
- Does not allow version 4.0.1 in StructureDefinition
- Shows Observation.value as type MoneyQuantity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhirpathtester.