Skip to content

Commit

Permalink
adding more logging around HL7 message received
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <neil.south@answerdigital.com>
  • Loading branch information
neildsouth committed Dec 13, 2023
1 parent 7ae68a7 commit 565143c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
3 changes: 3 additions & 0 deletions src/InformaticsGateway/Logging/Log.800.Hl7Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,8 @@ public static partial class Log
[LoggerMessage(EventId = 827, Level = LogLevel.Warning, Message = "HL7 plugin loading exceptions")]
public static partial void HL7PluginLoadingExceptions(this ILogger logger, Exception ex);

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private async Task OnDisconnect(IMllpClient client, MllpClientResult result)
foreach (var message in result.Messages)
{
var newMessage = message;
_logger.Hl7MessageReceieved(message.HL7Message);
var hl7Filemetadata = new Hl7FileStorageMetadata(client.ClientId.ToString(), DataService.HL7, client.ClientIp);
var configItem = await _mIIpExtract.GetConfigItem(message).ConfigureAwait(false);
if (configItem is not null)
Expand Down
28 changes: 0 additions & 28 deletions src/Monai.Deploy.InformaticsGateway.sln
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monai.Deploy.InformaticsGat
EndProject
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}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnswerDicomTools", "..\..\..\AIDE-dicom-toolkit\src\AnswerDicomTools\AnswerDicomTools.csproj", "{0480D65D-9016-4AD1-AD6C-000577667BBB}"
EndProject
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}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -412,30 +408,6 @@ Global
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x64.Build.0 = Release|Any CPU
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x86.ActiveCfg = Release|Any CPU
{6C83469B-4B8A-416E-ACA7-09454D721352}.Release|x86.Build.0 = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x64.ActiveCfg = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x64.Build.0 = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x86.ActiveCfg = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Debug|x86.Build.0 = Debug|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|Any CPU.Build.0 = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x64.ActiveCfg = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x64.Build.0 = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x86.ActiveCfg = Release|Any CPU
{0480D65D-9016-4AD1-AD6C-000577667BBB}.Release|x86.Build.0 = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x64.ActiveCfg = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x64.Build.0 = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x86.ActiveCfg = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Debug|x86.Build.0 = Debug|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|Any CPU.Build.0 = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x64.ActiveCfg = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x64.Build.0 = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x86.ActiveCfg = Release|Any CPU
{E67F5E6E-8845-421A-BE16-74F28863EAB3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 565143c

Please sign in to comment.