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

Allergy intolerance

ValidationSD

patient_id validate:

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


  •  
  •  
  •  
  •  

ID validate:

  1. is sent
  2. allergy_intolerance 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


  •  
  •  
  •  
  •  

clinical_status. Validate

  1. is sent
  2. by dictionary 'eHealth/allergy_intolerance_clinical_statuses'


  •  
  •  

verification_status. Validate

  1. is sent
  2. by dictionary 'eHealth/allergy_intolerance_verification_statuses'


  •  
  •  

type. Validate

  1. is sent
  2. by dictionary 'eHealth/allergy_intolerance_types'


  •  
  •  

category. Validate

  1. is sent
  2. by dictionary 'eHealth/allergy_intolerance_categories'


  •  
  •  

criticality. Validate

  1. is sent
  2. by dictionary 'eHealth/allergy_intolerance_criticalities'


  •  
  •  

context. Validate

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


  •  
  •  
  •  
  •  
  •  

code. Validate

  1. is sent
  2. as codeable_concept
  3. by dictionary 'eHealth/allergy_intolerance_codes'


  •  
  •  
  •  

onset_date_time. Validate

  1. is sent
  2. as real date_time


  •  
  •  

asserted_date. Validate

  1. is sent
  2. as real date_time


  •  
  •  

primary_source. Validate

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


  •  
  •  

asserter. Validate

  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. Validate

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


  •  
  •  

last_occurence. Validate

  1. as real date_time


  •  

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