Commit 5b15e86
authored
sc-17011 Bypass facility authorization validation for patient reassig… (#5715)
Bypass Facility Authorization Validation for Patient Reassignment
**Story card:**
[sc-17011](https://app.shortcut.com/simpledotorg/story/17011/bypass-facility-authorization-validation-for-patient-reassignment)
## Because
The facility authorization validation was blocking patient reassignment.
We need to skip this validation when `skip_facility_authorization: true`
is set.
## This addresses
Adds a flag to bypass facility authorization validation for patient
reassignment.
## Test instructions
1. Create or reassign a patient to any facility.
2. Sync the data — the patient should disappear from the current
facility.
3. Go to the assigned facility, sync first, and then verify that the
patient appears in the list.1 parent 3b0b239 commit 5b15e86
File tree
3 files changed
+44
-1
lines changed- app/controllers/api/v3
- spec
- controllers/api/v3
- validators/api/v3
3 files changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
137 | 165 | | |
138 | 166 | | |
139 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
131 | 146 | | |
132 | 147 | | |
133 | 148 | | |
| |||
0 commit comments