O‘zbekiston Raqamli sog‘liqni saqlash platformasi
0.11.1 - ci-build
Uzbekistan Digital Health Platform, Ministry of Health of the Republic of Uzbekistan tomonidan e’lon qilingan. Ushbu qo‘llanma rasmiy nashr emas; u FHIR (HL7® FHIR® Standard) CI Build tomonidan yaratilgan 0.11.1 versiyasi uchun uzluksiz yig‘ma hisoblanadi. Ushbu versiya https://github.com/uzinfocom-org/digital-health-ig/ dagi joriy kontentga asoslangan va muntazam ravishda o‘zgarib turadi. Nashr etilgan versiyalar katalogini ko‘ring
| Rasmiy URL: https://dhp.uz/fhir/core/OperationDefinition/patient-attach | Versiya: 0.11.1 | ||||
| Draft 2026-10-19 holatiga ko‘ra | Kompyuterda qayta ishlanadigan nom: PatientAttach | ||||
Attaches a patient to a healthcare organization (Patient.managingOrganization) and/or to a practitioner (Patient.generalPractitioner) in a single call, and records the date of attachment to the organization in the https://dhp.uz/fhir/core/StructureDefinition/managing-organization-attachment extension. The organization and the practitioner are checked for existence in the master data registry; each can be named either by a literal reference or by a business identifier, which the server resolves to a literal reference before writing. The operation is invoked with POST and a Parameters body at instance level (Patient/[id]/$attach), where the patient is named in the URL, or at type level (Patient/$attach), where the patient is named by the patientIdentifier parameter. The response is the updated Patient resource, not Parameters.
Til: uz
URL: [base]/Patient/$attach
URL: [base]/Patient/[id]/$attach
| Foydalanish | Nomi | Scope | Kardinallik | Turi | Bogʻlanish | Hujjatlar |
| IN | patientIdentifier | type | 0..1 | Identifier | PINFL (NI) of the patient to attach. Mandatory at type level, rejected with code | |
| IN | patientBirthDate | type | 0..1 | date | Date of birth of the patient, used as an additional matching criterion when the patient is looked up in the state registries. It does not filter the local patient, which is matched by PINFL only. Accepted at type level only. Passed as valueDate. | |
| IN | organization | 0..1 | Reference | Identifier | The healthcare organization the patient is attached to; written to Patient.managingOrganization. Passed either as valueReference with a relative literal reference | ||
| IN | practitioner | 0..1 | Reference | Identifier | The practitioner the patient is attached to; replaces Patient.generalPractitioner as a whole. Passed either as valueReference with a relative literal reference | ||
| IN | attachmentDate | 0..1 | date | Date of attachment to the organization in full YYYY-MM-DD format; partial dates are rejected. Defaults to the current server date. Accepted only together with | ||
| OUT | return | 1..1 | Patient | The updated Patient resource. If the call changed nothing, the current version is returned and no new version is created. |
At least one of organization and practitioner must be supplied, otherwise an OperationOutcome with code required is returned. Changing one side of the attachment detaches the other: when the organization changes and no practitioner is supplied, Patient.generalPractitioner is cleared; when the practitioner changes and no organization is supplied, Patient.managingOrganization is cleared and the attachment date is set to the current server date. When the supplied organization equals the current one, neither the reference nor the attachment date is changed. Repeated identical calls do not create a new version of the Patient. At type level the patient is resolved by PINFL in the same way as Patient/$populate and is created if it does not exist yet, so a single type-level call replaces the $populate + $attach pair. If the Patient was modified concurrently between read and write, the operation fails with HTTP 412 and does not overwrite the other change; the client should retry. The operation does not enforce the rule that a patient may change organization no more than once a year, does not check that the practitioner works in the given organization, and does not look at Patient.active or Patient.deceased. Detachment is done with Patient/$detach.