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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


ValidationSD

patient_id

  1. validate patient_id is UUID
  2. validate patient exists in DB
  3. validate patient is active and is_active=true


  •  
  •  
  •  
  •  

observation_id

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


  •  
  •  
  •  

diagnostic_report. Validate:

  1. as reference
  2. diagnostic_report is sent in payload or exists in DB
  3. diagnostic_report not in status "entered_in_error"


  •  
  •  
  •  
  •  

status. Validate:

  1. by dictionary eHealth/observation_statuses


  •  

categories. Validate:

  1. as reference 
  2. by dictionary eHealth/observation_categories


  •  
  •  

code. Validate

  1. as reference 
  2. by dictionary eHealth/LOINC/observation_codes


  •  
  •  

context

  1. validate context is reference to encounter
  2. validate context is reference to the encounter in the same payload or existing encounter in DB
  3. validate encounter is made for the same patient_id
  4. validate encounter.managing_organization = client_id from token
  5. validate encounter is not in status 'entered_in_error'


  •  
  •  
  •  
  •  
  •  
one_of

effective_date_time

  1. as a real date
  2. current_date-observation_max_days_passed >= date <= current_time


  •  
  •  

effective_period

  1. period as a Period


  •   

issued

primary_source

  1. validate primary_source is boolean
  2. validate primary_source is sent


  •  
  •  
one_ofperformer
report_origin

interpretation

comment

body_site

method
one_ofvalue_quantity
value_codeable_concept
value_sampled_data
value_string
value_boolean
value_range
value_ratio
value_time
value_date_time
value_period

reference_ranges

reaction_on

components

  1. $.observations[*].components[*].value_period as a Period

  • No labels