Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,6 @@ private static void setPresentation(GpSummary gpSummary, Composition composition
removeEmptyNodes(divDocument);
var divChildNodes = divDocument.getDocumentElement().getChildNodes();
for (int i = 0; i < divChildNodes.getLength(); i++) {
String toReplaceWith = divChildNodes.item(i).getTextContent();

// There has previously been incorrect verbiage in some SCRs. This helps to standardise language.
if (toReplaceWith.contains("One or more entries have been deliberately withheld from this GP Summary.")) {
toReplaceWith = toReplaceWith.replace("deliberately withheld", "intentionally withheld");
divChildNodes.item(i).setTextContent(toReplaceWith);
}
bodyNode.appendChild(htmlDocument.importNode(divChildNodes.item(i), true));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ private static Composition.SectionComponent buildSectionComponent(ParsedHtml par
.addCoding(new Coding()
.setCode(parsedHtml.h2Id)));
}
String toBeReplaced = sectionComponent.getText().getDiv().getValue();

if (toBeReplaced.contains("One or more entries have been deliberately withheld from this GP Summary.")) {
toBeReplaced = toBeReplaced.replace(
"One or more entries have been deliberately withheld from this GP Summary.",
"One or more entries have been withheld from this GP Summary.");
sectionComponent.getText().getDiv().setValue(toBeReplaced);
}

return sectionComponent;
}

Expand Down
Loading