PackagesCanonicalsLogsProblems
    Packages
    ee.fhir.mpi@1.4.0
    https://fhir.ee/mpi/OperationDefinition/patient-link
{
  "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.",
  "_filename": "OperationDefinition-patient-link.json",
  "package_name": "ee.fhir.mpi",
  "date": "2025-10-14T07:41:16+00:00",
  "system": false,
  "publisher": "TEHIK",
  "instance": false,
  "jurisdiction": [ {
    "coding": [ {
      "code": "EE",
      "system": "urn:iso:std:iso:3166",
      "display": "Estonia"
    } ]
  } ],
  "name": "EEMPIPatientLink",
  "type": "true",
  "experimental": "false",
  "resourceType": "OperationDefinition",
  "title": "Patient Link",
  "package_version": "1.4.0",
  "status": "active",
  "id": "82bdcfd6-8b2a-4384-bab5-d2ba7a6d1077",
  "resource": [ "Patient" ],
  "affectsState": true,
  "kind": "operation",
  "url": "https://fhir.ee/mpi/OperationDefinition/patient-link",
  "code": "link",
  "version": "1.4.0",
  "contact": [ {
    "name": "TEHIK",
    "telecom": [ {
      "value": "https://tehik.ee",
      "system": "url"
    } ]
  } ],
  "parameter": [ {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "source-patient",
    "type": "Reference",
    "documentation": "A direct resource reference to the **source** patient resource",
    "targetProfile": [ "https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient" ]
  }, {
    "max": "*",
    "min": 0,
    "use": "in",
    "name": "source-patient-identifier",
    "type": "Identifier",
    "documentation": "An identifier of the source patient"
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "target-patient",
    "type": "Reference",
    "documentation": "A direct resource reference to the **target** patient resource.\r\rThis is the surviving patient resource, the target for the link.",
    "targetProfile": [ "https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient" ]
  }, {
    "max": "*",
    "min": 0,
    "use": "in",
    "name": "target-patient-identifier",
    "type": "Identifier",
    "documentation": "An identifier of the target patient"
  }, {
    "max": "1",
    "min": 1,
    "use": "out",
    "name": "return",
    "type": "Patient",
    "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."
  } ]
}