GithubHelp home page GithubHelp logo

compatibility with google-fhir about fhir-py HOT 5 CLOSED

google avatar google commented on September 1, 2024 1
compatibility with google-fhir

from fhir-py.

Comments (5)

rbrush avatar rbrush commented on September 1, 2024 2

We have worked on some FHIRPath evaluation logic in Python here, but looking at what has been synced from our internal repo to GitHub, I see that the FHIRPath tests aren't there yet. I'll take a look and see if we can sync the tests to ensure FHIRPath is working properly, which would be a good example of how to use it as well. I'll try to get back to this in the next couple days.

from fhir-py.

rbrush avatar rbrush commented on September 1, 2024

Hi Heming,

For some background, the Python package structure in the previous "fhir" project was an artifact of internal structure and bazel-based builds that was unwieldy -- partly with the symptom that both "google" and "proto" show up twice in the package name, and it does a poor job of following Python conventions. So we ended up reorganizing the code into a much more Pythonic structure that will (hopefully) be easier to use going forward.

Unfortunately that does mean we needed to change the package location. The protocol buffers in both locations should still be wire-compatible though, so any data you might have persisted or transmitted in protobuf form in the previous code should be readable in the new one.

Not being familiar with your code base it's hard to give concrete guidance on pulling in an object that was moved to a new location, but if there are components/submodules that could basically do a find/replace to pull in the new protobuf location and apply the change in a single commit, then that might be the best approach to explore.

Apologies for the noise here; we had pushed this as pre-1.0 code so such changes were possible, but now that we have these in a more idiomatic location I think the structure should be stable.

from fhir-py.

Hotrank avatar Hotrank commented on September 1, 2024

thank you for your response. I think we will need some way to hack our proto generation to get this working.

Now a separate question: I see fhirpath is implemented in this package as well, does this package provide a way to evaluate a fhir proto against a fhirpath expression with this package? If so, what's the proper way of doing it?

from fhir-py.

rbrush avatar rbrush commented on September 1, 2024

We chatted offline, but for anyone else following along some FHIRPath examples over protocol buffers are here: https://github.com/google/fhir-py/blob/main/google-fhir-r4/README.md#fhirpath-support

from fhir-py.

Hotrank avatar Hotrank commented on September 1, 2024

Thanks very much for your help Ryan! Closing this issue now.

from fhir-py.

Related Issues (8)

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.