re: RTF (Rich Text Formatting)

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf re: RTF (Rich Text Formatting)

  • Creator
    Topic
  • #49014
    Mark Gathers
    Participant

    We have a pathology system that would like to send results using RTF formatting in OBX-5.  We would like to know if there are any issues we should be aware of supporting RTF result interfaces.  Any information would be appreciated.

    Regards

    Mark Gathers

    Integration Engineer, Information Technology

    University Health Associates

    West Virginia University Hospitals

    Phone: 304.598.4000 x75615

    Email:  gathersm@wvuh.com

Viewing 0 reply threads
  • Author
    Replies
    • #60468
      Anonymous
      Inactive

      Yes this should be possible. You have to take care of two things: file size and used characters.

      If RTF format uses any non-printable characters or characters used as segment delimiters or filed delimiters or encoding characters,  then you have to uuencode the RTF file, before you enter it into the segment.

      If you uuencode the file, then you have some characters, that must be translated into others, as an example:

      Replace :

      “|” -> “F”

      “^” -> “S”

      “~” -> “R”

      “&” -> “T”

      “” -> “E”

      “nn”  (“nn” is the hexadecimal value for line feed and cariage return) -> “Xnn”

      Now enter the file into an Segment. As the file is normaly to big for a translation, we do the following trick:

      – pre-translation: save the value (= i.e. the uuencoded and changed rtf file) in an global variable and delete it from the segment;

      -post-translation: copy the value from the global variable into the segment.

      The receiver has to all transitions backwards.

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10