diff --git a/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/fhir/CompositionMapper.java b/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/fhir/CompositionMapper.java index 4921115a..cd77c9a8 100644 --- a/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/fhir/CompositionMapper.java +++ b/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/fhir/CompositionMapper.java @@ -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)); } } diff --git a/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/hl7/HtmlParser.java b/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/hl7/HtmlParser.java index 2a2790a3..d95bcc66 100644 --- a/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/hl7/HtmlParser.java +++ b/docker/service/src/main/java/uk/nhs/adaptors/scr/mappings/from/hl7/HtmlParser.java @@ -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; }