Skip to end of metadata
Go to start of metadata
You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 4
Next »
| 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 - by dictionary eHealth/observation_statuses
|
|
| not_given. Validate - is sent
- as boolean
|
|
| vaccine_code. Validate - is sent
- as a codeable_concept
- by dictionary 'eHealth/vaccine_codes'
|
|
| 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'
|
|
| date. Validate - is sent
- 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
|
|
| lot_number. Validate - as a string with max length = 2000
|
|
| expiration_date. 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'
|
|
| dose_quantity. Validate - as quantity
|
|
| explanation. Validate - as codeable_concept
- by dictionaries 'eHealth/reason_explanations', 'eHealth/reason_not_given_explanations'
|
|
| reactions. Validate - as reference to observation
- observation is made for the same person
- observation is not in status "entered_in_error"
|
|
| vaccination_protocols. Validate | |