From 7eaeb21a207977cbb931e158d9c9c37b4a07725b Mon Sep 17 00:00:00 2001 From: Vrinda Date: Thu, 5 Sep 2024 15:14:07 +0200 Subject: [PATCH] dcm4che/dcm4chee-arc-light#4555 : Extend Study participant object details in audits to include StudyDescription, SeriesDescription and Modality --- logstash.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/logstash.yml b/logstash.yml index 04787c7..7585fcb 100644 --- a/logstash.yml +++ b/logstash.yml @@ -208,6 +208,9 @@ filter { "/ParticipantObjectIdentification/@ParticipantObjectDataLifeCycle", "ParticipantObjectDataLifeCycle", "/ParticipantObjectIdentification/ParticipantObjectDescription[1]/Accession[1]/@Number", "AccessionNumber", "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='StudyDate']/@value", "studyDate", + "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='StudyDescription']/@value", "studyDescription", + "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='SeriesDescription']/@value", "seriesDescription", + "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='Modality']/@value", "modality", "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='HL7v2 Message']/@value", "hl7v2Message", "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='HL7v2 Message'][2]/@value", "hl7v2Message2", "/ParticipantObjectIdentification/ParticipantObjectDetail[@type='MSH-9']/@value", "msh_9", @@ -224,6 +227,27 @@ filter { remove_field => [ "studyDate" ] } } + if [studyDescription] { + ruby { + init => "require 'base64'" + code => "event.set('StudyDescription', Base64.decode64(event.get('studyDescription')[0]))" + remove_field => [ "studyDescription" ] + } + } + if [seriesDescription] { + ruby { + init => "require 'base64'" + code => "event.set('SeriesDescription', Base64.decode64(event.get('seriesDescription')[0]))" + remove_field => [ "seriesDescription" ] + } + } + if [modality] { + ruby { + init => "require 'base64'" + code => "event.set('Modality', Base64.decode64(event.get('modality')[0]))" + remove_field => [ "modality" ] + } + } if [hl7v2Message] { ruby { init => "require 'base64'"