- This topic has 6 replies, 3 voices, and was last updated 15 years, 10 months ago by .
-
Topic
-
I am getting a error code 307. Here is a code snippet where is split insert a new field and rebuild a message. Is there something i am doing that might cause this? set ORM_segList [split $ORM_MSG r] ;# Create segment list using carriage return.
set ORM_PID_Seg [lindex [lregexp $ORM_segList {^PID}] 0] ;# Find PID segment.
set ORM_PID_fields [split $ORM_PID_Seg $Fld_Sep] ;# Split PID segment up into fields.
set newPid [lreplace $ORM_PID_fields 2 2 $ADT_mrn] ; # Replace old MRN with new one.
set newPid [join $newPid $Fld_Sep] ; # Put segments back together.
set ORM_segList [lreplace $ORM_segList 2 2 $newPid] ;# Group the segment list back together.
set new_ORM_Msg [join $ORM_segList r] ;# Put r carriage return back into msg.
Viewing 5 reply threads
Viewing 5 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.