ЕСОЗ - публічна документація

Composition. Inpatient. Entry

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 date time
  3. $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.end_date > now
  6. author.status = APPROVED
  7. 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
  • 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 code = 29463-7 Body weight
  • observation.status <> entered_in_error
  • observation.patient_id = composition.subject

M

  •  
  •  
  •  
  •  

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"

  • 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
  • should be present if section  "Emergency team number" is present
O
  •  
  •  
  •  

title "Modified Rankin Score"

  • reference to observation, 
  • 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
  • status <> entered_in_error

O

  •  
  •  
  •  
  •  

title "Gestational age at birth"

  • reference to observation, 
  • loinc code 76516-4 Gestational age--at birth
  • patient_id = composition.subject
  • status <> entered_in_error

O

  •  
  •  
  •   
  •  

title "Body height"

  • reference to observation, 
  • 8302-2 Body height
  • patient_id = composition.subject
  • status <> entered_in_error

O

  •  
  •  
  •   
  •  

title "1 minute Apgar Score"

  • reference to observation, 
  • 9272-6 1 minute Apgar Score
  • 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

  •  
  •  
  •   
  •  

ЕСОЗ - публічна документація