Class Hl7v2FormattedTextEncoder

java.lang.Object
ca.cdr.api.hl7v2.util.Hl7v2FormattedTextEncoder

public final class Hl7v2FormattedTextEncoder extends Object

Utility class for encoding the following character sequences contained in HL7v2 FT (formatted text) fields:

  • \h\ \n\ - Bold text highlighting
  • \.br\ - Line break
  • \.ce\ - Center line
  • \.fi\ - Fill mode (word wrap)
  • \.nf\ - No-fill mode (no wrap)
  • \.in X\ - Indent by X spaces
  • \.ti X\ - Temporarily indent by X spaces
  • \.sk X\ - Skip X spaces to the right
  • \.sp X\ - Skip X vertical spaces

See Hl7v2FormattedTextEncoder.OutputFormat for available output formats.