Determining Segment Order

Homepage Clovertech Forums Cloverleaf Determining Segment Order

  • Creator
    Topic
  • #118602
    Michael Brande
    Participant

    Does anyone have a good way to determine Segment Order?

    Any scripts out there that can be run against a file with HL7 transactions?

Viewing 1 reply thread
  • Author
    Replies
    • #118603
      Jim Kosloskey
      Participant

      I am not sure I understand the question. Can you elaborate?

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #118605
      Charlie Bursell
      Participant

      Something simple

      # Get file – read as binary because of CR

      set file [open <hl7 filename> rb]

      foreach seg [split $file \r] {

      # Last CR will cause empty
      if {$seg eq “”}  {continue}

      echo [string range $seg 0 2]
      }

       

      But as Jim says I am not really sure what you want here

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,447
Topic Tags
288
Empty Topic Tags
10