Ancestor: HL7Connect.V2.Base

A class that represents a section of a complex content in an escaped field.

Properties

string ContentType;
   Return the type of section that this is. Possible return values are
  • NULL = this section represents a "" - this is only ever found by itself. Text will be ""
  • TEXT - simple text. Text is the content of the string
  • ESCAPE - an escape sequence. Text is the content of the escape
  • BINARY - a sequence of bytes (a \X escape in HL7). Text is a sequence of characters that represent the bytes denoted in the escape sequence.
There is no XML representation for a BINARY sequence in HL7. Binary content will never exist if the source message was in XML format. Users should be beware that the two message formats are not the same in this regard: the XML format is a sequence of Unicode characters (whatever the character encoding, it's unicode logically), and there is many pitfalls in mapping between unicode characters and whatever is intended to be conveyed when a \X escape sequence is used.

string Text;
   The contents of the section of content. The exact meaning of the Text property depends on the ContentType property.


Methods

void Highlight(int iBegin, int iEnd);
   Highlight the selected range of the content using \H\ and \N\. range is 1 based (i.e. to highlight 'is' in "This is a test", you would use 6,8 for the begin and end parameters

void HighlightCustom(int iBegin, int iEnd, string sStart, string sEnd);
   Highlight the selected range of the content using \x\ and \N\. range is 1 based (i.e. to highlight 'is' in "This is a test", you would use 6,8 for the begin and end parameters)

The code is a custom code to be used in place of \H\. Do not use a code that has other meanings in HL7. You can use more than one character.

This is for custom extension - other HL7 applications will only know what these extensions mean if they are specfically designed for them.


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: Highlight, HighlightCustom, ContentType, Text, content, HL7Connect.V2.Content