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

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 7 Current »

Validation

Structure

Definition

Subject (patient_id)

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


  •  
  •  
  •  
  •  

id

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


  •  
  •  
  •  
  •  

primarySource

  1. is sent
  2. validate primary_source is boolean
  3. 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


  •  
  •  
  •  
  •  

reportOrigin

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


  •  
  •  

encounter (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. is sent
  2. validate code as a codable_concept
  3. validate code by dictionary `eHealth/ICD10/condition_codes`

 

  •  
  •  
  •  
clinicalStatus
  1. is sent
  2. validate clinical_status by dictionary eHealth/condition_clinical_statuses

 

  •  
  •  
verificationStatus
  1. is sent
  2. validate verification_status by dictionary eHealth/condition_verification_statuses

 

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

 

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

 

  •   
  •  
onset(x) (onsetDate)
  1. is sent
  2. validate is a real date
  3. validate onset_date <= current_date
  4. condition[*].onset_date>=current_date-condition_max_days_passed


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

 

  •  
  •  

Evidence (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