Logo: Relish

  1. Sign in

Project: Lombard

User audits patient

In order to view changes to a patient
As an admin user viewing a patient
I want to audit changes to a patient

Background
Given
the following patients:
subject_id dob
12345 2/4/1967
Scenarios
  • @audit
Scenario
Given
I am signed in
And
I am on the patients page
When
I follow "Add Patient"
And
I fill in "Subject ID" with "Justin"
And
I fill in "Date of birth" with "01/01/1965"
And
I press "Create New Patient"
Then
I should see "Justin"
When
I follow "Audit"
Then
I should see "Audit Trail for Justin"
  • @audit
Scenario
Given
I am signed in
And
I am on the new patient page
When
I fill in "Subject ID" with "123"
And
I press "Find Patient"
Then
I should see "12345"
When
I follow "12345"
Then
I should see "12345"
When
I follow "Audit"
Then
I should see "searched_at"
And
I should see "viewed_at"

Last published over 5 years ago by wminsinger.