This is the X12 Interchange parser
The current Document
The segment position within the current parent Document
List of enclosing parent objects ordered from outermost to immediate As EnsLib.EDI.Document
Lookahead line left over from previous document parse
Flag for whether lookahead buffer has had input conversion yet
List of counts of nested documents, ordered from outer to innermost
List of enclosing parent objects ordered from immediate to outermost
Count of Segments tallied during parse of a TransactionSet
The config provider
pre-parse of Framing setting
Framing to use on output if input framing is "Flexible"
This allows you to pre-set a ControlVersion to use when reading TransactionSets without an ISA or GS
Default Character Encoding to use when reading or writing X12 Documents. Choices you can use for this setting include:
- Native - use the default character encoding of the installed locale of the InterSystems IRIS server
- latin1 - the ISO Latin1 8-bit encoding; this is the default
- ISO-8859-1 - the ISO Latin1 8-bit encoding
- UTF-8 - the Unicode 8-bit encoding
- Unicode - the Unicode 16-bit encoding (Little-Endian)
- UnicodeBig - the Unicode 16-bit encoding (Big-Endian)
- Any other NLS definitions installed on this InterSystems IRIS server
- @<ttable> - <ttable> means a raw InterSystems character translation table name. A prefix of '@' means to use the named table.
Should the parser to skim the rest of the current batch without notifying us of any further child documents? Gets automatically cleared when the end of each top-level document is encountered
See your X12 Config Items for a description of accepted values.
Number of seconds to wait for each read of document data inside a started document to be available on the input stream
Set this if you want to make an interface that is set to Framing='Flexible' continue with the Framing style it detects in the first message it receives. This can increase performance, reduce latency due to timeouts and ensure consistent behavior after initialization. However, it will also reduce the ability of the interface to interpret changing input formats in successive messages from the same source or from different sources on sequential connections.
This remembers the terminator defined in the ISA, but you can pre-set it to read TransactionSets without an ISA
This remembers separators defined in the ISA, but you can pre-set it to read TransactionSets without an ISA
Number of seconds to wait for the start of a document to be available on the input stream
Count of TransactionSets in a Group
This property controls the skipping of whitespace in the data stream. Set it to a string of characters that should be considered whitespace and not part of the data
This is a Get accessor method for the
Read an X12 document from the given IO Stream Returned %Status codes are not logged, except for Exceptions
Parse a complete X12 interchange document from the stream, including any nested TransactionSet documents inside it. An Interchange contains zero or more functional groups which in turn contain TransactionSets.
Strip off leading whitespace from the line