Reply To: TCL Comparing to a subfield

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf TCL Comparing to a subfield Reply To: TCL Comparing to a subfield

#59281
garry r fisher
Participant

    Hi,

    I’d use the genericHL7 library and code something like:

       set HL7msg [msgget $mh]

       set fieldSeparator [crange $HL7msg 3 3]

       set subfieldSeparator [crange $HL7msg 4 4]

       set orcSegment [getHL7Segment $HL7msg OBC]

       set orcField12 [getHL7Field $orcSegment 12 $fieldSeparator]

    This would give you the ordering provider in the variable ‘orcField12’.

    Hope this helps.

    Garry