|
| 1 | +@pfp_proxygen @pfp_aws @regression |
| 2 | +Feature: I can see my prescriptions via PFP Proxygen |
| 3 | + |
| 4 | + @blocker @smoke @e2e @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4222 |
| 5 | + Scenario: I can see a single prescription |
| 6 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 7 | + And I successfully prepare and sign a prescription |
| 8 | + When I am authenticated with PFP-PROXYGEN app |
| 9 | + And I request my prescriptions |
| 10 | + Then I can see my prescription |
| 11 | + |
| 12 | + # Spine defined limit of 25 prescriptions per request |
| 13 | + Scenario: I can see a maximum of 25 prescriptions |
| 14 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 15 | + And I successfully prepare and sign '26' nominated acute prescriptions |
| 16 | + When I am authenticated with PFP-PROXYGEN app |
| 17 | + And I request my prescriptions |
| 18 | + Then I can see '25' of my prescriptions |
| 19 | + |
| 20 | + # FLAKY WARNING: We've agreed to rely on NHS random generation to return an NHS number without prescriptions |
| 21 | + # This may cause flakiness if the random NHS number happens to have prescriptions |
| 22 | + Scenario: I can see no prescriptions |
| 23 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 24 | + And I successfully prepare and sign '0' nominated acute prescriptions |
| 25 | + When I am authenticated with PFP-PROXYGEN app |
| 26 | + And I request my prescriptions |
| 27 | + Then I can see '0' of my prescriptions |
| 28 | + |
| 29 | + Scenario: I cannot see unreleased prescriptions |
| 30 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 31 | + And I successfully prepare a nominated acute prescription |
| 32 | + When I am authenticated with PFP-PROXYGEN app |
| 33 | + And I request my prescriptions |
| 34 | + Then I cannot see my unreleased prescriptions |
| 35 | + |
| 36 | + Scenario: I cannot see eRD prescription items |
| 37 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 38 | + And I successfully prepare and sign a nominated eRD prescription |
| 39 | + When I am authenticated with PFP-PROXYGEN app |
| 40 | + And I request my prescriptions |
| 41 | + Then I do not see an eRD prescription |
| 42 | + |
| 43 | + Scenario: I can see a FHIR compliant response for my prescriptions |
| 44 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 45 | + And I successfully prepare and sign a nominated acute prescription |
| 46 | + When I am authenticated with PFP-PROXYGEN app |
| 47 | + And I request my prescriptions |
| 48 | + Then I validate the prescription matches my prepared prescription |
| 49 | + |
| 50 | + @e2e |
| 51 | + Scenario: I can see prescription item status (multiple statuses, multiple items) - acute, repeat |
| 52 | + Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 53 | + And I successfully prepare and sign '2' nominated acute prescriptions |
| 54 | + And I am an authorised dispenser with EPS-FHIR-DISPENSING app |
| 55 | + And I release all prescriptions |
| 56 | + When I set the statuses I will update through |
| 57 | + | Status | |
| 58 | + | With Pharmacy | |
| 59 | + Then I process the status updates for the prescription items and verify they are returned |
| 60 | + |
| 61 | +# # This scenario requires changes to FHIR compliance endpoint to be able to validate PFP responses |
| 62 | +# # Scenario: I can see prescription item details in FHIR compliant response |
| 63 | +# # Given I am an authorised prescriber with EPS-FHIR-PRESCRIBING app |
| 64 | +# # And I successfully prepare and sign a prescription |
| 65 | +# # When I am authenticated with PFP-PROXYGEN app |
| 66 | +# # And I request my prescriptions |
| 67 | +# # Then I am an authorised prescriber with EPS-FHIR app |
| 68 | +# # And I validate the response for FHIR compliance |
| 69 | +# # And the response indicates a success |
0 commit comments