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

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

Version 1 Next »


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


  •  
  •  
  •  
  •  

status. Validate

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


  •  
  •  

method. Validate

  1. as codeable_concept
  2. by dictionary 'eHealth/risk_assessment_methods'


  •  
  •  

code. Validate

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


  •  
  •  
  •  

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'


  •  
  •  
  •  
  •  
  •  
  •  

asserted_date. Validate

  1. is sent
  2. is a real date_time
  3. asserted_date < now()


  •  
  •  
  •  

primary_source. Validate

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


  •  
  •  

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


  •  
  •  

reason_codes. Validate

  1. as codeable_concept
  2. by dictionary 'eHealth/risk_assessment_reasons'


  •  
  •  

reason_references. Validate

  1. as reference to  "condition" or "observation" or  "diagnostic_report"


  •  

basis. Validate

  1. as reference to "observation" or "condition" or "diagnostic_report"


  •  

predictions. Validate

  • outcome as codeable_concept, by dictionary 'eHealth/risk_assessment_outcomes'
  • qualitative_risk as codeable_concept, by dictionary 'Health/risk_assessment_qualitative_risks'
  • relative_risk as number
  • rationale as string
  • probability_decimal as number
  • probability_range
    • low as value_quantity
    • high as value_quantity
  • when_period as datetime_period
  • when_range 
    • low as value_quantity
    • high as value_quantity


  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

mitigation. Validate

  1. as a string with max length = 2000 


  •  

comment. Validate

  1. as a string with max length = 2000 


  •  
  • No labels