Code Monkey home page Code Monkey logo

Comments (3)

carvantes avatar carvantes commented on June 2, 2024 2

Hi,

We released support for the .extension() function on [email protected].

In the end it was not such a big change and we think that it is very helpfup for customers that are looking at the official FHIR examples and want to craft their own search parameters.

Although if you are already using the .extension.where(url = string) syntax, it is probably better to to keep it that way. Seeing that major IGs use that syntax and that .extension() is not in the base FHIRPath spec, leads us to think that the .extension.where(url = string) syntax has less compatibility issues with FHIR tools out there (although we haven't validated this).

from fhir-works-on-aws-search-es.

carvantes avatar carvantes commented on June 2, 2024

Hi @Lin-002,

The issue is with the FHIRPath expression:

DocumentReference.extension('http://example.org/fhir/StructureDefinition/participation-agreement')

Specifically, we don't support the .extension() function.

The workaround is to use the .extension.where(url = string) syntax instead. (.extension() is just a syntactical shortcut) i.e.

DocumentReference.extension.where(url = 'http://example.org/fhir/StructureDefinition/participation-agreement')

We'll evaluate supporting the .extension() function, but given that there's a simple workaround it is unlikely to be prioritized soon.
Also the IGs we've seen all use the .extension.where(url = string). Maybe that gives better compatibility since .extension() is not truly part of the base FHIRPath spec, but rather functionality added by FHIR.

Thanks for reporting the issue!


Some more context: FHIRPath as a whole has some very complex constructs (e.g. projection functions, tree navigation functions, etc.), but search parameters definitions tend to only use a limited set of simple FHIRPath constructs. Our implementation only understands a subset of FHIRPath that is enough to understand most search parameters.

We've tested our implementation with the following IGs

  1. US Core (hl7.fhir.us.core)
  2. CARIN Blue Button (hl7.fhir.us.carin-bb)
  3. Payer Data Exchange (hl7.fhir.us.davinci-pdex)
  4. DaVinci Payer Data Exchange US Drug Formulary(hl7.fhir.us.Davinci-drug-formulary)
  5. DaVinci PDEX Plan Net (hl7.fhir.us.davinci-pdex-plan-net)

Search parameters outside those IGs are likely to work, but there may be some that use complex FHIRPath syntax that are not supported.

from fhir-works-on-aws-search-es.

lquanx avatar lquanx commented on June 2, 2024

Thanks very much. I will try out where

from fhir-works-on-aws-search-es.

Related Issues (20)

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.