FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageee.fhir.mpi
Resource TypeOperationDefinition
IdOperationDefinition-patient-link.json
FHIR VersionR5
Sourcehttps://fhir.ee/packages/mpi/1.5.0/site/OperationDefinition-patient-link.html
URLhttps://fhir.ee/mpi/OperationDefinition/patient-link
Version1.5.0
Statusactive
Date2025-10-31T12:34:39+00:00
NameEEMPIPatientLink
TitlePatient Link
Realmee
DescriptionThe 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.
Typetrue
Kindoperation

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: OperationDefinition patient-link

URL: [base]/Patient/$link

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INsource-patient0..1Reference (EE MPI Patient)

A direct resource reference to the source patient resource

INsource-patient-identifier0..*Identifier

An identifier of the source patient

INtarget-patient0..1Reference (EE MPI Patient)

A direct resource reference to the target patient resource.

This is the surviving patient resource, the target for the link.

INtarget-patient-identifier0..*Identifier

An identifier of the target patient

OUTreturn1..1Patient

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.


Source1

{
  "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"
    }
  ]
}