Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following functions are available for use in the HL7 Transform device.

FunctionUse
? Use this to evaluation the truth of an expression and return a value. The syntax is: condition? true expression : false expression. If the condition evaluates to "true," the true expression is returned, otherwise the false expression is returned. The specified condition must evaluate to a Boolean value. Example: MSH-3='ADM' ? 'HIS' : 'RIS' means that if the MSH-3 segment is ADM (true), the value returned will be 'RIS'; otherwise, the value returned will be 'RIS'
?? 
AppendSegment(segmentName) 
Coalesce(expression1,expression2,...,expressionN) 
Escape(expression) 
FilterString(expression,allowedCharacters) 
GetDate(format='yyyyMMddhhmmss') 
If(condition,trueExpression,falseExpression) 
In(expression,string1,string2,...,stringN) 
IndexOf(expression,string) 
InTable("InTableName") 
Left(expression,string) 
Len(expression) 
LTrim(expression) 
LTrim(expression,string) 
Remove(expression,string1, string2,...,stringN) 
Replace(expression,string,string) 
Right(expression,string) 
RTrim(expression) 
RTrim(expression,string) 
Split(expression,charArray,index) 
SubString(expression,offset,length) 
Trim(expression) 
Trim(expression,string) 
UnEscape(expression 

...