| validation | SD |
---|
| patient id. Validate - is sent
- validate patient_id is UUID
- validate patient exists in DB
- validate patient is active and is_active=true
|
|
| immunization id. Validate - is sent
- validate immunization_id is UUID
- validate that $.{collection}[*].id from the payload are all unique among themselves
- validate there is no entity with such id in the corresponding Medical events collection
|
|
| status. Validate - is sent
- by dictionary eHealth/immunization_statuses
|
|
| not_given. Validate - is sent
- as boolean
|
|
| vaccineCode. Validate - is sent
- as a codeable_concept
- by dictionary 'eHealth/vaccine_codes'
|
|
| encounter context. Validate - is sent
- validate context is reference to encounter
- validate context is reference to the encounter in the same payload or existing encounter in DB
- validate encounter is made for the same patient_id
- validate encounter.managing_organization = client_id from token
- validate encounter is not in status 'entered_in_error'
|
|
| recorded date. Validate - is sent
- is a dateTime
- current_date-immunization_max_days_passed >= $.immunizations[*].date <= current_time
|
|
| primary_source. Validate - is sent
- validate primary_source is boolean
- validate primary_source is sent
|
|
one_of | performer. Validate - validate performer is a reference to employee
- validate employee is active and is_active=true
- validate employee.legal_entity_id belongs to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES
- validate performer is sent if primary_source=true
|
|
report_origin. Validate - validate report_origin is a codable concept
- validate report_origin is sent if primary_source=false
|
|
| legal_entity. Validate - as reference to legal_entity
- legal_entity is active
- legal_entity.id = client_id from token
- legal_entity_id belongs to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES
|
|
| manufacturer. Validate - as a string with max length = 2000
|
|
| lotNumber. Validate - as a string with max length = 2000
|
|
| expirationDate. Validate - as a real date_time
|
|
| site. Validate - as a codeable_concept
- by dictionary 'eHealth/body_sites'
|
|
| route. Validate - as a codeable_concept
- by dictionary 'eHealth/vaccination_routes'
|
|
| doseQuantity. Validate - as quantity
|
|
| explanation. Validate - as codeable_concept
- by dictionaries 'eHealth/reason_explanations', 'eHealth/reason_not_given_explanations'
|
|
| reaction.detail reactions. Validate - as reference to observation
- observation is made for the same person
- observation is not in status "entered_in_error"
|
|
| protocolApplied vaccination_protocols. Validate - series - string
- authority - reference to LE
- targetDisease - eHealth/vaccination_target_diseases
- doseNumberString
- seriesDosesString
|
|
| note. Validate - is string
|
|