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 | Structure Definition |
---|
patient_id - validate patient_id is UUID
- validate patient exists in DB
- validate patient is active and is_active=true
|
|
condition.id - validate condition_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
|
|
primary_source - validate primary_source is boolean
- validate primary_source is sent
|
|
asserter - validate asserter is a reference to employee
- validate employee is active and is_active=true
- validate employee.legal_entity_id belong to MEDICATION_REQUEST_REQUEST_LEGAL_ENTITY_TYPES
- validate asserter is sent if primary_source=true
|
|
report_origin - validate asserter is a codable concept
- validate asserter is sent if primary_source=false
|
|
context - validate context is reference to encounter
- validate context is reference to the encounter in the same transaction 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'
|
|
code | |
| |
| |
| |
| |
onset_date - validate is a real date
- validate onset_date <= current_date
- condition[*].onset_date>=current_date-condition_max_days_passed
|
|
| |
evidences - validate evidences is a reference to observation
- evidences is an ID of existing observation in DB or one in the same transaction
- validate observation is made for the same patient_id
- validate observation is not in status 'entered_in_error'
- validate observation.managing_organization = client_id from token
|
|