Client Registry Implementation Guide
0.1.0 - ci-build
Client Registry Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://ig.hiu.lk/fhir/clientregistry/OperationDefinition/lk-patient-merge | Version: 0.1.0 | |||
| Draft as of 2025-10-23 | Computable Name: ClientMerge | |||
This operation is used to merge Patient instances.
From R5
The merge operation is used to request two patient resources be merged. One of the two patients is identified as the source and one as the target. The data from the source patient will be merged with the data of the target patient.
The source Patient resource will be updated to add a new Patient.link reference to the target Patient resource with a link-type of replaced-by. The source Patient will also be updated to have a status of inactive, unless the source Patient resource was deleted.
The target Patient resource will be updated to add a new Patient.link reference to the source Patient resource with a link-type of replaces unless the source Patient resource is deleted. The target Patient resource must be included in the result-patient parameter if used.
URL: [base]/Patient/$merge
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | source-patient | 0..1 | Reference (LKPatient) | The source Patient. | ||
| IN | source-patient-identifier | 1..* | Identifier | The source Patient identifier. | ||
| IN | target-patient | 0..1 | Reference (LKPatient) | The surviving Patient resource. | ||
| IN | target-patient-identifier | 1..* | Identifier | The surviving Patient identifier. | ||
| IN | result-patient | 0..1 | Patient (LKPatient) | The details of the Patient resource that is expected to be updated to complete with and must have the same patient.id and provided identifiers included. | ||
| IN | preview | 0..1 | boolean | If this is set to true then the merge will not be actually performed; an OperationOutcome will be returned in the Parameters response that will indicate that no merge has occurred and may include other diagnostic info if desired, such as the scale of the merge. | ||
| OUT | return | 1..1 | Parameters | The returned status and Resources, including the merged Patient resource. See https://hl7.org/fhir/R5/patient-operation-merge.html for full details. |