How to configure Logging of received HL7 messages

vrindanayak edited this page Oct 13, 2016 · 2 revisions
Clone this wiki locally

Configuration

You may either

  • create a LDIF file (e.g.):

    version: 1
    dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
    changetype: modify
    add: hl7LogFilePattern
    hl7LogFilePattern: ${jboss.server.data.dir}/hl7/${date,yyyy/MM/dd}/${SerialNo}-${MSH-9}.hl7
    -
    
    dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
    changetype: modify
    add: hl7ErrorLogFilePattern
    hl7ErrorLogFilePattern: ${jboss.server.data.dir}/hl7-error/${date,yyyy/MM/dd}/${SerialNo}-${MSH-9}.hl7
    -
    

    and import it to the LDAP Server by using the ldapmodify command line utility.

  • or use the Add Attribute... and Add Value... function of Apache Directory Studio to add attributes on Device level (e.g.: dicomDeviceName=dcm4chee-arc) or HL7 Application Extension level (e.g.: hl7ApplicationName=*) in the Archive Configuration.

One may refer to Archive Device and/or Archive HL7 Application to understand the description of attributes.

In case of any error, it would be logged to both path locations (if configured).

As shown in the above attributes, user can provide date format as per one's choice, HL7 message header field number and a SerialNo for uniqueness of file names.