Skip to content

refactor(xds-sender): route CCD retrieval through IPS, drop duplicate path - #113

Merged
mherman22 merged 2 commits into
IsantePlus:mainfrom
mherman22:feat/ips-consolidate-ccd
Jul 12, 2026
Merged

refactor(xds-sender): route CCD retrieval through IPS, drop duplicate path#113
mherman22 merged 2 commits into
IsantePlus:mainfrom
mherman22:feat/ips-consolidate-ccd

Conversation

@mherman22

Copy link
Copy Markdown
Contributor

Follow-up to #112 addressing review feedback: avoid the duplicate importIps/downloadAndSaveIps surface — reuse downloadAndSaveCcd, keep backwards compatibility.

Change

Net: 20 insertions, 107 deletions. Same method names, no new public API.

🤖 Generated with Claude Code

… path

Follow-up to IsantePlus#112. Instead of a parallel downloadAndSaveIps/retrieveIps/
IpsRetrievalController surface, the existing downloadAndSaveCcd now retrieves
the consolidated IPS when xdssender.ipsEndpoint is configured, falling back to
the legacy client-side CCD aggregation otherwise. Backwards compatible:

- ShrImportServiceImpl.retrieveCCD: IPS-first (via ShrRetriever.fetchIps) when
  ipsEndpoint is set; else / on empty result, legacy sendRetrieveCCD.
- Removes CcdService.downloadAndSaveIps + impl and ShrImportServiceImpl.retrieveIps.
- Removes IpsRetrievalController (the UI trigger lives in registrationcore).
- getIpsEndpoint()/config.xml: opt-in, empty default so existing installs are
  unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mherman22 added a commit to mherman22/openmrs-module-registrationcore that referenced this pull request Jul 3, 2026
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 merged commit f2a61dd into IsantePlus:main Jul 12, 2026
1 check passed
@mherman22
mherman22 deleted the feat/ips-consolidate-ccd branch July 12, 2026 11:14
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