Interface ClientBuilderMessageOptions

Client Builder Options

Used to specific default paramaters around building an HL7 message if that is so desired. It also sets up checking of input values to make sure they match up to the proper HL7 specification.

1.0.0

interface ClientBuilderMessageOptions {
    date?: string;
    messageHeader?: MSH;
    newLine?: string;
    parsing?: boolean;
    separatorComponent?: string;
    separatorEscape?: string;
    separatorField?: string;
    separatorRepetition?: string;
    separatorSubComponent?: string;
    specification?: any;
    text?: string;
}

Hierarchy (view full)

Properties

date?: string

The date type for the date field. Usually generated at the time of the class being initialized.

1.0.0

14
messageHeader?: MSH

MSH Header Options

1.0.0

newLine?: string

At the end of each line, add this as the new line character.

1.0.0

\r
parsing?: boolean

Parsing a message?

1.0.0

false
separatorComponent?: string

The character used to separate different components.

1.0.0

^
separatorEscape?: string

The character used to escape characters that need it in order for the computer to interpret the string correctly.

1.0.0

\\
separatorField?: string

The character used for separating fields.

1.0.0

|
separatorRepetition?: string

The character used for repetition field/values pairs.

1.0.0

~
separatorSubComponent?: string

The character used to have subcomponents seperated.

1.0.0

&
specification?: any

The HL7 spec we are going to be creating. This will be formatted into the MSH header by default.

1.0.0

2.7 via class new HL7_2_7()
text?: string

The HL7 string that we are going to parse.

""