Skip to content

Commit d841bd3

Browse files
authored
Merge pull request #13 from NHSDigital/feature/update-spec-sandbox-examples-1_0_11_alpha
Feature/update spec sandbox examples 1 0 11 alpha
2 parents e3983d3 + 3a599da commit d841bd3

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

sandbox/README.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,26 @@ There are a number of examples of responses which can be returned by passing spe
3333
3434
#### Example scenarios
3535
36-
| Patient ID | Response |
37-
|--------------|--------------------------------------------------|
38-
| 50000000001 | RSV - Actionable CP Booking |
39-
| 50000000002 | RSV - Actionable Non-CP Booking |
40-
| 50000000003 | RSV - Eligible, not Actionable |
41-
| 50000000004 | RSV - Not Eligible due to vaccination |
42-
| 50000000005 | RSV - Not Eligible due to not being in a cohort |
43-
| 50000000006 | RSV - No rules |
44-
| 90000000400 | Invalid input data |
45-
| 90000000404 | Person not found |
46-
| 90000000422 | Unrecognised input data. (Unprocessable Content) |
47-
| 90000000500 | Internal server error |
36+
| Patient ID | Response |
37+
|--------------|---------------------------------------------------------------------------------------------------------------------------------------|
38+
| 50000000001 | RSV - Actionable due to membership of an Age Cohort including suggested actions (with booking) |
39+
| 50000000002 | RSV - Actionable due to membership of an Age Cohort including suggested action (not booking) |
40+
| 50000000003 | RSV - Actionable due to membership of an alternative Age Cohort including suggested action (not booking) |
41+
| 50000000004 | RSV - Actionable due to membership of an Age Cohort including suggested action (existing national booking) |
42+
| 50000000005 | RSV - Actionable due to membership of an Age Cohort including suggested actions (not booking) |
43+
| 50000000006 | RSV - Not Actionable despite to membership of an Age Cohort with reasoning of already vaccinated |
44+
| 50000000007 | RSV - Not Actionable despite to membership of an Age Cohort with reasoning of no available vaccinations (not available type 1) |
45+
| 50000000008 | RSV - No RSV response as no active campaign (not available type 2) |
46+
| 50000000009 | RSV - Not Actionable despite to membership of an Age Cohort with reasoning of dose not yet due |
47+
| 50000000010 | RSV - Not Actionable despite to membership of an Age Cohort with reasoning of dose not far enough apart |
48+
| 50000000011 | RSV - Not Actionable despite to membership of an Age Cohort with reasoning of vaccination given in current setting (e.g. care home) |
49+
| 50000000012 | RSV - Not Actionable despite no cohort membership with reasoning of already vaccinated (type 1 includes unknown cohort) |
50+
| 50000000013 | RSV - Not Actionable despite no cohort membership with reasoning of already vaccinated (type 2 includes no cohorts) |
51+
| 50000000014 | RSV - Not Actionable despite no cohort membership with reasoning of already vaccinated (type 2 includes no cohorts) |
52+
| 90000000400 | Invalid input data |
53+
| 90000000404 | Person not found |
54+
| 90000000422 | Unrecognised input data. (Unprocessable Content) |
55+
| 90000000500 | Internal server error |
4856
4957
See [app.py](app.py) for current examples.
5058

sandbox/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
"patient-check/50000000004": "example_50000000004",
4545
"patient-check/50000000005": "example_50000000005",
4646
"patient-check/50000000006": "example_50000000006",
47+
"patient-check/50000000007": "example_50000000007",
48+
"patient-check/50000000008": "example_50000000008",
49+
"patient-check/50000000009": "example_50000000009",
50+
"patient-check/50000000010": "example_50000000010",
51+
"patient-check/50000000011": "example_50000000011",
52+
"patient-check/50000000012": "example_50000000012",
53+
"patient-check/50000000013": "example_50000000013",
54+
"patient-check/50000000014": "example_50000000014",
4755
"patient-check/90000000400": "code400",
4856
"patient-check/90000000404": "code404",
4957
"patient-check/90000000422": "code422",

0 commit comments

Comments
 (0)