xpmstore
This stores values into the output fields of xpmId
. field is interpreted as an output field.
xpmstore ?-list? xpmId field TYPE args
A leading @
identifies a temporary
field variable. You cannot modify input fields.
If you use -list
, then args
is a list containing all of the values to store. Otherwise, the
value list is all the remaining arguments to the command.
Both strings and datum objects can be stored using this command.
- Constant strings use
-c
. - Datum objects use
-d
. - Special values use
-v
.
For example:
-c string -d datId -v value...
The type value, -c
, -d
, or -v
, identifies
the default item type for the list. The datum can display without identification.
The only special value currently supported is null, which represents
a value that is present, but empty. In HL7, for example, it 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.
For example:
-c string -type datatype
Command examples:
xpmstore xpm0 PatientName d datum0 datum1
xpmstore -list xpm0 {PatientName.[0,1]} d "datum0 datum1"
xpmstore xpm1 0(0).PID(0).00041 d -c Smith datum2 -v null
This command returns an empty string.