Giter Site home page Giter Site logo

Comments (2)

vivekmittal07 avatar vivekmittal07 commented on May 22, 2024

Current implementation intercepts all the requests and doesn’t pass the control to Spring native Rest controllers.
The interceptor assumes the incoming request is for a FHIR resource. It does the necessary access checks and then makes Http call the Fhir server.

  • Option1: Limit interceptor to FHIR resources
    We define the Servlet to intercept all the request at


    This can be changed to only intercept FHIR requests. One way to do that is add a "fhir" prefix to all the requests. eg - /fhir/Patient. We can configure the interceptor to handle all "fhir/*" requests. This will allow the clients to define custom endpoints using standard Spring components.
    Eg - Created this sample PR for testing this - #166

  • Option2(Hard no) : Allow custom endpoints in the existing interceptor.
    We will need to support custom datafetcher in the existing interceptor. Currently FHIR client is responsible for fetching data and we don’t have any abstraction on datafetcher.
    This is outside the scope of the design of the Access checker framework. Supporting this will make the logic very complex and won't provide clean interfaces for access check.

We can use Option1 to support custom endpoints in Fhir Gateway.
We might have to do the following to support this -

  • Use dependency injection to create core components. This will allow custom endpoints implementation to inject the required components.
  • Move some interceptor core logic to utils for custom endpoints.

We will have to look at what is the best interface to support option1 but the current example provides the technical feasibility of supporting this feature.

from fhir-access-proxy.

bashir2 avatar bashir2 commented on May 22, 2024

Thanks @vivekmittal07 for your analysis and proposals. We basically went ahead with Option 1 but with the caveats that we need to provide good support for basic core functionality like JWT verification and FHIR-server access (for custom endpoint implementations). For these a bunch of refactoring was needed which are covered in PR #182.

from fhir-access-proxy.

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.