Skip to content

Commit fdf375f

Browse files
* Fix whitespace issues.
1 parent 62a94de commit fdf375f

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/exception/XmlSchemaValidationException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ public class XmlSchemaValidationException extends RuntimeException {
55
public XmlSchemaValidationException(String message, Throwable cause) {
66
super(message, cause);
77
}
8-
}
8+
}

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractMapper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
import java.util.Optional;
3939
import java.util.stream.Collectors;
4040

41-
42-
4341
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
4442
@Component
4543
@Slf4j
@@ -67,7 +65,6 @@ public String mapEhrExtractToXml(EhrExtractTemplateParameters ehrExtractTemplate
6765
return TemplateUtils.fillTemplate(EHR_EXTRACT_TEMPLATE, ehrExtractTemplateParameters);
6866
}
6967

70-
7168
public void validateXmlAgainstSchema(String xml) {
7269
String interactionId = redactionsContext.ehrExtractInteractionId();
7370
boolean isRedactionInteraction = RedactionsContext.REDACTION_INTERACTION_ID.equals(interactionId);
@@ -87,7 +84,6 @@ public void validateXmlAgainstSchema(String xml) {
8784
}
8885
}
8986

90-
9187
public EhrExtractTemplateParameters mapBundleToEhrFhirExtractParams(
9288
GetGpcStructuredTaskDefinition getGpcStructuredTaskDefinition, Bundle bundle) {
9389
var ehrExtractTemplateParameters = setSharedExtractParams(getGpcStructuredTaskDefinition);

service/src/main/java/uk/nhs/adaptors/gp2gp/gpc/StructuredRecordMappingService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public class StructuredRecordMappingService {
5959
private final SupportedContentTypes supportedContentTypes;
6060
private final EhrExtractStatusService ehrExtractStatusService;
6161

62-
6362
private DocumentBuilder documentBuilder;
6463

6564
public static final String DEFAULT_ATTACHMENT_CONTENT_TYPE = "text/plain";
@@ -157,8 +156,8 @@ public String mapStructuredRecordToEhrExtractXml(GetGpcStructuredTaskDefinition
157156
ehrExtractMapper.validateXmlAgainstSchema(ehrExtractContent);
158157
} catch (XmlSchemaValidationException e) {
159158
LOGGER.error("EHR Extract XML validation failed: {}", e.getMessage());
160-
161159
}
160+
162161
ehrExtractStatusService.saveEhrExtractMessageId(structuredTaskDefinition.getConversationId(),
163162
ehrExtractTemplateParameters.getEhrExtractId());
164163

@@ -214,4 +213,4 @@ private static Node removeComponentsFromEhrFolder(Document document) throws XPat
214213

215214
return parent;
216215
}
217-
}
216+
}

service/src/test/resources/uat/output/TC4/9465701262_Meyers_full_20210119.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<RCMR_IN030000UK06 xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 ..\Schemas\RCMR_IN030000UK06.xsd">
23
<id root="0D07B623-3926-4245-80AF-97F1098D90C1" />
34
<creationTime value="20200101010101" />

0 commit comments

Comments
 (0)