ex_hl7 v1.0.0 HL7.Lexer
Lexer used by the HL7 parser to retrieve tokens from a buffer.
Link to this section Summary
Functions
Create a new Lexer instance
Checks that the characters in the string are printable ASCII and ISO-8859-1 (Latin 1) characters.
Reads a token from a buffer containing an HL7 message
Put back a token into the lexer
so that it is the first one to be returned in the next call
to Lexer.read/2
Checks that the string is a valid segment ID.
Link to this section Types
Link to this type
state()
state() :: :read_segment_id | :read_delimiters | :read_separator | :read_characters
Link to this type
token()
token() :: {:separator, HL7.Type.item_type() | :segment} | {:literal, binary()} | {:value, binary()}
Link to this section Functions
Create a new Lexer instance
Checks that the characters in the string are printable ASCII and ISO-8859-1 (Latin 1) characters.
Link to this function
read(lexer, buffer)
Reads a token from a buffer containing an HL7 message
Link to this function
read_characters(lexer, buffer)
Link to this function
read_delimiters(lexer, buffer)
Link to this function
read_segment_id(lexer, buffer)
Link to this function
read_separator(lexer, buffer)
Put back a token into the lexer
so that it is the first one to be returned in the next call
to Lexer.read/2
Checks that the string is a valid segment ID.