| WVRETURN |
Both |
Reference to the array in which to return the
SAVEDATA call status.
Format:
WVRETURN(1)=Caret-delimited string
Caret-delimited string - status of the call to
SAVEDATA
PIECE VALUE
==========================
1 -1 to denote an error occurred
1 to denote that the call was successful
2 ERROR MESSAGE if an error occurred
"" if no error occurred
|
WVDATA |
Input |
Reference to an array containing the data to save.
Format:
WVDATA("DFN")=Internal entry number (IEN)
in the WV PATIENT file (#790)
of the patient associated with
the data WVDATA("DATA",FILE,RECORD_ID,SUBSCRIPT)=VALUE
FILE - The file number in which to save the
data.
RECORD_ID - The ID of this record in FileMan
IENS format. When adding new
records, there should only be
one comma-delimited value for
the RECORD_ID. For example,
"+1,". When updating existing
records, the RECORD_ID should
be the full IENS string.
SUBSCRIPT - The number of the field within
the FILE in which to save the
data or one of the following
values:
"NAME" => This subscript
indicates the name of
the reminder cascade
from file #809, which
is stored in VALUE.
When using this
subscript, FILE should
equal 790 and
RECORD_ID should equal
"+1,".
"PRINTER" => This subscript
indicates the IEN
of the entry in
the DEVICE file
(#3.5) of the
VistA printer to
print letters on,
which is stored in
VALUE. When using
this subscript, FILE
should equal 790.404
and RECORD_ID should
equal "+1,".
VALUE - The data value to either store in
external format (when SUBSCRIPT is
the number of a field within FILE)
or data that is used by this API in
performing an action (see the
SUBSCRIPT description above).
WVDATA("DATA",FILE,"MASTER ID")=ID
ID - partial IENS string or a colon-
delimited list of identifiers. For
partial IENS string, this value is
required when adding new records and
should include all record IENS above
the level of FILE. This value is
optional when updating existing records
and should include all record IENs at
and above the level of FILE (unless
FILE is a sub-file, in which case the
value should include all record IENs
above the level of FILE). When
specified, this IENS string is
concatenated to the incomplete
RECORD_ID value to create a complete
IENS string.
WVDATA("VISIT")=Text Integration Utilities
(TIU) visit string (semi-colon
delimited string of values
from the VISIT file, #9000010).
PIECE VALUE
==========================
1 IEN in the HOSPITAL LOCATION file
(#44)
2 VISIT/ADMIT DATE&TIME field (#.01) in
internal FileMan format
3 SERVICE CATEGORY field (#.07) value
in internal format
WVDATA("DOCUMENT")=The IEN of the document in
the TIU DOCUMENT file
(#8925) associated with the
data to save or update.
|