ROR LIST ICD (3276)    REMOTE PROCEDURE (8994)

Name Value
NAME ROR LIST ICD
TAG ICDLIST
ROUTINE RORRP016
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
VERSION 1
DESCRIPTION
The ROR LIST ICD remote procedure returns a list of ICD codes (from
the ICD DIAGNOSIS or ICD OPERATION/PROCEDURE file), which conform the
criteria.                                      
INPUT PARAMETER
  1. INPUT PARAMETER:   PART
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The partial match restriction.
    
  2. INPUT PARAMETER:   FLAGS
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Flags that control the execution (can be combined):
      F  Exclude codes applicable to females only
     
      I  Exclude inactive codes
     
      K  Search in description keywords
     
      M  Exclude codes applicable to males only
     
      0  Return operation/procedure codes from the ICD 
         OPERATION/PROCEDURE file (#80.1) instead of 
     
         diagnosis codes from the ICD DIAGNOSIS file (#80)
     
      P  Exclude codes that are not acceptable
         as primary diagnoses
      A  Exclude active codes
     
      B  Backwards. Traverses the index in the opposite
         direction of normal traversal
     
      D  Full search by description
     
    
  3. INPUT PARAMETER:   NUMBER
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Maximum number of entries to return. A value of "*" or no value in this 
    parameter designates all entries.
    
  4. INPUT PARAMETER:   FROM
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    The index entry(s) from which to begin the list
          resulting list.
      
    See description of the LIST^DIC for more details about the PART, NUMBER 
    and FROM parameters.
       ^01: FromName
       ^02: FromIEN
      
    For example, a FROM value of "18" would list entries following 18. You can
    use the 2-nd and 3-rd "^"- pieces of the Results[0] to continue the
    listing in the subsequent procedure calls.
      
    NOTE: The FROM value itself is not included in the
    
  5. INPUT PARAMETER:   DATE
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Date for the code set versioning.
    
  6. INPUT PARAMETER:   ICDTYPE
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    Flag that controls whether ICD-9 or ICD-10 codes are searched.
      ICD9  -  For ICD-9 codes search
      ICD10 -  For ICD-10 codes search
    
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 ICD codes and the value of the FROM parameter for
the next procedure call are returned in the Results[0] and the subsequent
nodes of the global array contain the codes.
  
  Results[0]          Result Descriptor
an error occurred during the execution of the remote procedure. In this 
                        ^01: Number of codes
                        ^02: FromName
                        ^03: FromIEN
 
  Results[i]          ICD
                        ^01: IEN
                        ^02: Diagnosis or operation/procedure
                        ^03: Code
                        ^04: Use only with Sex
                        ^05: Inactive (""/1)
case, the second piece of the Results[0] will contain number of the error 
                        ^06: Inactivation Date (FileMan)
 
  Results[i+1]        ICD Description
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