Skip to content

feat(golden-id): list cross-facility occurrences from the golden record - #70

Merged
mherman22 merged 3 commits into
mainfrom
fix/golden-occurrences
Jul 9, 2026
Merged

mherman22 merged 3 commits into
mainfrom
fix/golden-occurrences

Conversation

@mherman22

Copy link
Copy Markdown

Adds MpiClientService.getGoldenRecordOccurrences(Patient): resolves the patient's golden record id, then fetches the golden with _include=Patient:link and returns every linked source record (the cross-facility occurrences), excluding the bare golden record. Each occurrence's site is taken from its identifier location extension when present.

This replaces using the demographic PDQ searchPatient for the after-save "matches" view, which was unreliable in the demographics-out-of-golden topology (returned the patient themselves, or empty when multiple sources existed under one golden).

Builds on the fhir2-compat fix (#69).

mherman22 added 3 commits July 8, 2026 16:57
…ad of FhirPatientIdentifierSystemService for fhir2 compatibility
…fhir2 translation to avoid NPE aborting the list
@mherman22
mherman22 merged commit 4878eee into main Jul 9, 2026
1 check passed
@mherman22
mherman22 deleted the fix/golden-occurrences branch July 9, 2026 09:17
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