feat(registrationcore): IPS continuity-of-care retrieval trigger#52
Open
mherman22 wants to merge 1 commit into
Open
feat(registrationcore): IPS continuity-of-care retrieval trigger#52mherman22 wants to merge 1 commit into
mherman22 wants to merge 1 commit into
Conversation
Adds a UI-facing REST endpoint to pull a patient's cross-facility summary once their identity is known: GET /ws/rest/v1/registrationcore/ips?patientUuid=<uuid> It reuses the existing RegistrationCoreService.importCcd (no duplicate service path). When xdssender.ipsEndpoint is configured, importCcd pulls the consolidated IPS; otherwise it falls back to the legacy CCD aggregation. Follows the existing BiometricsStatusController REST pattern. Depends on xds-sender routing CCD retrieval through the IPS mediator (IsantePlus/openmrs-module-xds-sender#113). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bcfbcf2 to
bb20642
Compare
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.
What
Adds the UI trigger for the roaming / continuity-of-care flow: once a patient's identity is known, the site pulls their consolidated International Patient Summary (IPS) from SEDISH (the SHR IPS mediator, resolved via OpenCR to the golden record) and returns it for display.
Mirrors the existing
importCcdbridge exactly.How
XdsCcdImporter.downloadAndSaveIps(+ impl) — bridge to xds-senderCcdService.downloadAndSaveIps(parallels the existing CCD bridge).RegistrationCoreService.importIps(patient)(+ impl) — mirrorsimportCcd.ContinuityOfCareController—GET /ws/rest/v1/registrationcore/ips?patientUuid=<uuid>triggers the pull and returns the stored IPS document (FHIR bundle JSON) for the UI to render. Follows the existingBiometricsStatusControllerREST pattern.102 insertions, 0 deletions; no changes to existing behavior.
Dependency
Requires xds-sender to expose
CcdService.downloadAndSaveIps: IsantePlus/openmrs-module-xds-sender#112 (merge/release that first).Related
Follow-up
The clinician-facing button (registrationapp/coreapps) that calls this endpoint is a small frontend change in the app module, not included here.
🤖 Generated with Claude Code