Reply To: need help with using repeat and condition options for HRLs

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf need help with using repeat and condition options for HRLs Reply To: need help with using repeat and condition options for HRLs

#58041
John Perks
Participant

    Yes, in order for your HRL segment to be considered repeating, like a repeating segment in an HL7 message, you must check off one of the “Repeat Options” in the “Segment Properties” of the HRL configuration.

    I had a fixed record length input file, with multiple record types, with the record type identified by three characters in a fixed position.

    I checked off the “Repeat While” option in the “Segment Properties”, and set the “Field” to the FRL field corresponding to the record type, and the “Value” to what is expected in that field.

    Until I set it up this way, the HRL worked fine until it hit a “segment” or record type that was not expected; i.e. if I set up the HRL with Z00, Z01, Z02, Z03 records, all non-repeating, and the Z02 repeated, the Xlate quit processing when it encountered the 2nd Z02 record.  Once I set it up as repeating, it processed all of them and continued.

    And Jim is right, just use the ITERATE action in your Xlate on the repeating segment (FRL).

    If this explanation was all too concise and you need further help, you may email me.