Skip to content

Commit 342f512

Browse files
authored
updating a log message to be more clear (#1017)
1 parent 9c14598 commit 342f512

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/EhrResendController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public ResponseEntity<String> scheduleEhrExtractResend(@PathVariable String conv
5959
if (hasNoErrorsInEhrReceivedAcknowledgement(ehrExtractStatus) && ehrExtractStatus.getError() == null) {
6060

6161
var details = getCodeableConcept(PRECONDITION_FAILED);
62-
var diagnostics = "The current resend operation is still in progress. Please wait for it to complete before retrying";
62+
var diagnostics = "The current patient transfer operation is still in progress. "
63+
+ "The conversation can only be resent after a negative acknowledgement is sent/received, "
64+
+ "or no acknowledgement is received from the requesting side 8 days after sending the EHR.";
6365
var operationOutcome = createOperationOutcome(OperationOutcome.IssueType.BUSINESSRULE,
6466
OperationOutcome.IssueSeverity.ERROR,
6567
details,

service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/EhrResendControllerTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
@ExtendWith(MockitoExtension.class)
4040
class EhrResendControllerTest {
4141

42-
public static final String DIAGNOSTICS_MSG =
43-
"The current resend operation is still in progress. Please wait for it to complete before retrying";
42+
public static final String DIAGNOSTICS_MSG
43+
= "The current patient transfer operation is still in progress. "
44+
+ "The conversation can only be resent after a negative acknowledgement is sent/received, "
45+
+ "or no acknowledgement is received from the requesting side 8 days after sending the EHR.";
4446
private static final Instant NOW = Instant.parse("2024-01-01T10:00:00Z");
4547
private static final Instant FIVE_DAYS_AGO = NOW.minus(Duration.ofDays(5));
4648
private static final String URI_TYPE = "https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-OperationOutcome-1";

0 commit comments

Comments
 (0)