Coder Social home page Coder Social logo

Comments (3)

ssvegaraju avatar ssvegaraju commented on July 21, 2024

Hi @nkundella,

thanks for raising this issue. Have you considered leveraging Binary resources to store these pdf files? We store the FHIR Resource for Binary Objects in DDB, but put the large binary data within S3. Would this work for your use case? You could then fill the extensions with references to these Binary resources.

Thanks for your time,
Sukeerth

from fhir-works-on-aws.

nkundella avatar nkundella commented on July 21, 2024

I did think of saving jsons to s3 and using the s3 urls in the extensions to refer back to the pdf files.
But in my case, if there is a case where we want to export the json and give to an organization. We have to get the pdf back from s3 and attach it to the extension and then send the complete json.
Would that be possible? or is there any other way?

from fhir-works-on-aws.

ssvegaraju avatar ssvegaraju commented on July 21, 2024

When using Binary resources in FWoA, performing a GET request will return a presigned S3 GET URL from which you can download the pdf from S3, and then attach it back to the json. If you want to avoid using Binary resources and instead store directly in S3, you could construct something similar and use a middleware to get the resource from S3 and attach it to the JSON. However, both of these approaches may increase latency time in requests as there is download time from S3 involved. Does this answer your question?

from fhir-works-on-aws.

Related Issues (7)

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.