Logo: Relish

  1. Sign in

Project: Lombard

Exception Report

In order to view those patients with vital information outside of accepted ranges
as an administrator
I need to be able to view those procedure questionnaires and the data raising the exception

Acceptance Criteria:
1. Include Subject ID
2. Include procedure date & timepoint
3. click through to edit form
4. respect view permissions i.e. admin sees everybody

Background Patient with incomplete forms
Given
the following patients:
subject_id dob
12345 2/4/1967
And
the survey
survey "Ranges" do
  section "Section One" do
    label "Integer Ranges"

    q_1 "how tall are you?", :is_mandatory => true
      answer "height", :integer
      validation :rule => "A", :warning => true
      condition_A ">=", :integer_value => 24

    q_2 "how many fingers do you have?", :is_mandatory => true
      answer "fingers", :integer
      validation :rule => "A", :message => 'Has more than ten fingers', :warning => true
      condition_A "<=", :integer_value => 10

    q_3 "what is your weight?", :is_mandatory => true
      answer "weight", :integer
      validation :rule => "A and B", :message => "This is an unusual weight", :warning => true
      condition_A "<=", :integer_value => 500
      condition_B ">=", :integer_value => 1
  end
end
Scenarios
  • @javascript
View Report
Given
I am signed in as a clinician
And
I am on the patients page
When
I follow "12345"
And
I press "Ranges"
And
I fill in and change "height" with "30"
And
I fill in and change "fingers" with "20"
Then
I should see an inline warning
And
I sign out
When
I am signed in as an admin
And
I follow "Admin"
And
I follow "Reports"
Then
I should see "Exceptions(1)"
And
I follow "Exceptions(1)"
Then
I should see "20"
  • @javascript
Click through to edit report
Given
I am signed in as an admin
When
I follow "Admin"
And
I follow "Reports"
And
I follow "Exceptions(1)"
Then
I should see "20"

Last published over 5 years ago by wminsinger.