Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 65 additions & 1 deletion application/CohortManager/src/Web/app/data/mockExceptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@
"NhsNumber": "2847593061",
"DateCreated": "2025-05-14T12:35:16.73",
"DateResolved": "9999-12-31T00:00:00",
"RuleId": 36,
"RuleId": 45,
"RuleDescription": "GP practice code does not exist in the BSS cohort organisation table",
"Category": 5,
"ScreeningName": "Breast Screening",
Expand All @@ -640,6 +640,70 @@
"ServiceNowCreatedDate": "",
"RecordUpdatedDate": "2025-05-16T09:18:54.41"
},
"2035": {
"ExceptionId": 2035,
"NhsNumber": "2847593072",
"DateCreated": "2025-05-14T12:35:16.73",
"DateResolved": "9999-12-31T00:00:00",
"RuleId": 49,
"RuleDescription": "Interpreter Required information is not valid",
"Category": 5,
"ScreeningName": "Breast Screening",
"ExceptionDate": "2025-05-12T00:00:00",
"CohortName": "",
"Fatal": 1,
"ExceptionDetails": {
"GivenName": "Maya",
"FamilyName": "Patel",
"DateOfBirth": "19921103",
"ParticipantAddressLine1": "74 Riverbank Close",
"ParticipantAddressLine2": "Flat 12",
"ParticipantAddressLine3": "Kings Heath",
"ParticipantAddressLine4": "Birmingham",
"ParticipantAddressLine5": "UK",
"ParticipantPostCode": "B14 7QP",
"TelephoneNumberHome": "07412345678",
"EmailAddressHome": "maya.patel@example.com",
"PrimaryCareProvider": "E50231",
"Gender": 2,
"SupersededByNhsNumber": ""
},
"ServiceNowId": "",
"ServiceNowCreatedDate": "",
"RecordUpdatedDate": "2025-05-16T09:18:54.41"
},
"2036": {
"ExceptionId": 2036,
"NhsNumber": "2847599972",
"DateCreated": "2025-05-14T12:35:16.73",
"DateResolved": "9999-12-31T00:00:00",
"RuleId": 53,
"RuleDescription": "Participant has re-registered and PDS has been updated with new GP practice code but has not yet received a new current posting.",
"Category": 5,
"ScreeningName": "Breast Screening",
"ExceptionDate": "2025-05-12T00:00:00",
"CohortName": "",
"Fatal": 1,
"ExceptionDetails": {
"GivenName": "Noah",
"FamilyName": "Ahmed",
"DateOfBirth": "19890921",
"ParticipantAddressLine1": "29 Hawthorn Close",
"ParticipantAddressLine2": "House 3",
"ParticipantAddressLine3": "Didsbury",
"ParticipantAddressLine4": "Manchester",
"ParticipantAddressLine5": "UK",
"ParticipantPostCode": "M20 4BQ",
"TelephoneNumberHome": "07987654321",
"EmailAddressHome": "noah.ahmed@example.com",
"PrimaryCareProvider": "E74120",
"Gender": 1,
"SupersededByNhsNumber": ""
},
"ServiceNowId": "",
"ServiceNowCreatedDate": "",
"RecordUpdatedDate": "2025-05-16T09:18:54.41"
},
"4001": {
"ExceptionId": 4001,
"NhsNumber": "3333333333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("ruleMapping", () => {
describe("ruleIdMappings", () => {
it("should contain all expected rule IDs", () => {
const expectedRuleIds = [
3, 8, 10, 17, 18, 21, 22, 30, 35, 36, 39, 40, 54, 66, 69, 71,
3, 8, 10, 17, 18, 21, 22, 30, 35, 39, 40, 54, 66, 69, 71,
];
const actualRuleIds = Object.keys(ruleIdMappings).map(Number);

Expand Down
24 changes: 18 additions & 6 deletions application/CohortManager/src/Web/app/lib/ruleMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ export const ruleIdMappings: Record<number, RuleMapping> = {
"Verify that the changes are correct, and that the NHS number is not involved in a confusion case.",
reportingId: "CMR38",
},
36: {
ruleDescription: "GP practice code does not exist.",
moreDetails: "Raise with Breast Screening Select (BSS).",
reportingId: "CMR45",
portalFormTitle: "Raise with Breast Screening Select (BSS)",
},
39: {
ruleDescription: "Missing surname.",
moreDetails: "Enter the patient's surname.",
Expand All @@ -77,6 +71,24 @@ export const ruleIdMappings: Record<number, RuleMapping> = {
moreDetails: "Enter the patient's forename.",
reportingId: "CMR16",
},
45: {
ruleDescription: "GP practice code does not exist",
moreDetails: "Raise with Breast Screening Select (BSS)",
reportingId: "CMR45",
portalFormTitle: "Raise with Breast Screening Select (BSS)",
},
49: {
ruleDescription: "Interpreter required information is not valid",
moreDetails:
"The interpreter required details must be entered as numbers 0 or 1. Check if an interpreter is needed for the participant: enter 0 if an interpreter is not required. Enter 1 if an interpreter is required",
reportingId: "CMR49",
},
53: {
ruleDescription: "Current posting awaiting update",
moreDetails:
"The patient’s GP practice code has been updated, but the current posting is yet to be updated",
reportingId: "CMR53",
},
54: {
ruleDescription:
"A dummy GP practice code could not be generated. An English postcode must be entered.",
Expand Down
Loading