Last active
August 29, 2015 14:24
-
-
Save richardjpope/55f8529f1d9e6dd76632 to your computer and use it in GitHub Desktop.
Free prescriptions (cucumber)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://www.nhs.uk/NHSEngland/Healthcosts/Pages/Prescriptioncosts.aspx | |
Given a user is dispensed a prescription | |
When their age is >= 60 | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
And their age is < 16 | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When their age is >= 16 and <= 18 and they are in full-time education | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they are pregnant | |
And have a valid MedEx certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they have had a baby in the past 12 months | |
And have a valid MedEx certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they have a specified medical condition | |
And they have a valid MedEx certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they have a continuing physical disability that prevents them from going out without help from another person | |
And they have a valid MedEx certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they have a War Pension exemption certificate | |
And the prescription is for their accepted disability | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they are an inpatient | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner have an NHS tax credit exemption certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner have a valid HC2 certificate | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner receive the benefit "Income Support" | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner receive the "Income-based Jobseeker’s Allowance" benefit | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner receive the "Income-related Employment and Support Allowance" benefit | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner receive the "Pension Credit Guarantee Credit" benefit | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they or their partner receive the "Universal Credit" benefit | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they live permanently in a care home | |
And hold savings, investments or property (not counting the place where they live) of £23,250 or less | |
And their income is <= their requirements, or greater by no more than half the current English prescription charge | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
When they do not live permanently in a care home | |
And hold savings, investments or property (not counting the place where they live) of £16,000 or less | |
And their income is <= their requirements, or greater by no more than half the current English prescription charge | |
Then the prescription cost should be 0 |
runnable version from @rgarner https://github.com/rgarner/code-driven-policy
looking at the prescription url it mentions MatEx (not MedEx) for pregnancy/recent baby (i don't know enough to know if MatEx and MedEx are the same thing) ...
Given a user is dispensed a prescription
When they are pregnant
And have a valid MedEx certificate
Then the prescription cost should be 0
Given a user is dispensed a prescription
When they have had a baby in the past 12 months
And have a valid MedEx certificate
Then the prescription cost should be 0
clearer version by @tomstuart https://gist.github.com/tomstuart/7249ad30e56c45d227da
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated thanks to @dracos https://gist.github.com/dracos/171109ff71e7756e3046/revisions