Skip to content

feat(registrationcore): IPS continuity-of-care retrieval trigger#52

Open
mherman22 wants to merge 1 commit into
IsantePlus:mainfrom
mherman22:feat/ips-continuity-of-care-trigger
Open

feat(registrationcore): IPS continuity-of-care retrieval trigger#52
mherman22 wants to merge 1 commit into
IsantePlus:mainfrom
mherman22:feat/ips-continuity-of-care-trigger

Conversation

@mherman22

Copy link
Copy Markdown

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 importCcd bridge exactly.

How

  • XdsCcdImporter.downloadAndSaveIps (+ impl) — bridge to xds-sender CcdService.downloadAndSaveIps (parallels the existing CCD bridge).
  • RegistrationCoreService.importIps(patient) (+ impl) — mirrors importCcd.
  • ContinuityOfCareControllerGET /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 existing BiometricsStatusController REST 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

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>
@mherman22 mherman22 force-pushed the feat/ips-continuity-of-care-trigger branch from bcfbcf2 to bb20642 Compare July 3, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant