|
117 | 117 | <Step> |
118 | 118 | <Name>AssignMessage.OperationOutcomeErrorResponse</Name> |
119 | 119 | </Step> |
120 | | - <Condition>(raisefault.RaiseFault.403Forbidden = true) and (isFhirR4Path = false)</Condition> |
| 120 | + <Condition>(EUOAllowlistVerify.error_description ~~ ".*Invalid ODS code.*")</Condition>) |
121 | 121 | </FaultRule> |
122 | 122 | <FaultRule name="single_asid_ods_header_not_in_partner_list_error_fhir_r4"> |
123 | 123 | <Step> |
124 | | - <Condition>(isFhirR4Path = true)</Condition> |
125 | | - <Name>AssignMessage.SetOperationOutcomeVariablesR4</Name> |
| 124 | + <Name>AssignMessage.SetOperationOutcomeVariableR4</Name> |
126 | 125 | </Step> |
127 | 126 | <Step> |
128 | | - <Condition>(isFhirR4Path = false)</Condition> |
129 | | - <Name>AssignMessage.SetOperationOutcomeVariablesPreR4</Name> |
130 | | - </Step> |
131 | | - <Step> |
132 | | - <Name>AssignMessage.SetOperationOutcomeIssueIal</Name> |
| 127 | + <Name>AssignMessage.SetOperationOutcomeODSHeaderValueNotInPartnerListR4</Name> |
133 | 128 | </Step> |
134 | 129 | <Step> |
135 | 130 | <Name>AssignMessage.OperationOutcomeErrorResponse</Name> |
136 | 131 | </Step> |
137 | | - <Condition>(raisefault.RaiseFault.401InsufficientIal.failed = true)</Condition> |
| 132 | + <Condition>(EUOAllowlistVerify.error_description ~~ ".*Invalid ODS code.*") and (isFhirR4Path = true)</Condition>) |
138 | 133 | </FaultRule> |
139 | 134 | <FaultRule name="single_asid_ods_header_missing_error"> |
140 | | - <Step> |
141 | | - <Condition>(isFhirR4Path = true)</Condition> |
142 | | - <Name>AssignMessage.SetOperationOutcomeVariablesR4</Name> |
143 | | - </Step> |
144 | 135 | <Step> |
145 | 136 | <Condition>(isFhirR4Path = false)</Condition> |
146 | 137 | <Name>AssignMessage.SetOperationOutcomeVariablesPreR4</Name> |
147 | 138 | </Step> |
148 | 139 | <Step> |
149 | | - <Name>AssignMessage.SetOperationOutcomeIssueIal</Name> |
| 140 | + <Name>AssignMessage.SetOperationOutcomeODSHeaderMissing</Name> |
150 | 141 | </Step> |
151 | 142 | <Step> |
152 | 143 | <Name>AssignMessage.OperationOutcomeErrorResponse</Name> |
153 | 144 | </Step> |
154 | | - <Condition>(raisefault.RaiseFault.401InsufficientIal.failed = true)</Condition> |
| 145 | + <Condition>(EUOAllowlistVerify.error_description ~~ ".*Missing or Empty NHSD-End-User-Organisation-ODS header.*")</Condition>) |
155 | 146 | </FaultRule> |
156 | 147 | <FaultRule name="single_asid_ods_header_missing_error_fhir_r4"> |
157 | 148 | <Step> |
158 | | - <Condition>(isFhirR4Path = true)</Condition> |
159 | | - <Name>AssignMessage.SetOperationOutcomeVariablesR4</Name> |
| 149 | + <Name>AssignMessage.SetOperationOutcomeVariableR4</Name> |
160 | 150 | </Step> |
161 | 151 | <Step> |
162 | | - <Condition>(isFhirR4Path = false)</Condition> |
163 | | - <Name>AssignMessage.SetOperationOutcomeVariablesPreR4</Name> |
164 | | - </Step> |
165 | | - <Step> |
166 | | - <Name>AssignMessage.SetOperationOutcomeIssueIal</Name> |
| 152 | + <Name>AssignMessage.SetOperationOutcomeODSHeaderMissingR4</Name> |
167 | 153 | </Step> |
168 | 154 | <Step> |
169 | 155 | <Name>AssignMessage.OperationOutcomeErrorResponse</Name> |
170 | 156 | </Step> |
171 | | - <Condition>(raisefault.RaiseFault.401InsufficientIal.failed = true)</Condition> |
| 157 | + <Condition>(EUOAllowlistVerify.error_description ~~ ".*Missing or Empty NHSD-End-User-Organisation-ODS header.*") and (isFhirR4Path = true)</Condition>) |
172 | 158 | </FaultRule> |
173 | 159 | </FaultRules> |
174 | 160 | <PreFlow> |
|
235 | 221 | <Condition>(request.header.nhsd-ers-business-function == "AUTHORISED_APPLICATION")</Condition> |
236 | 222 | </Step> <Step> |
237 | 223 | <Name>RaiseFault.403Forbidden</Name> |
238 | | - <Condition>(EUOAllowlistVerify.verified = false)</Condition> |
| 224 | + <Condition>(EUOAllowlistVerify.error_description = false)</Condition> |
239 | 225 | </Step> <Step> |
240 | 226 | </Step> <Step> |
241 | 227 | <Name>AssignMessage.Set.x-ers-access-mode-header-user-restricted</Name> |
|
0 commit comments