Purpose
For truncating, or padding spaces to, a source string to a defined fixed-length – counting from the left. The source string can be a static string value or a reference to a data element.
Format
KEEP-LEFT (source-value, targeted-length)
Example
The following config entry in am HL7DataTransformer handler appends a prefix and a suffix to the PID-7 field of an HL7 record.
<Parameter>
<!-- CONCAT Example -->
<Name>transformation-rule</Name>
<Value>$PID-7=>KEEP-LEFT($$, "8")</Value>
</Parameter>
Input | Outcome |
PID|||||||200108071220|| | PID|||||||20010807|| |
Related
Nil.