Giter Site home page Giter Site logo

Comments (2)

cames-be avatar cames-be commented on June 18, 2024

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):

  1. In the CustomFluentPathFunctions, the call _st = new SymbolTable().AddStandardFP(); needs to be changed to _st = new SymbolTable().AddStandardFP().AddFhirExtensions();
  2. 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);
  3. 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.

brianpos avatar brianpos commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.