grmstore

This stores one or more values in a GRM handle’s data-state according to field. If more values are supplied than are implied by field, then the extra values are ignored.

grmstore ?-list? grmId field type args
grmstore grmId field type args...   
  • If the -list option is used, then args is a list containing all of the values to store. Otherwise, the value list is all of the remaining arguments to the command.
  • The type value, c, d, or v, identifies the default item type that the list uses, although the datum can show without identification.
  • Constant strings use -c; datum objects use -d; special values use -v.
  • Constant string values default to type ch when stored.
  • Store both strings and datum objects using this command.
  • The only special value currently supported is null, which represents a value that is present but empty. In HL7, for example, this is encoded as "" (two double-quotes); it is not treated specially in FRLs.
  • Specify an hci data type with a -type data type trailer. For example, -c string -type datatype.

Other examples are:

grmstore grm0 PatientName d datum0 datum1 
  
grmstore -list grm0 {PatientName.[0,1]} d "datum0\ datum1"  
 
grmstore grm1 0(0).PID(0).00041 d -c Smith datum2\-v null   

This command returns an empty string.