Functions are program sections for manipulating string values, which are typically from CSV or HL7 data elements. Functions are used for defining data transformation rules in the data-transformer handlers, namely the TabularDataTransformer and the HL7DataTransformer handlers.
Below are specifications of the available functions.
PRINT Function
Printing multiple source string values to the node’s log, for debugging or for creating alerts.
FORMAT-DATETIME Function
Converts a date-time string value from one format to another, with the option to supply a default value if the conversion is unsuccessful.
IF-MATCH Function
This function matches a data element’s value to a regular expression pattern, and returns one of the two specified values depending on the pattern-matching result.
KEEP-LEFT Function
Truncating, or padding spaces to, a source string to a defined fixed-length – counting from the left.
KEEP-RIGHT Function
Truncating, or padding spaces to, a source string to a defined length – counting from the right.
CUT-RIGHT Function
Truncating a defined number of characters from a source string – counting from the right..
CUT-LEFT Function
Truncating a defined number of characters from a source string – counting from the left.
REPLACE Function
Replacing matching target sub-string in a source string, with a new replacement sub-string.
FORMAT-NUMBER Function
converting number strings in CSV and HL7 records from one format to another.
TIMESTAMP Function
Creates a timestamp string, with the specified format, of the time of execution.
ID Function
Creates a timestamp string, with the specified format, of the time of execution.
Related Topics
Intro and Demo
A collection of YouTube video links demonstrating Enflow’s products features.