Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

  1. Composition "Inpatient. Entry" could be registered only by doctors with type SPECIALIST, ASSISTANT
  2. All sections are required for composition type


Validation 

ValidationSD

id

  1. is sent
  2. composition id is UUID
  3. that $.{encounter}[*].id from the payload are all unique among themselves
  4. there is no entity with such id in the corresponding Medical events collection


  •   
  •   
  •   
  •   

status

  1. is sent
  2. status is 'final'


  •   
  •   

subject

  1. is sent
  2. is reference to patient_id 
  3. patient exists in DB
  4. patient is active and is_active=true


  •   
  •   
  •   
  •   

encounter

  1. is sent
  2. is reference to encounter
  3. encounter.performer.type = "SPECIALIST"
  4. encounter.patient_id=$subject
  5. encounter is not in status "entered_in_error"
  6. encounter.performer.legal_entity_id = $client_id


  •   
  •   
  •   
  •   
  •   
  •    

date

  1. is sent
  2. is a real
datetime
  1. date time
  2. $date > encounter.date


  •   
  •   
  •   

author

  1. is sent
  2. is reference to employee
  3. author.legal_entity_id = token.client_id
  4. author.employee_type = SPECIALIST, ASSISTANT
  5. author

?

title
  1. .end_date > now
  2. author.status = APPROVED
  3. author.id = token.user_id


  •   
  •   
  •   
  •   
  •   
  •   
  •   

title

  1. is sent
  2. string max length 2000 


  •   
  •   

attester

  1. is sent
  2. is reference to employee
  3. attester.legal_entity_id = token.client_id
  4. attester.employee_type = SPECIALIST
  5. attester.end_date > now
  6. attester.status = APPROVED


  •   
  •   
  •   
  •   
  •   
  •    

custodian

?

  1. is sent
  2. is reference to legal_entity
  3. legal_entity = token.client
  4. legal_entity.type = AMBULANCE


  •   
  •   
  •   
  •   


Section Validation

ValidationSD

title "Encounter details"

  • reference to encounter
  • encounter.patient_id = composition.subject
  • encounter.status <> entered_in_error

title "Місце надання медичних послуг"

  • reference to division
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"

  • reference to observation
observation
  • observation code = 29463-7 Body weight
  • observation.status <> entered_in_error
  • observation.patient_id = composition.subject

M

title "Дата надходження в приймальне відділення
  •   
  •   
  •   
  •   

title "Date of admission"

  • text
  • emptyReason

M

  •   
  •   

title "

діагноз при госпіталізації

Diagnosis at hospitalization"

  • reference to condition
  • condition.patient_id=subject
  • condition.status <> entered_in_error

M

  •   
  •   
  •   

title "

Бал

SAPS II

при госпіталізаці"

title "Посилання на направлення"

"

  • text
  • emptyReason

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"

  • text
  • emptyReason
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

  •   
  •   
  •    
  •