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

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

: Patient legal relationships - TTL Representation

Active as of 2026-02-13

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-legal-relationship"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition patient-legal-relationship</b></p><a name=\"patient-legal-relationship\"> </a><a name=\"hcpatient-legal-relationship\"> </a><p>URL: [base]/Patient/$legal-relationship</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>patient</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/references.html#Reference\">Reference</a> (<a href=\"http://hl7.org/fhir/R5/patient.html\" title=\"http://hl7.org/fhir/StructureDefinition/Patient\">Patient</a>)</td><td/><td><div><p>A direct resource reference to the patient resource.</p>\n</div></td></tr><tr><td>IN</td><td>relationship-type</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#code\">code</a></td><td><a href=\"https://akk.tehik.ee/classifier/fhir/ValueSet/isiku-suhte-tyybid-hl7-ja-snomed\">Isiku suhte tüübid HL7 ja SNOMED</a> (Required)</td><td><div><p>Relationship type. If missing, then all relationship types from bound ValueSet are queried.</p>\n</div></td></tr><tr><td>IN</td><td>custody-type</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#code\">code</a></td><td><a href=\"https://akk.tehik.ee/classifier/fhir/ValueSet/hooldusoiguse-liik\">Hooldusõiguse liik</a> (Required)</td><td><div><p>Custody type. If missing, then only personal custody types ('H10', 'H11', 'H12') from bound ValueSet are queried.</p>\n</div></td></tr><tr><td>IN</td><td>nocache</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#boolean\">boolean</a></td><td/><td><div><p>Specifies when the operation should ignore the value stored in the cache and should re-request data from the source. By default <em>false</em>.</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/bundle.html\">Bundle</a></td><td/><td><div><p>Returns Bundle (with type 'collection') with Observation instances of <a href=\"StructureDefinition-ee-mpi-socialhistory-legal-relationship.html\">EEMPISocialHistoryLegalRelationship</a> profile. If multiple custody types are found between two persons, then multiple Observation instances for the same patient relationship are returned.</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
fhir:v "https://fhir.ee/mpi/OperationDefinition/patient-legal-relationship"^^xsd:anyURI ;
fhir:l <https://fhir.ee/mpi/OperationDefinition/patient-legal-relationship>
  ] ; # 
  fhir:version [ fhir:v "1.5.0"] ; # 
  fhir:name [ fhir:v "EEMPIPatientLegalRelationship"] ; # 
  fhir:title [ fhir:v "Patient legal relationships"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-02-13T09:07:39+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 "Operations that returns a list of valid (at the moment of the request) patient legal relationships based on data from Population Register (RR). Returns also custody types where applicable."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
fhir:l <urn:iso:std:iso:3166>       ] ;
fhir:code [ fhir:v "EE" ] ;
fhir:display [ fhir:v "Estonia" ]     ] )
  ] ) ; # 
  fhir:affectsState [ fhir:v false] ; # 
  fhir:code [ fhir:v "legal-relationship"] ; # 
  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 "patient" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 1 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "A direct resource reference to the patient resource." ] ;
fhir:type [ fhir:v "Reference" ] ;
    ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>     ] )
  ] [
fhir:name [ fhir:v "relationship-type" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:documentation [ fhir:v "Relationship type. If missing, then all relationship types from bound ValueSet are queried." ] ;
fhir:type [ fhir:v "code" ] ;
fhir:binding [
fhir:strength [ fhir:v "required" ] ;
fhir:valueSet [
fhir:v "https://fhir.ee/ValueSet/isiku-suhte-tyybid-hl7-ja-snomed"^^xsd:anyURI ;
fhir:l <https://fhir.ee/ValueSet/isiku-suhte-tyybid-hl7-ja-snomed>       ]     ]
  ] [
fhir:name [ fhir:v "custody-type" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:documentation [ fhir:v "Custody type. If missing, then only personal custody types ('H10', 'H11', 'H12') from bound ValueSet are queried." ] ;
fhir:type [ fhir:v "code" ] ;
fhir:binding [
fhir:strength [ fhir:v "required" ] ;
fhir:valueSet [
fhir:v "https://fhir.ee/ValueSet/hooldusoiguse-liik"^^xsd:anyURI ;
fhir:l <https://fhir.ee/ValueSet/hooldusoiguse-liik>       ]     ]
  ] [
fhir:name [ fhir:v "nocache" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Specifies when the operation should ignore the value stored in the cache and should re-request data from the source. By default *false*." ] ;
fhir:type [ fhir:v "boolean" ]
  ] [
fhir:name [ fhir:v "return" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 1 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Returns Bundle (with type 'collection') with Observation instances of [EEMPISocialHistoryLegalRelationship](StructureDefinition-ee-mpi-socialhistory-legal-relationship.html) profile. If multiple custody types are found between two persons, then multiple Observation instances for the same patient relationship are returned." ] ;
fhir:type [ fhir:v "Bundle" ]
  ] ) . #