Commit 0583ea8
authored
Remove unique constraint on NHS number (#414)
# What is the change?
Remove unique constraint on user NHS number
# Why are we making this change?
At p5 level NHS login identities are only "claimed" identities and
multiple users may have the same NHS number (p9 is verified identity).
For pilot we will maintain multiple that multiple NHS numbers may exist
for different users in the system.
We should review post pilot and have a view to how to handle NHS number
duplicates for national launch and what this means for sending data to
other systems or for further care.
Currently the system uses the OIDC sub as a unique identifier so there
are no security concerns around one user seing another users data in the
case where 2 users have the same NHS number3 files changed
Lines changed: 24 additions & 11 deletions
File tree
- lung_cancer_screening/questions
- migrations
- models
- tests/unit/models
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 89 | | |
100 | 90 | | |
101 | 91 | | |
| |||
0 commit comments