To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorSite admin exception report
In order to see those exceptions from patient gathered information
As an
I want to download an exceptions report
Acceptance Criteria
1. CSV format
2. Admin only
- 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
-
- 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)"
- And
- I should see "Export to CSV"
- Download CSV
-
- Given
- I am signed in as an admin
- And
- I follow "Tools"
- Then
- I should see "Exceptions(0)"
- And
- I follow "Exceptions(0)"
- And
- I should see "Export to CSV"
- When
- I follow "Export to CSV"
- Then
- I should get a download with the filename "Ranges_Exceptions.csv"
Last published almost 7 years ago by wminsinger.