grmstore
This stores one or more values in a GRM handle's data-state according to field.
grmstore ?-list? grmId field type args
Store both strings and datum objects using this command.
If you use the -list option and more values are supplied than are implied by field, then the extra values are ignored. args is a list containing all the values to store. Otherwise, the value list is all the remaining arguments to the command.
The type
value identifies the
default item type the list uses. The datum can be present without identification.
These values are c
, d
, and v
.
- Constant strings use
-c
. - Datum objects use
-d
. - Special values use
-v
:-c string
,-d datId
,-v null
.
The only special value currently supported is null
. If more values are supplied than are implied by field, then the
extra values represent a value that is present, but empty. For example, in HL7 this
is encoded as "" (two double-quotes). It is not treated specially in FRLs.
Constant string values default to type ch
when stored. You can specify an hci
data type with a -type
data type
trailer:
-c string -type datatype
Examples:
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.