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

Medication_statement

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


  •  
  •  
  •  
  •  

id. Validate

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


  •  
  •  
  •  
  •  

based_onValidate

  1. as reference to medication_request


  •  

statusValidate

  1. is sent
  2. by dictionary


  •  
  •  

medication_codeValidate

  1. is sent 
  2. as codeable_concept
  3. by dictionary "eHealth/medication_statement_medications"


  •  
  •  
  •  

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'


  •  
  •  
  •  
  •  
  •  
  •  

effective_periodValidate

  1. as string(maxLength: 2000)


  •  

asserted_dateValidate

  1. is sent
  2. as real date_time


  •  
  •  

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


  •  
  •  

noteValidate

  1. as string(maxLength: 2000)


  •   

dosageValidate

  1. as string(maxLength: 2000)


  •  

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