As a GP Practice User, I want to see the data that has led a Patient to be selected into the report, So that I can determine why a Patient has been included in an extract.
Given that a set of parameters, which are defined in the business rules, must be met
When a Patient is successfully selected and included in an extract
Then the parameters and the associated data that have been met should be available in the report.
Rule 1: Patient must be registered at the practice
Rule 2: patient must be over 65
Rule 3: patient must be male
Rule 4: patient must have either code x y or z between date a and b
The report should contain:
- the registration status
- the Patient's age
- the Patient's gender
- the code and the date which has led to selection