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

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

« Previous Version 3 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 to diagnostic_report
  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 codeable_concept
  2. by dictionary eHealth/observation_categories


  •  
  •  

code. Validate

  1. as codeable_concept
  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. Validate

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


  •  
  •  

effective_period 

  1. period as a Period


  •   

issued. Validate:

  1. as a real Datetime


  •  

primary_source

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


  •  
  •  
one_of

performer

  1. validate performer is a reference to employee
  2. validate employee is active and is_active=true
  3. validate employee.legal_entity_id belong to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES
  4. validate performer is sent if primary_source=true


  •  
  •  
  •  
  •  

report_origin

  1. validate asserter is a codable concept
  2. validate asserter is sent if primary_source=false


  •  
  •  

interpretation. Validate

  1. as codeable_concept
  2. by dictionary eHealth/observation_interpretations


  •  
  •  

comment. Validate

  1. as a string with max length = 2000 


  •  

body_site. Validate

  1. as codeable_concept
  2. by dictionary eHealth/body_sites


  •  
  •  

method. Validate

  1. as codeable_concept
  2. by dictionary eHealth/observation_methods


  •  
  •  
one_ofvalue_quantity
  •  

value_codeable_concept

  1. as codeable_concept
  2. by dictionary eHealth/body_sites
  •   
value_sampled_data
  •  
value_string
  •  
value_boolean
  •  
value_range
  •  
value_ratio
  •  
value_time
  •  
value_date_time
  •  
value_period
  •  

reference_ranges
  •  

reaction_on. Validate

  1. as reference to immunisation
  2. immunisation is sent in payload or exists in DB
  3. immunisation is made for the same person
  4. immunisation is not in status 'entered_in_error'


  •  
  •  
  •   

components

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


  •  
  • No labels