Patsiendi üldandmete teenus / Master Patient Index - Downloaded Version 1.5.0 See the Directory of published versions
| Official URL: https://fhir.ee/mpi/OperationDefinition/patient-legal-relationship | Version: 1.5.0 | |||
| Active as of 2026-03-26 | Computable Name: EEMPIPatientLegalRelationship | |||
Patient's legal relationships from the Public Registry. Returns also custody types, where applicable.
URL: [base]/Patient/$legal-relationship
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | patient | 1..1 | Reference (Patient) | A direct resource reference to the patient resource. | ||
| IN | relationship-type | 0..* | code | Isiku suhte tüübid HL7 ja SNOMED (Required) | Relationship type. If missing, then all relationship types from bound ValueSet are queried. | |
| IN | custody-type | 0..* | code | Hooldusõiguse liik (Required) | Custody type. If missing, then only personal custody types ('H10', 'H11', 'H12') from bound ValueSet are queried. | |
| IN | nocache | 0..1 | boolean | Specifies when the operation should ignore the value stored in the cache and should re-request data from the source. By default false. | ||
| OUT | return | 1..1 | Bundle | Returns Bundle (with type 'collection') with Observation instances of EEMPISocialHistoryLegalRelationship profile. If multiple custody types are found between two persons, then multiple Observation instances for the same patient relationship are returned. |
Antud päring nõuab x-road-issue HTTP päise lisamist. Põhjendus on nähtav patsiendile eesti.ee portaalis Andmejälgija kaudu.
GET [base]/Patient/$legal-relationship?{parameters}
relationship-type - suhte tüüp, mille kohta soovitakse märkusi pärida. Lubatud väärtused
valueset-ist: https://fhir.ee/ValueSet/isiku-suhte-tyybid-hl7-ja-snomed
http://terminology.hl7.org/CodeSystem/v3-RoleClass|GUARD või http://snomed.info/sct|127848009custody-type - hooldusõiguse liik isikute vahel mida soovitakse pärida. Lubatud väärtused valueset-ist: https://fhir.ee/ValueSet/hooldusoiguse-liik
H20 (täielik isikuhooldusõigus)Sama parameeter võib esineda mitu korda (rakendatud OR loogika).
Näide päringust, kus soovime leida kõiki isikuid, kellega patsiendil on kas GUARD tüüpi suhe või 67822003 tüüpi suhe ning kellel on H20 või H10 tüüpi hooldusõigus:
Patient/$legal-relationship?relationship-type=http://terminology.hl7.org/CodeSystem/v3-RoleClass%7CGUARD&relationship-type=http://snomed.info/sct%7C67822003&custody-type=H20&custody-type=H10&patient=Patient/1789933
Näide vastusest:
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"resource": {
"resourceType": "Observation",
"meta": {
"profile": [
"https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-relationship"
]
},
"contained": [
{
"resourceType": "RelatedPerson",
"id": "3ffbb9c2-064b-43d3-8b15-d512a743ead2",
"identifier": [
{
"system": "https://fhir.ee/sid/pid/est/ni",
"value": "62308290024"
}
],
"patient": {
"reference": "Patient/1789933"
},
"relationship": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "67822003",
"display": "Laps"
}
]
}
],
"name": [
{
"family": "KARUMÕMM",
"given": [
"KATI"
]
}
]
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "social-history",
"display": "Social history"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "125676002",
"display": "Person"
}
]
},
"subject": {
"reference": "Patient/1789933"
},
"issued": "2026-03-18T12:48:40.304+02:00",
"performer": [
{
"reference": "#3ffbb9c2-064b-43d3-8b15-d512a743ead2"
}
],
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.ee/CodeSystem/hooldusoiguse-liik",
"code": "H10",
"display": "Täielik isikuhooldusõigus"
}
]
}
}
},
{
"resource": {
"resourceType": "Observation",
"meta": {
"profile": [
"https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-relationship"
]
},
"contained": [
{
"resourceType": "RelatedPerson",
"id": "5b8723fb-e4bd-4293-b123-7723b85cd14b",
"identifier": [
{
"system": "https://fhir.ee/sid/pid/est/ni",
"value": "62308290024"
}
],
"patient": {
"reference": "Patient/1789933"
},
"relationship": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "67822003",
"display": "Laps"
}
]
}
],
"name": [
{
"family": "KARUMÕMM",
"given": [
"KATI"
]
}
]
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "social-history",
"display": "Social history"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "125676002",
"display": "Person"
}
]
},
"subject": {
"reference": "Patient/1789933"
},
"issued": "2026-03-18T12:48:40.304+02:00",
"performer": [
{
"reference": "#5b8723fb-e4bd-4293-b123-7723b85cd14b"
}
],
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.ee/CodeSystem/hooldusoiguse-liik",
"code": "H20",
"display": "Täielik varahooldusõigus"
}
]
}
}
}
]
}