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 »
| Validation | SD |
---|
| patient_id - validate patient_id is UUID
- validate patient exists in DB
- validate patient is active and is_active=true
|
|
| observation_id - validate observation_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
|
|
| diagnostic_report. Validate: - as reference
- diagnostic_report is sent in payload or exists in DB
- diagnostic_report not in status "entered_in_error"
|
|
| status. Validate: - by dictionary eHealth/observation_statuses
|
|
| categories. Validate: - as reference
- by dictionary eHealth/observation_categories
|
|
| code. Validate - as reference
- by dictionary eHealth/LOINC/observation_codes
|
|
| context - 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'
|
|
one_of | effective_date_time - as a real date
- current_date-observation_max_days_passed >= date <= current_time
|
|
effective_period - period as a Period
|
|
| issued |
|
| primary_source - validate primary_source is boolean
- validate primary_source is sent
|
|
one_of | performer |
|
report_origin |
|
| interpretation |
|
| comment |
|
| body_site |
|
| method |
|
one_of | value_quantity |
|
value_codeable_concept |
|
value_sampled_data |
|
value_string |
|
value_boolean |
|
value_range |
|
value_ratio |
|
value_time |
|
value_date_time |
|
value_period |
|
| reference_ranges |
|
| reaction_on |
|
| components - $.observations[*].components[*].value_period as a Period
|
|