Skip to content

Commit 7c9cd9f

Browse files
feat: update UI rule descriptions (#1790)
* update rule descriptions * css Change for multi line more details
1 parent f9cb436 commit 7c9cd9f

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

application/CohortManager/src/Web/app/components/participantInformationPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default function ParticipantInformationPanel({
169169
<dd className="nhsuk-summary-list__value">
170170
<p>{exceptionDetails.shortDescription}</p>
171171
{exceptionDetails.moreDetails && (
172-
<p>{exceptionDetails.moreDetails}</p>
172+
<p className="nhsuk-summary-list__multiline">{exceptionDetails.moreDetails}</p>
173173
)}
174174
{exceptionDetails.reportingId && (
175175
<p>

application/CohortManager/src/Web/app/globals.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
max-width: 420px;
182182
}
183183

184+
.nhsuk-summary-list__multiline {
185+
white-space: pre-wrap;
186+
}
184187
.nhsuk-header__search-form {
185188
display: flex;
186189
}

application/CohortManager/src/Web/app/lib/ruleMapping.ts

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export const ruleIdMappings: Record<number, RuleMapping> = {
5353
},
5454
45: {
5555
ruleDescription: "GP practice code does not exist",
56-
moreDetails: "Raise with Breast Screening Select (BSS)",
56+
moreDetails: `National Service Desk (NSD) action: Raise with Breast Screening Select second line, including the following information.
57+
We were unable to process this record as the GP practice is not mapped to a breast screening office (BSO). This may be because it’s a new or split practice.
58+
To resolve this, please:
59+
check the GP practice details for errors
60+
if correct, assign the GP practice to the appropriate BSO in the organisational table (BSO-GP mapping table) `,
5761
reportingId: "CMR45",
5862
portalFormTitle: "Raise with Breast Screening Select (BSS)",
5963
},
@@ -89,6 +93,47 @@ export const ruleIdMappings: Record<number, RuleMapping> = {
8993
moreDetails: "Enter the patient's full address and postcode.",
9094
reportingId: "CMR17",
9195
},
96+
98: {
97+
ruleDescription: "Participant cannot be sent to BS Select due to reason for removal (RfR).",
98+
moreDetails: `National Service Desk (NSD) action: Raise with Breast Screening Select second line, including the following information.
99+
A request to manually add a participant could not be sent to BS Select.
100+
We checked the participant’s PDS record and found a reason for removal (RfR) code that BS Select will not accept.
101+
102+
The record contains one of the following RfR codes:
103+
104+
AFL (armed forces enlistment - notified locally)
105+
AFN (armed forces enlistment – notified by armed forces)
106+
DEA (death)
107+
LDN (logical deletion)
108+
SDL (services dependant – notified locally)
109+
SDN (service dependant – notified by SMO)
110+
TRA (temporary resident not returned)
111+
112+
Please contact the Breast Screening Office (BSO) that submitted the referral and explain why we are unable to add the participant to BS Select. `,
113+
reportingId: "CMR98",
114+
},
115+
97: {
116+
ruleDescription: "Missing GP details.",
117+
moreDetails: `National Service Desk (NSD) action:
118+
119+
Raise with Breast Screening Select second line, including the following information.
120+
121+
A request to manually add a participant could not be sent to BS Select as it does not contain GP details or a dummy GP code.
122+
123+
Please check the record. A valid GP code or a dummy GP code must be entered to send the participant to BS Select. `,
124+
reportingId: "CMR97",
125+
},
126+
3601:{
127+
ruleDescription: "GP practice not mapped to a breast screening office (BSO).",
128+
moreDetails: `National Service Desk (NSD) action: Raise with Breast Screening Select second line, including the following information.
129+
130+
A request to manually add a participant could not be processed as the GP practice code is not mapped to a breast screening office (BSO).
131+
132+
If the GP practice code is correct, it may not be mapped to a BSO because it is a new or split practice.
133+
134+
Check the GP practice code and add it to the organisational table (BSO-GP mapping table) if needed.`,
135+
reportingId: "CMR40",
136+
},
92137
};
93138

94139
export function getRuleMapping(

0 commit comments

Comments
 (0)