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

Immunization


validationSD

patient id. Validate

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


  •  
  •  
  •  
  •  

immunization id. Validate

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


  •  
  •  
  •  
  •  

status. Validate

  1. is sent
  2. by dictionary eHealth/immunization_statuses


  •  

not_given. Validate

  1. is sent
  2. as boolean


  •  
  •  

vaccineCode. Validate

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


  •  
  •  
  •  

 encounter contextValidate

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


  •  
  •  
  •  
  •  
  •  
  •  

recorded dateValidate

  1. is sent
  2. is a dateTime
  3. current_date-immunization_max_days_passed >= $.immunizations[*].date <= current_time


  •  
  •  
  •  

primary_source. Validate

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


  •  
  •  
  •  
one_of

performer. Validate

  1. validate performer is a reference to employee
  2. validate employee is active and is_active=true
  3. validate employee.legal_entity_id belongs to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES
  4. validate performer 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


  •  
  •  

legal_entityValidate

  1. as reference to legal_entity
  2. legal_entity is active
  3. legal_entity.id = client_id from token
  4. legal_entity_id belongs to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES


  •  
  •  
  •  
  •  

manufacturerValidate

  1. as a string with max length = 2000 


  •  

lotNumberValidate

  1. as a string with max length = 2000 


  •  

expirationDateValidate

  1. as a real date_time


  •  

siteValidate

  1. as a codeable_concept
  2. by dictionary 'eHealth/body_sites'


  •  
  •  

routeValidate

  1. as a codeable_concept
  2. by dictionary 'eHealth/vaccination_routes'


  •  
  •  

doseQuantityValidate

  1. as quantity


  •  

explanationValidate

  1. as codeable_concept
  2. by dictionaries 'eHealth/reason_explanations', 'eHealth/reason_not_given_explanations'


  •  
  •  

reaction.detail reactionsValidate

  1. as reference to observation
  2. observation is made for the same person
  3. observation is not in status "entered_in_error"


  •  
  •  
  •  

protocolApplied vaccination_protocolsValidate

  1. series - string
  2. authority - reference to LE
  3. targetDisease - eHealth/vaccination_target_diseases
  4. doseNumberString
  5. seriesDosesString


  •  
  •  
  •  
  •   
  •  

note. Validate

  1. is string


  •  


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