spacing format issue ????

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf spacing format issue ????

  • Creator
    Topic
  • #48599
    Chad Ward
    Participant

      Hello everyone,

      I’m tring to take on RER message and convert it into an MDM message, which I’ve managed to do, but the problem comes with the obx segment.  I’m tring to align the fields up when it goes into the receiving system.  

      Drug:  OXYCODONE-APAP          Pharmacy:  WALGREEN DRUG STORE

      Drug:  FUROSEMIDE          Pharmacy:  WALGREEN DRUG STORE

      Thanks for any help on this issue.

    Viewing 0 reply threads
    • Author
      Replies
      • #59107
        Anonymous
        Participant

          I’m assuming you are using the format command.  Determine the maximum number of spaces for your first column and the maximum number of spaces for your second column ( the second number may not be necessary so long as you know you won’t go over the specified number of spaces per line).  See the format example below:

          set Pat_Header [format “%-41s %-24s” $Pat_Name $Pat_ID]

          The “s” identifies it as a string and the “-” left justifies the column.

          Hope this is what you were looking for.

          Thomas G. Rioux

          The Methodist Hospital

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.