Add async processing capability to CMRI $package operation#1060
Open
Chris0296 wants to merge 8 commits into
Open
Add async processing capability to CMRI $package operation#1060Chris0296 wants to merge 8 commits into
Chris0296 wants to merge 8 commits into
Conversation
Implementation based on FHIR async model. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42ac6f1 to
064c473
Compare
|
Formatting check succeeded! |
c-schuler
requested changes
Jul 6, 2026
c-schuler
left a comment
Contributor
There was a problem hiding this comment.
This is looking good. I do have a couple change requests listed below.
Additionally, it does not appear that ImplementationGuidePackageProvider (r4) was converted and silently ignores Prefer: respond-async. Perhaps that is still TODO?
- extract detach call from submit
- preserve authorization flow for async processing path
- use @PreDestroy in place of shutdown hook
- Rename IT class prefix from *Test to *IT
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fa1b12f to
ef0a800
Compare
c-schuler
requested changes
Jul 7, 2026
c-schuler
left a comment
Contributor
There was a problem hiding this comment.
Looking better. A couple of regressions noted in the change requests
|
c-schuler
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Adds optional asynchronous handling to the CRMI $package operation so clients can decouple request from response and avoid front-end timeouts on long-running packages.
When a request includes
Prefer: respond-async, the operation returns 202 Accepted immediately with a Content-Location header and runs the packaging work on a background thread; the client polls that location for the result. Without the header, behaviour is unchanged (synchronous).This follows the general FHIR Async Request Pattern handshake. Note the CRMI spec does not define async for $package and its return type is a single Bundle, so completion returns the Bundle inline (a 200) rather than the bulk-data manifest/file-download model, which does not apply here.
Changes
Tests
Notes / limitations