ROR LIST GENERIC DRUGS (1807)    REMOTE PROCEDURE (8994)

Name Value
NAME ROR LIST GENERIC DRUGS
TAG GDLIST
ROUTINE RORRP035
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY AGREEMENT
WORD WRAP ON TRUE
VERSION 1
DESCRIPTION
The ROR LIST GENERIC DRUGS remote procedure returns a list of generic
drugs, which are referenced by the ROR GENERIC DRUG file (#799.51).
INPUT PARAMETER
  • REGIEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    The REGIEN parameter should contain a valid registry IEN (IEN of the 
    registry parameters record in the ROR REGISTRY PARAMETERS file #798.1).
    
  • GROUP
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    If this parameter is defined and not zero, it should contain a valid code
    of the Drug Group. In this case, only the drugs associated with this group
    will be returned.
    
RETURN PARAMETER DESCRIPTION
A negative value of the first "^"-piece of the Results[0] indicates that
  Results[i]            Error Descriptor
                          ^01: Error code
                          ^02: Message
                          ^03: Place of the error
 
Otherwise, number of drugs is returned in the Results[0] and the 
subsequent nodes of the global array contain the drugs.
 
  Results[0]            Number of Drugs
 
an error occurred during the execution of the remote procedure. In this
  Results[i]            Drug Descriptor
                          ^01: IEN in the ROR GENERIC DRUG file
                          ^02: Generic drug name
                          ^03: IEN of the generic drug (in the file #50.6)
                          ^04: Code of the Drug Group (see file #799.51)
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