|
3 | 3 | "WorkflowName": "Common", |
4 | 4 | "Rules": [ |
5 | 5 | { |
6 | | - "RuleName": "9.NhsNumber.Fatal", |
| 6 | + "RuleName": "9.NhsNumber.CaaS.Fatal", |
7 | 7 | "Expression": "Regex.IsMatch(participant.NhsNumber, \"^\\\\d{10}$\")", |
8 | 8 | "Actions": { |
9 | 9 | "OnFailure": { |
|
15 | 15 | } |
16 | 16 | }, |
17 | 17 | { |
18 | | - "RuleName": "57.SupersededByNhsNumber.NonFatal", |
| 18 | + "RuleName": "57.SupersededByNhsNumber.NBO.NonFatal", |
19 | 19 | "Expression": "string.IsNullOrEmpty(participant.SupersededByNhsNumber) OR Regex.IsMatch(participant.SupersededByNhsNumber, \"^\\\\d{10}$\")", |
20 | 20 | "Actions": { |
21 | 21 | "OnFailure": { |
|
27 | 27 | } |
28 | 28 | }, |
29 | 29 | { |
30 | | - "RuleName": "8.RecordType.NonFatal", |
| 30 | + "RuleName": "8.RecordType.CaaS.NonFatal", |
31 | 31 | "Expression": "participant.RecordType == Actions.New OR participant.RecordType == Actions.Amended OR participant.RecordType == Actions.Removed", |
32 | 32 | "Actions": { |
33 | 33 | "OnFailure": { |
|
39 | 39 | } |
40 | 40 | }, |
41 | 41 | { |
42 | | - "RuleName": "14.ReasonForRemoval.NonFatal", |
| 42 | + "RuleName": "14.ReasonForRemoval.NBO.NonFatal", |
43 | 43 | "Expression": "string.IsNullOrEmpty(participant.ReasonForRemoval) OR new string[] {\"AFL\",\"AFN\",\"CGA\",\"DEA\",\"DIS\",\"EMB\",\"LDN\",\"NIT\",\"OPA\",\"ORR\",\"RDI\",\"RDR\",\"RFI\",\"RPR\",\"SCT\",\"SDL\",\"SDN\",\"TRA\"}.Contains(participant.ReasonForRemoval)", |
44 | 44 | "Actions": { |
45 | 45 | "OnFailure": { |
|
51 | 51 | } |
52 | 52 | }, |
53 | 53 | { |
54 | | - "RuleName": "30.Postcode.NonFatal", |
| 54 | + "RuleName": "30.Postcode.NBO.NonFatal", |
55 | 55 | "Expression": "string.IsNullOrEmpty(participant.Postcode) OR ValidationHelper.ValidatePostcode(participant.Postcode)", |
56 | 56 | "Actions": { |
57 | 57 | "OnFailure": { |
|
63 | 63 | } |
64 | 64 | }, |
65 | 65 | { |
66 | | - "RuleName": "3.PrimaryCareProviderAndReasonForRemoval.NonFatal", |
| 66 | + "RuleName": "3.PrimaryCareProviderAndReasonForRemoval.NBO.NonFatal", |
67 | 67 | "Expression": "(string.IsNullOrEmpty(participant.PrimaryCareProvider) AND !string.IsNullOrEmpty(participant.ReasonForRemoval)) OR (!string.IsNullOrEmpty(participant.PrimaryCareProvider) AND string.IsNullOrEmpty(participant.ReasonForRemoval))", |
68 | 68 | "Actions": { |
69 | 69 | "OnFailure": { |
|
75 | 75 | } |
76 | 76 | }, |
77 | 77 | { |
78 | | - "RuleName": "17.DateOfBirth.NonFatal", |
| 78 | + "RuleName": "17.DateOfBirth.NBO.NonFatal", |
79 | 79 | "Expression": "!(string.IsNullOrEmpty(participant.DateOfBirth) || !ValidationHelper.ValidatePastDate(participant.DateOfBirth))", |
80 | 80 | "Actions": { |
81 | 81 | "OnFailure": { |
|
87 | 87 | } |
88 | 88 | }, |
89 | 89 | { |
90 | | - "RuleName": "39.FamilyName.NonFatal", |
| 90 | + "RuleName": "39.FamilyName.NBO.NonFatal", |
91 | 91 | "Expression": "!(participant.RecordType != Actions.Amended && string.IsNullOrEmpty(participant.FamilyName))", |
92 | 92 | "Actions": { |
93 | 93 | "OnFailure": { |
|
99 | 99 | } |
100 | 100 | }, |
101 | 101 | { |
102 | | - "RuleName": "40.FirstName.NonFatal", |
| 102 | + "RuleName": "40.FirstName.NBO.NonFatal", |
103 | 103 | "Expression": "!(participant.RecordType != Actions.Amended && string.IsNullOrEmpty(participant.FirstName))", |
104 | 104 | "Actions": { |
105 | 105 | "OnFailure": { |
|
111 | 111 | } |
112 | 112 | }, |
113 | 113 | { |
114 | | - "RuleName": "42.GPPracticeCode.NonFatal", |
| 114 | + "RuleName": "42.GPPracticeCode.NBO.NonFatal", |
115 | 115 | "Expression": "participant.RecordType != Actions.New OR !string.IsNullOrEmpty(participant.PrimaryCareProvider)", |
116 | 116 | "Actions": { |
117 | 117 | "OnFailure": { |
|
123 | 123 | } |
124 | 124 | }, |
125 | 125 | { |
126 | | - "RuleName": "19.ReasonForRemovalEffectiveFromDate.NonFatal", |
| 126 | + "RuleName": "19.ReasonForRemovalEffectiveFromDate.NBO.NonFatal", |
127 | 127 | "Expression": "string.IsNullOrEmpty(participant.ReasonForRemovalEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.ReasonForRemovalEffectiveFromDate)", |
128 | 128 | "Actions": { |
129 | 129 | "OnFailure": { |
|
135 | 135 | } |
136 | 136 | }, |
137 | 137 | { |
138 | | - "RuleName": "100.PrimaryCareProviderEffectiveFromDate.NonFatal", |
| 138 | + "RuleName": "100.PrimaryCareProviderEffectiveFromDate.NBO.NonFatal", |
139 | 139 | "Expression": "string.IsNullOrEmpty(participant.PrimaryCareProviderEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.PrimaryCareProviderEffectiveFromDate)" |
140 | 140 | }, |
141 | 141 | { |
142 | | - "RuleName": "101.CurrentPostingEffectiveFromDate.NonFatal", |
| 142 | + "RuleName": "101.CurrentPostingEffectiveFromDate.NBO.NonFatal", |
143 | 143 | "Expression": "string.IsNullOrEmpty(participant.CurrentPostingEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.CurrentPostingEffectiveFromDate)" |
144 | 144 | }, |
145 | 145 | { |
146 | | - "RuleName": "102.UsualAddressEffectiveFromDate.NonFatal", |
| 146 | + "RuleName": "102.UsualAddressEffectiveFromDate.NBO.NonFatal", |
147 | 147 | "Expression": "string.IsNullOrEmpty(participant.UsualAddressEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.UsualAddressEffectiveFromDate)" |
148 | 148 | }, |
149 | 149 | { |
150 | | - "RuleName": "103.TelephoneNumberEffectiveFromDate.NonFatal", |
| 150 | + "RuleName": "103.TelephoneNumberEffectiveFromDate.NBO.NonFatal", |
151 | 151 | "Expression": "string.IsNullOrEmpty(participant.TelephoneNumberEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.TelephoneNumberEffectiveFromDate)" |
152 | 152 | }, |
153 | 153 | { |
154 | | - "RuleName": "104.MobileNumberEffectiveFromDate.NonFatal", |
| 154 | + "RuleName": "104.MobileNumberEffectiveFromDate.NBO.NonFatal", |
155 | 155 | "Expression": "string.IsNullOrEmpty(participant.MobileNumberEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.MobileNumberEffectiveFromDate)" |
156 | 156 | }, |
157 | 157 | { |
158 | | - "RuleName": "105.EmailAddressEffectiveFromDate.NonFatal", |
| 158 | + "RuleName": "105.EmailAddressEffectiveFromDate.NBO.NonFatal", |
159 | 159 | "Expression": "string.IsNullOrEmpty(participant.EmailAddressEffectiveFromDate) OR ValidationHelper.ValidatePastDate(participant.EmailAddressEffectiveFromDate)" |
160 | 160 | }, |
161 | 161 | { |
162 | | - "RuleName": "18.DateOfDeath.NonFatal", |
| 162 | + "RuleName": "18.DateOfDeath.NBO.NonFatal", |
163 | 163 | "Expression": "string.IsNullOrEmpty(participant.DateOfDeath) OR ValidationHelper.ValidatePastDate(participant.DateOfDeath)", |
164 | 164 | "Actions": { |
165 | 165 | "OnFailure": { |
|
171 | 171 | } |
172 | 172 | }, |
173 | 173 | { |
174 | | - "RuleName": "47.NewParticipantWithRemovalOrDeath.NonFatal", |
| 174 | + "RuleName": "47.NewParticipantWithRemovalOrDeath.NBO.NonFatal", |
175 | 175 | "Expression": "participant.RecordType != Actions.New OR (string.IsNullOrEmpty(participant.ReasonForRemoval) AND string.IsNullOrEmpty(participant.ReasonForRemovalEffectiveFromDate) AND string.IsNullOrEmpty(participant.DateOfDeath))", |
176 | 176 | "Actions": { |
177 | 177 | "OnFailure": { |
|
183 | 183 | } |
184 | 184 | }, |
185 | 185 | { |
186 | | - "RuleName": "49.InterpreterCheck.NonFatal", |
| 186 | + "RuleName": "49.InterpreterCheck.NBO.NonFatal", |
187 | 187 | "Expression": "int.Parse(participant.IsInterpreterRequired) != 0 OR int.Parse(participant.IsInterpreterRequired) != 1", |
188 | 188 | "Actions": { |
189 | 189 | "OnFailure": { |
|
195 | 195 | } |
196 | 196 | }, |
197 | 197 | { |
198 | | - "RuleName": "61.InvalidFlag.NonFatal", |
| 198 | + "RuleName": "61.InvalidFlag.NBO.NonFatal", |
199 | 199 | "Expression": "participant.InvalidFlag == \"1\" OR participant.InvalidFlag == \"0\"", |
200 | 200 | "Actions": { |
201 | 201 | "OnFailure": { |
|
207 | 207 | } |
208 | 208 | }, |
209 | 209 | { |
210 | | - "RuleName": "62.ValidateReasonForRemoval.NonFatal", |
| 210 | + "RuleName": "62.ValidateReasonForRemoval.NBO.NonFatal", |
211 | 211 | "Expression": "!(participant.ReasonForRemoval == \"LDN\" AND string.IsNullOrEmpty(participant.SupersededByNhsNumber))", |
212 | 212 | "Actions": { |
213 | 213 | "OnFailure": { |
|
219 | 219 | } |
220 | 220 | }, |
221 | 221 | { |
222 | | - "RuleName": "53.CurrentPostingAndPrimaryCareProvider.NonFatal", |
| 222 | + "RuleName": "53.CurrentPostingAndPrimaryCareProvider.NBO.NonFatal", |
223 | 223 | "LocalParams": [ |
224 | 224 | { |
225 | 225 | "Name": "currentPosting", |
|
241 | 241 | } |
242 | 242 | }, |
243 | 243 | { |
244 | | - "RuleName": "94.EligibilityFlag.NonFatal", |
| 244 | + "RuleName": "94.EligibilityFlag.CaaS.NonFatal", |
245 | 245 | "LocalParams": [ |
246 | 246 | { |
247 | 247 | "Name": "newRecordType", |
|
284 | 284 | "WorkflowName": "ADD", |
285 | 285 | "Rules": [ |
286 | 286 | { |
287 | | - "RuleName": "71.NewParticipantWithNoAddress.NonFatal", |
| 287 | + "RuleName": "71.NewParticipantWithNoAddress.NBO.NonFatal", |
288 | 288 | "Expression": "!(participant.RecordType == Actions.New AND string.IsNullOrEmpty(participant.AddressLine1) AND string.IsNullOrEmpty(participant.AddressLine2) AND string.IsNullOrEmpty(participant.AddressLine3) AND string.IsNullOrEmpty(participant.AddressLine4) AND string.IsNullOrEmpty(participant.AddressLine5))", |
289 | 289 | "Actions": { |
290 | 290 | "OnFailure": { |
|
301 | 301 | "WorkflowName": "AMENDED", |
302 | 302 | "Rules": [ |
303 | 303 | { |
304 | | - "RuleName": "66.DeathStatus.NonFatal", |
| 304 | + "RuleName": "66.DeathStatus.NBO.NonFatal", |
305 | 305 | "LocalParams": [ |
306 | 306 | { |
307 | 307 | "Name": "IsUpdateRequest", |
|
0 commit comments