Encoding message data

Use the grmencode command to encode a GRM object's field data into a properly formatted message, and return the newly encoded message handle.

The encoding process could produce some data validation warning messages. Use the-warn option to specify a variable to collect these messages.

For example:

Input: grmencode -warn w $grmIdFrl
Output: message0

Input: grmencode -warn w $grmIdHl7
Output: message1
Note: The messages that are produced by grmencode have minimal metadata values.