Transformation Macros

PreviousNext

Use Transformation Macros to modify messages

(c) 2007-2008 Hermetech International Ltd.

EasyHL7 Filesystem Postmaster Macros

 

 

Blank() - Will empty a component value replacing it with blank. SEE ALSO: Null()

BlankField() - Will empty the entire HL7 field.

BlankSegment() - Will empty ALL fields in the HL7 Segment beginning with the field selected. SEE ALSO: BlankField(),Blank()

DateStamp() - Replaces a component value with system date formatted 'YYYYMMDD'

DateTimeStamp() - Replaces a component value with system date/time formatted 'YYYYMMDDhhnnss'

DefaultValue(<parameter>) - Replaces a component value with <parameter> ONLY if the field is empty.

GUID() - Replaces a component value with Globally Unique Identifier (GUID)

MessageID() - Replaces a component value with a DateTimeStamp() + a 5 digit sequential number which resets every second. Resulting in a 19 Character ID value.

Null() - Replaces the component value with an HL7 explicit NULL (2 Double Quotes "").

RandomFirstName() - Replaces a component value with a random value from an internal list of first names

RandomLastName() - Replaces a component value with a random value from an internal list of last names

RandomNumber(<parameter>) - Replaces a component value with a random number string which is <PARAMETER> characters long.

RandomSelection(<parameter>) - Enter more than 1 value in <PARAMETER> separated by commas (ex: 1,2,3). The Component Value will be replaced by a random selection from that list.

RandomString(<parameter>) - Replaces a component value with a random string of alpha characters which is <PARAMETER> characters long

TableLookup(<parameter1>,<parameter2 optional>,<parameter3 optional>) - Will look up the component value in the HL7 table indicated in <parameter1> and (if found) replace the component value. See Table Lookups for more information.

TimeStamp() - Replaces a component value with system time formatted 'hhnnss'