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

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 2 Next »

Validation

Structure

Definition

patient_id

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


  •  
  •  
  •  

condition.id

  1. validate condition_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


  •  
  •  
  •  

primary_source

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


  •  
  •  
  •  

asserter

  1. validate asserter 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 asserter is sent if primary_source=true


  •  
  •  
  •  
  •  

report_origin

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


  •  
  •  

context

  1. validate context is reference to encounter
  2. validate context is reference to the encounter in the same transaction 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'


  •  
  •  
  •  
  •  

code

  1. validate code as a codable_concept
  2. validate code by dictionary `eHealth/ICD10/condition_codes`

 

  •  
  •  
  •  
clinical_status
  1. validate clinical_status by dictionary eHealth/condition_clinical_statuses

 

  •  
verification_status
  1. validate verification_status by dictionary eHealth/condition_verification_statuses

 

  •  
severity
  1. validate severity as codeable_concept
  2. validate by dictionary eHealth/condition_severities

 

  •  
  •  
body_sites
  1. validate body_sites as codeable_concept
  2. validate by dictionary eHealth/body_sites

 

  •   
  •  
onset_date
  1. validate is a real date
  2. validate onset_date <= current_date
  3. condition[*].onset_date>=current_date-condition_max_days_passed


  •  
  •  
  •  
stage
  1. validate stage as codeable_concept
  2. validate by dictionary eHealth/condition_stages

 

  •  
  •  

evidences

  1. validate evidences is a reference to observation
  2. evidences is an ID of existing observation in DB or one in the same transaction
  3. validate observation is made for the same patient_id
  4. validate observation is not in status 'entered_in_error'
  5. validate observation.managing_organization = client_id from token


  •  
  •  
  •   
  •  
  •  
  • No labels