Purpose
For removing leading and trailing spaces from a source string. A source string can be a static string value or a reference to a data element.
Format
TRIM(source-value)
Example
The following config entry in am HL7DataTransformer handler appends a prefix and a suffix to the MSH-3 field of an HL7 record.
<Parameter>
<!-- TRIM Example -->
<Name>transformation-rule</Name>
<Value>$MSH-3=>TRIM($$)</Value>
</Parameter>
Input | Outcome |
MSH|^~\&| Foldda || | MSH|^~\&|Foldda|| |
Related
Nil.