No announcement yet.

Channel Message Error oh HL7 Header

  • Filter
  • Time
  • Show
Clear All
new posts

  • Channel Message Error oh HL7 Header

    I am using Mirth version which I just downloaded. I get a Serializer Exception error from the HL7 header when I attempt to load the data file. The error I am getting is:

    FAILURE: Error evaluating transformer
    java.lang.ArrayIndexOutOfBoundsException: 2

    The actual HL7 file header is this:
    MSH|^~\&|di_PROTON|1|||200801231516||DFT^P03||P|2. 2|||NE|NE||

    I highlighted the second line of the header that starts "BHS" as I beleive this line is causing the problem. If I remove this single line, the file processes normally. Is this a non-standard HL7 format or something?

  • #2
    Re:Channel Message Error oh HL7 Header

    The structure of an HL7 batch file is given by the following (using the HL7 abstract message syntax)

    [FHS] (file header segment)
    { [BHS] (batch header segment)
    { [MSH (zero or more HL7 messages)
    ] }
    [BTS] (batch trailer segment)
    [FTS] (file trailer segment)

    Further info on HL7 batch protocol:

    and here:
    ....for some info on the BHS header segment

    The BHS header segment looks okay to me.

    It seems the exception was thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array....out of bounds...

    I am adding some information here, but not an answer.