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-status | Version: 1.5.0 | |||
| Active as of 2026-03-26 | Computable Name: EEMPIPatientLegalStatus | |||
Patient's current legal status from the Population Register (RR).
Juhul, kui inimese kohta ei ole MPI-s ega RR-is kehtivat teovõime otsust, tagastatakse teovõime arvutuse tulemus:
URL: [base]/Patient/$legal-status
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | patient | 1..1 | Reference (Patient) | A direct resource reference to the patient resource. | ||
| 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. In case the patient is deceased, MPI also returns an OperationOutcome with warning severity and an MPI error code. |
Antud päring nõuab x-road-issue HTTP päise lisamist. Põhjendus on nähtav patsiendile eesti.ee portaalis Andmejälgija kaudu.
Näide päringust:
GET {MPI}/Patient/$legal-status?patient=Patient/874
GET {MPI}/Patient/$legal-status?patient.identifier=https://fhir.ee/sid/pid/est/ni|37408074944
GET {MPI}/Patient/$legal-status?patient.identifier=37408074944
ning saab vastuseks on LegalStatus Observationi
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"resource": {
"resourceType": "Observation",
"meta": {
"versionId": "1",
"profile": [
"https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-status"
]
},
"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": "8625004",
"display": "Legal status"
}
]
},
"subject": {
"reference": "Patient/14459"
},
"issued": "2026-01-23T10:04:24.472+02:00",
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.ee/CodeSystem/teovoime-staatus",
"code": "T2",
"display": "Teovõimetu"
}
]
}
}
}
]
}