Purpose
For truncating a defined number of characters from a source string – counting from the right. If the source string’s length is less than the defined number to be cut, an empty string is returned. The source string can be a static string value or a reference to a data element.
Format
CUT-RIGHT (source-value, targeted-length)
Example
The following config entry in am HL7DataTransformer handler cuts the last 4 digits (the time-portion) of the PID-7 field of an HL7 record, and assign the remaining (date portion of the original date-time) to variable %1.
<Parameter>
<!-- CUT-RIGHT Example -->
<Name>transformation-rule</Name>
<Value>%1=>CUT-RIGHT($PID-7, "4")</Value>
</Parameter>
Input | Outcome |
PID|||||||200108071220|| | %1=”20010807″ |
Related
Nil.