FHIR IG analytics| Package | ee.fhir.mpi |
| Resource Type | OperationDefinition |
| Id | OperationDefinition-patient-link.json |
| FHIR Version | R5 |
| Source | https://fhir.ee/packages/mpi/1.5.0/site/OperationDefinition-patient-link.html |
| URL | https://fhir.ee/mpi/OperationDefinition/patient-link |
| Version | 1.5.0 |
| Status | active |
| Date | 2025-10-31T12:34:39+00:00 |
| Name | EEMPIPatientLink |
| Title | Patient Link |
| Realm | ee |
| Description | 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. |
| Type | true |
| Kind | operation |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: OperationDefinition patient-link
URL: [base]/Patient/$link
| 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. |
{
"resourceType": "OperationDefinition",
"id": "patient-link",
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"url": "https://fhir.ee/mpi/OperationDefinition/patient-link",
"version": "1.5.0",
"name": "EEMPIPatientLink",
"title": "Patient Link",
"status": "active",
"kind": "operation",
"experimental": false,
"date": "2025-10-31T12:34:39+00:00",
"publisher": "TEHIK",
"contact": [
{
"name": "TEHIK",
"telecom": [
{
"system": "url",
"value": "https://tehik.ee"
}
]
}
],
"description": "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.",
"jurisdiction": [
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "EE",
"display": "Estonia"
}
]
}
],
"affectsState": true,
"code": "link",
"resource": [
"Patient"
],
"system": false,
"type": true,
"instance": false,
"parameter": [
{
"name": "source-patient",
"use": "in",
"min": 0,
"max": "1",
"documentation": "A direct resource reference to the **source** patient resource",
"type": "Reference",
"targetProfile": [
"https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient"
]
},
{
"name": "source-patient-identifier",
"use": "in",
"min": 0,
"max": "*",
"documentation": "An identifier of the source patient",
"type": "Identifier"
},
{
"name": "target-patient",
"use": "in",
"min": 0,
"max": "1",
"documentation": "A direct resource reference to the **target** patient resource.\r\rThis is the surviving patient resource, the target for the link.",
"type": "Reference",
"targetProfile": [
"https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient"
]
},
{
"name": "target-patient-identifier",
"use": "in",
"min": 0,
"max": "*",
"documentation": "An identifier of the target patient",
"type": "Identifier"
},
{
"name": "return",
"use": "out",
"min": 1,
"max": "1",
"documentation": "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.",
"type": "Patient"
}
]
}