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

Device (transaction)

ValidationSD

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


  •  
  •  
  •  
  •  

device_id. Validate

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


  •  
  •  
  •  
  •  

statusValidate

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


  •  
  •  

asserted_dateValidate

  1. is sent
  2. as real date_time


  •  
  •  

usage_periodValidate

  1. is sent
  2. as a Period


  •  
  •  

context. Validate

  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'


  •  
  •  
  •  
  •  
  •  
  •  

primary_sourceValidate

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


  •  
  •  

asserter. Validate

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


  •  
  •  
  •  
  •  

report_originValidate

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


  •  
  •  

typeValidate

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


  •  
  •  
  •  

lot_numberValidate

  1. string (maxLength: 200)


  •  

manufacturerValidate

  1. string (maxLength: 200)


  •  

manufacture_dateValidate

  1. as real date_time


  •  

expiration_dateValidate

  1. as real date_time


  •  

modelValidate

  1. string (maxLength: 200)


  •  

versionValidate

  1. string (maxLength: 200)


  •  

noteValidate

  1. string (maxLength: 2000)



  •  

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