Patsiendi üldandmete teenus / Master Patient Index
1.4.0 - trial-use Estonia flag

Patsiendi üldandmete teenus / Master Patient Index - Downloaded Version 1.4.0 See the Directory of published versions

: Patient Link - TTL Representation

Active as of 2025-10-14

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-link"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition patient-link</b></p><a name=\"patient-link\"> </a><a name=\"hcpatient-link\"> </a><p>URL: [base]/Patient/$link</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>source-patient</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-ee-mpi-patient.html\" title=\"https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient\">EE MPI Patient</a>)</td><td/><td><div><p>A direct resource reference to the <strong>source</strong> patient resource</p>\n</div></td></tr><tr><td>IN</td><td>source-patient-identifier</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#Identifier\">Identifier</a></td><td/><td><div><p>An identifier of the source patient</p>\n</div></td></tr><tr><td>IN</td><td>target-patient</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-ee-mpi-patient.html\" title=\"https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient\">EE MPI Patient</a>)</td><td/><td><div><p>A direct resource reference to the <strong>target</strong> patient resource.</p>\n<p>This is the surviving patient resource, the target for the link.</p>\n</div></td></tr><tr><td>IN</td><td>target-patient-identifier</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#Identifier\">Identifier</a></td><td/><td><div><p>An identifier of the target patient</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></td><td/><td><div><p>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.</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "https://fhir.ee/mpi/OperationDefinition/patient-link"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.4.0"] ; # 
  fhir:name [ fhir:v "EEMPIPatientLink"] ; # 
  fhir:title [ fhir:v "Patient Link"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2025-10-14T07:41:16+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "TEHIK"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "TEHIK" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://tehik.ee" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "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."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "EE" ] ;
fhir:display [ fhir:v "Estonia" ]     ] )
  ] ) ; # 
  fhir:affectsState [ fhir:v true] ; # 
  fhir:code [ fhir:v "link"] ; # 
  fhir:resource ( [ fhir:v "Patient"] ) ; # 
  fhir:system [ fhir:v false] ; # 
  fhir:type [ fhir:v true] ; # 
  fhir:instance [ fhir:v false] ; # 
  fhir:parameter ( [
fhir:name [ fhir:v "source-patient" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "A direct resource reference to the **source** patient resource" ] ;
fhir:type [ fhir:v "Reference" ] ;
    ( fhir:targetProfile [
fhir:v "https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient"^^xsd:anyURI ;
fhir:link <https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient>     ] )
  ] [
fhir:name [ fhir:v "source-patient-identifier" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:documentation [ fhir:v "An identifier of the source patient" ] ;
fhir:type [ fhir:v "Identifier" ]
  ] [
fhir:name [ fhir:v "target-patient" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "A direct resource reference to the **target** patient resource.\r\rThis is the surviving patient resource, the target for the link." ] ;
fhir:type [ fhir:v "Reference" ] ;
    ( fhir:targetProfile [
fhir:v "https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient"^^xsd:anyURI ;
fhir:link <https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient>     ] )
  ] [
fhir:name [ fhir:v "target-patient-identifier" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:documentation [ fhir:v "An identifier of the target patient" ] ;
fhir:type [ fhir:v "Identifier" ]
  ] [
fhir:name [ fhir:v "return" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 1 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "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." ] ;
fhir:type [ fhir:v "Patient" ]
  ] ) . #