diff --git a/src/InformaticsGateway/Services/HealthLevel7/MllpClient.cs b/src/InformaticsGateway/Services/HealthLevel7/MllpClient.cs index 2912de8b..2f1b329d 100755 --- a/src/InformaticsGateway/Services/HealthLevel7/MllpClient.cs +++ b/src/InformaticsGateway/Services/HealthLevel7/MllpClient.cs @@ -213,7 +213,7 @@ private bool CreateMessage(int startIndex, int endIndex, ref string data, out Me var text = data.Substring(messageStartIndex, endIndex - messageStartIndex); _logger.Hl7GenerateMessage(text.Length, text); message = new Message(text); - message.ParseMessage(); + message.ParseMessage(false); data = data.Length > endIndex ? data.Substring(messageEndIndex) : string.Empty; return true; } diff --git a/src/InformaticsGateway/Services/HealthLevel7/MllpExtract.cs b/src/InformaticsGateway/Services/HealthLevel7/MllpExtract.cs index 2f3497e3..d60acf40 100755 --- a/src/InformaticsGateway/Services/HealthLevel7/MllpExtract.cs +++ b/src/InformaticsGateway/Services/HealthLevel7/MllpExtract.cs @@ -150,7 +150,7 @@ private Message RepopulateMessage(Hl7ApplicationConfigEntity config, ExternalApp { var newMess = message.HL7Message.Replace(oldvalue, details.PatientId); message = new Message(newMess); - message.ParseMessage(); + message.ParseMessage(false); } } else if (tag == DicomTag.StudyInstanceUID) @@ -162,7 +162,7 @@ private Message RepopulateMessage(Hl7ApplicationConfigEntity config, ExternalApp { var newMess = message.HL7Message.Replace(oldvalue, details.StudyInstanceUid); message = new Message(newMess); - message.ParseMessage(); + message.ParseMessage(false); } } } diff --git a/src/InformaticsGateway/Services/HealthLevel7/MllpService.cs b/src/InformaticsGateway/Services/HealthLevel7/MllpService.cs index a9a004c9..1ee3d0a9 100755 --- a/src/InformaticsGateway/Services/HealthLevel7/MllpService.cs +++ b/src/InformaticsGateway/Services/HealthLevel7/MllpService.cs @@ -340,7 +340,7 @@ private async Task EnsureAck(NetworkStream networkStream) foreach (var message in _rawHl7Messages) { var hl7Message = new Message(message); - hl7Message.ParseMessage(); + hl7Message.ParseMessage(false); if (hl7Message.MessageStructure == "ACK") { return; diff --git a/src/InformaticsGateway/Test/Services/Common/InputHL7DataPlugInEngineTest.cs b/src/InformaticsGateway/Test/Services/Common/InputHL7DataPlugInEngineTest.cs index 759c9df3..8dd77674 100755 --- a/src/InformaticsGateway/Test/Services/Common/InputHL7DataPlugInEngineTest.cs +++ b/src/InformaticsGateway/Test/Services/Common/InputHL7DataPlugInEngineTest.cs @@ -115,7 +115,7 @@ public async Task GivenAnInputHL7DataPlugInEngine_WhenExecutePlugInsIsCalledWith "called"); var message = new HL7.Dotnetcore.Message(SampleMessage); - message.ParseMessage(); + message.ParseMessage(false); await Assert.ThrowsAsync(async () => await pluginEngine.ExecutePlugInsAsync(message, dicomInfo, config)); } @@ -152,7 +152,7 @@ public async Task GivenAnInputHL7DataPlugInEngine_WhenExecutePlugInsIsCalled_Exp "called"); var message = new HL7.Dotnetcore.Message(SampleMessage); - message.ParseMessage(); + message.ParseMessage(false); var (Hl7Message, resultDicomInfo) = await pluginEngine.ExecutePlugInsAsync(message, dicomInfo, config);