Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk import of FHIR Resources #184

Closed
Rkareko opened this issue Apr 26, 2024 · 2 comments · Fixed by #187
Closed

Bulk import of FHIR Resources #184

Rkareko opened this issue Apr 26, 2024 · 2 comments · Fixed by #187
Assignees
Labels

Comments

@Rkareko
Copy link
Contributor

Rkareko commented Apr 26, 2024

There is a use-case for importing bulk data from an external data source. There are around 8k Patient resources each having 5 or more related resources. The data is provided in form of a file containing a JSON Array of FHIR resources.

The current publishing tool has a few limitations : -

  1. The tool ingests data in form of files containing a single resource. To handle this uses case a pre-processing stage is required to extract the data into different file.
  2. The tool consolidates all the FHIR Resources into a single Transaction Bundle. This is a bottleneck when dealing with large amounts of resources.
@Wambere
Copy link
Contributor

Wambere commented Apr 30, 2024

The importer tool is better suited to do bulk imports, the Publish command on the other hand is more suited for publishing app configurations

I think the fastest way to handle this would be to add functionality into the importer that:

  • reads the file provided containing a JSON array
  • processes the data in chunks
  • build a payload and post to the server

LOE about 4 days

@Wambere
Copy link
Contributor

Wambere commented May 7, 2024

@Rkareko @allan-on just a heads up that the LOE for this might increase based on this comment

The current implementation can be used to test sorted datasets or sets with no references, or maybe we can play around with the chunk sizes to ensure it works? as we figure out how sort the whole file

@pld pld closed this as completed in #187 May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants