Skip to content

Commit

Permalink
dcm4che/dcm4chee-arc-light#4555 : Extend Study participant object det…
Browse files Browse the repository at this point in the history
…ails in audits to include StudyDescription, SeriesDescription and Modality
  • Loading branch information
vrindanayak committed Sep 5, 2024
1 parent e1e70a9 commit 7eaeb21
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions logstash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'"
Expand Down

0 comments on commit 7eaeb21

Please sign in to comment.