ROR UPDATE LOCAL DRUGS

TITLEVALUE
NAMEROR UPDATE LOCAL DRUGS
DESCRIPTIONThe ROR UPDATE LOCAL DRUGS remote procedure updates the list of local drug
names, which is stored in the LOCAL DRUG NAME (29) multiple of the ROR
REGISTRY PARAMETERS file (#798.1).
TAGLDLUPD
ROUTINERORRP032
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERREGIEN
DESCRIPTIONThe REGIEN parameter should contain a valid registry IEN (IEN of the
registry parameters record in the ROR REGISTRY PARAMETERS file #798.1).
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERGROUP
DESCRIPTIONIf the GROUP parameter is equal to 0 then every item of the LDLST must
contain a valid group code. If ane mpty list is passed into the RPC then
ALL records will be deleted from the LOCAL DRUG NAME multiple.

If this parameter is not zero then it should contain a valid group code.
All records of the LDLST will be associated with this group. If an empty
list is passed into the RPC then only records associated with this group
will be deleted from the multiple.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERLDLST
DESCRIPTIONThe LDLST parameter should be an array containing a list of drug IEN's and
Drug Group codes. An item of the list should have the following format:

^01: Ignored
^02: Ignored
^03: IEN of the local drug (in file #50)
^04: Code of the Drug Group
(see also the GROUP parameter)

Example:
with RPCBroker.Param[1] do
begin
PType :=list;
for i := 1 to Drugs.Count do
Mult[i] := '^^' + Drugs[i-1].DrugIEN + '^' + Drugs[i-1].GroupCode;
end;
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONA negative value of the first "^"-piece of the Results[0] indicates that
an error occurred during the execution of the remote procedure. In this
case, the second piece of the Results[0] will contain number of the error
descriptors returned in the subsequent nodes of the Results array:

Results[0] Result Descriptor
^01: The last error code
^02: Number of the error descriptors

Results[i] Error Descriptor
^01: Error code
^02: Message
^03: Place of the error

Otherwise, zero is returned in the Results[0].
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION1
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED