Generated Narrative: OperationDefinition patient-link URL: [base]/Patient/$link Parameters Use Name Scope Cardinality Type Binding Documentation IN source-patient 0..1 Reference (EE MPI Patient) A direct resource reference to the source patient resource IN source-patient-identifier 0..* Identifier An identifier of the source patient IN target-patient 0..1 Reference (EE MPI Patient) A direct resource reference to the target patient resource. This is the surviving patient resource, the target for the link. IN target-patient-identifier 0..* Identifier An identifier of the target patient OUT return 1..1 Patient In case of successful link operation it returns the target patient resource with newly created link. In case of error returns OperationOutcome with detailed error message.
The link operation is used to link two patient resources. One of the two patients is identified as the source and one as the target. The link with type 'replaces' is created in target patient resource and points to source patient, the another link with type 'replaced-by' is created in source patient resource and points to target patient.
A direct resource reference to the **source** patient resource
A direct resource reference to the **target** patient resource. This is the surviving patient resource, the target for the link.
In case of successful link operation it returns the target patient resource with newly created link. In case of error returns OperationOutcome with detailed error message.