Skip to content

Commit 565143c

Browse files
committed
adding more logging around HL7 message received
Signed-off-by: Neil South <[email protected]>
1 parent 7ae68a7 commit 565143c

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

src/InformaticsGateway/Logging/Log.800.Hl7Service.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,8 @@ public static partial class Log
105105
[LoggerMessage(EventId = 827, Level = LogLevel.Warning, Message = "HL7 plugin loading exceptions")]
106106
public static partial void HL7PluginLoadingExceptions(this ILogger logger, Exception ex);
107107

108+
[LoggerMessage(EventId = 828, Level = LogLevel.Information, Message = "HL7 message recieved. {message}")]
109+
public static partial void Hl7MessageReceieved(this ILogger logger, string message);
110+
108111
}
109112
}

src/InformaticsGateway/Services/HealthLevel7/MllpService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ private async Task OnDisconnect(IMllpClient client, MllpClientResult result)
186186
foreach (var message in result.Messages)
187187
{
188188
var newMessage = message;
189+
_logger.Hl7MessageReceieved(message.HL7Message);
189190
var hl7Filemetadata = new Hl7FileStorageMetadata(client.ClientId.ToString(), DataService.HL7, client.ClientIp);
190191
var configItem = await _mIIpExtract.GetConfigItem(message).ConfigureAwait(false);
191192
if (configItem is not null)

src/Monai.Deploy.InformaticsGateway.sln

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monai.Deploy.InformaticsGat
6262
EndProject
6363
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monai.Deploy.InformaticsGateway.Test.PlugIns", "InformaticsGateway\Test\Plug-ins\Monai.Deploy.InformaticsGateway.Test.PlugIns.csproj", "{6C83469B-4B8A-416E-ACA7-09454D721352}"
6464
EndProject
65-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnswerDicomTools", "..\..\..\AIDE-dicom-toolkit\src\AnswerDicomTools\AnswerDicomTools.csproj", "{0480D65D-9016-4AD1-AD6C-000577667BBB}"
66-
EndProject
67-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "monai-deploy-informatics-gateway-pseudonymisation", "..\..\..\monai-deploy-informatics-gateway-pseudonymisation\monai-deploy-informatics-gateway-pseudonymisation.csproj", "{E67F5E6E-8845-421A-BE16-74F28863EAB3}"
68-
EndProject
6965
Global
7066
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7167
Debug|Any CPU = Debug|Any CPU
@@ -412,30 +408,6 @@ Global
412408
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x64.Build.0 = Release|Any CPU
413409
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x86.ActiveCfg = Release|Any CPU
414410
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x86.Build.0 = Release|Any CPU
415-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
416-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
417-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x64.ActiveCfg = Debug|Any CPU
418-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x64.Build.0 = Debug|Any CPU
419-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x86.ActiveCfg = Debug|Any CPU
420-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x86.Build.0 = Debug|Any CPU
421-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
422-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|Any CPU.Build.0 = Release|Any CPU
423-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x64.ActiveCfg = Release|Any CPU
424-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x64.Build.0 = Release|Any CPU
425-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x86.ActiveCfg = Release|Any CPU
426-
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x86.Build.0 = Release|Any CPU
427-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
428-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
429-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x64.ActiveCfg = Debug|Any CPU
430-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x64.Build.0 = Debug|Any CPU
431-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x86.ActiveCfg = Debug|Any CPU
432-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x86.Build.0 = Debug|Any CPU
433-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
434-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|Any CPU.Build.0 = Release|Any CPU
435-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x64.ActiveCfg = Release|Any CPU
436-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x64.Build.0 = Release|Any CPU
437-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x86.ActiveCfg = Release|Any CPU
438-
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x86.Build.0 = Release|Any CPU
439411
EndGlobalSection
440412
GlobalSection(SolutionProperties) = preSolution
441413
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)