diff --git a/models/brac/views/views.yml b/models/brac/views/views.yml index c862c4b8..b6d5b9b3 100644 --- a/models/brac/views/views.yml +++ b/models/brac/views/views.yml @@ -137,24 +137,30 @@ models: - relationships: to: ref('couchdb') field: doc ->> '_id' - - name: ancview_pregnancy + - name: ancview_pregnancy_visit columns: - name: uuid tests: - not_null - unique - relationships: - to: ref('useview_pregnancy') + to: ref('useview_pregnancy_visit') field: uuid - - name: reported_by + - name: ancview_delivery + columns: + - name: uuid tests: - not_null - - name: ancview_pregnancy_visit + - name: pregnancy_outcome + tests: + - not_null + - accepted_values: + values: ['healthy', 'still_birth'] + - name: ancview_danger_sign columns: - name: uuid tests: - not_null - - unique - - relationships: - to: ref('useview_pregnancy_visit') - field: uuid + - name: form + tests: + - not_null