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

OperationDefinition: Patient legal status

Official URL: https://fhir.ee/mpi/OperationDefinition/patient-legal-status Version: 1.5.0
Active as of 2026-09-30 Computable Name: EEMPIPatientLegalStatus

Patient's current legal status from the Population Register (RR).

Teovõime arvutamine

Juhul, kui inimese kohta ei ole MPI-s ega RR-is kehtivat teovõime otsust, tagastatakse teovõime arvutuse tulemus:

  • Kui inimene on alla 18-aastane, siis talle teovõimet ei määrata ja vastus on tühi.
  • Kui inimene on 18-aastane või vanem, siis tagastatakse staatus „T0” (teovõimeline).

Päring

URL: [base]/Patient/$legal-status

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INpatient1..1Reference (Patient)

A direct resource reference to the patient resource.

INnocache0..1boolean

Specifies when the operation should ignore the value stored in the cache and should re-request data from the source. By default false.

OUTreturn1..1Bundle

​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.

Notes:

Kohustuslik põhjendus

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äited

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