Copying data

If there are two GRM handles similar in type, then use the grmbulkcopy command to copy data from one handle to the other.

grmbulkcopy returns an empty string.

For additional information, see grmbulkcopy.

If the handles are HL7 objects, then all of the source object's data paths are duplicated in the target handle.

When copying data from one FRL object to another, only field names that are shared by both record definitions are copied.

Similar to grmcreate, grmbulkcopy can produce data validation warning messages when parsing the underlying message.

grmbulkcopy can also handle the -warn option.

For example:

grmbulkcopy -warn w $grmIdHl7Dest $grmIdHl7Src

grmbulkcopy -warn w $grmIdFrlDest $grmIdFrlSrc