Overview
- Composition "Inpatient. Entry" could be registered only by doctors with type SPECIALIST, ASSISTANT
- All sections are required for composition type
Validation
Validation | SD |
---|
id - is sent
- composition id is UUID
- that $.{encounter}[*].id from the payload are all unique among themselves
- there is no entity with such id in the corresponding Medical events collection
|
|
status - is sent
- status is 'final'
|
|
subject - is sent
- is reference to patient_id
- patient exists in DB
- patient is active and is_active=true
|
|
encounter - is sent
- is reference to encounter
- encounter.performer.type = "SPECIALIST"
- encounter.patient_id=$subject
- encounter is not in status "entered_in_error"
- encounter.performer.legal_entity_id = $client_id
|
|
date - is sent
- is a real
|
datetime- date time
- $date > encounter.date
|
|
author - is sent
- is reference to employee
- author.legal_entity_id = token.client_id
- author.employee_type = SPECIALIST, ASSISTANT
- author
|
?
title- .end_date > now
- author.status = APPROVED
- author.id = token.user_id
|
|
title - is sent
- string max length 2000
|
|
attester - is sent
- is reference to employee
- attester.legal_entity_id = token.client_id
- attester.employee_type = SPECIALIST
- attester.end_date > now
- attester.status = APPROVED
|
|
custodian |
?- is sent
- is reference to legal_entity
- legal_entity = token.client
- legal_entity.type = AMBULANCE
|
|
Section Validation
Validation | SD |
---|
title "Encounter details" - reference to encounter
- encounter.patient_id = composition.subject
- encounter.status <> entered_in_error
|
title "Місце надання медичних послуг" | title "Вага пацієнта при госпіталізації- encounter.episode.managing_organization = custodian
- encounter.class = NONAC, ACUTE
| M |
title "Episode details" - reference to episode
- episode.managing_organization = custodian
- episode.status <> closed, entered_in_error
| M |
title "Legal entity details" - reference to legal_entity
- legal_entity = custodian
| M |
title "Division details" - reference to division
- division.legal_entity = custodian
- division.status = ACTIVE and is_active=true
| M |
title "Medical employee information" - reference to employee
- employee = author
| M |
title "Patient weight" |
observation - observation code = 29463-7 Body weight
- observation.status <> entered_in_error
- observation.patient_id = composition.subject
| M |
title "Дата надходження в приймальне відділення |
title "Date of admission" | M |
title " |
діагноз при госпіталізаціїDiagnosis at hospitalization" - reference to condition
- condition.patient_id=subject
- condition.status <> entered_in_error
| M |
title " |
Бал при госпіталізаці"title "Посилання на направлення"
" | O |
title "Reference to service request " - patient_id = composition.subject
- reference to service_request
- service request is in status "active" or "in progress"
- used_by_legal_entity==token.client_id
- service_request.expiration date <= now
| M |
title |
"Дані щодо екстреної/швидкої медичної допомоги"ICU information" - reference to encounter
- encounter.patient_id = composition.subject
- encounter.status <> entered_in_error
- encounter.class = EMER
| O |
title "Emergency team number" - text
- emptyReason
- should be present if section "Emergency employee name" is present
| O |
title "Emergency employee name" |
title "Інформація про функціонування та обмеження життєдіяльності здоров'я- should be present if section "Emergency team number" is present
| O |
title "Modified Rankin Score" - reference to observation,
|
loinc -
- observation loinc code = 75859-9 (Modified rankin scale)
- observation.status <> entered_in_error
- patient_id = composition.subject
| O |
title " |
Вага дитини при народженнBirth weight" - reference to observation,
- loinc code 56094-6 Birth weight
- patient_id = composition.subject
|
title "Гестаційний вік при народженнi- status <> entered_in_error
| O |
title "Gestational age at birth" - reference to observation,
- loinc code 76516-4 Gestational age--at birth
|
title "Зріст- patient_id = composition.subject
- status <> entered_in_error
| O |
title "Body height" - reference to observation,
- 8302-2 Body height
- patient_id = composition.subject
|
title "Оцінка за шкалою Апгар на 1 хвилині- status <> entered_in_error
| O |
title "1 minute Apgar Score" - reference to observation,
- 9272-6 1 minute Apgar Score
|
title "Оцінка за шкалою Апгар на 5 хвилині - patient_id = composition.subject
- status <> entered_in_error
| O |
title "5 minute Apgar Score" - reference to observation,
- 9274-2 5 minute Apgar Score
- patient_id = composition.subject
- status <> entered_in_error
| O |