SDEC WLGET (3509)    REMOTE PROCEDURE (8994)

Name Value
NAME SDEC WLGET
TAG WLGET
ROUTINE SDEC
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
DESCRIPTION
Waitlist GET
INPUT PARAMETER
  • WLIEN1
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Wait List ID pointer to the SD WAIT LIST file 409.3
    
  • MAXREC
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Max records returned
    
  • SDBEG
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Begin date in external format
    defaults to Jan 1, 1800
    
  • SDEND
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    End date in external format.
    Defaults to 90 days before TODAY
    
  • DFN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    Patient ID pointer to PATIENT file 2 
    
  • LASTSUB
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    only used if DFN=""
    Last subscripts from previous call
    
  • SDTOP
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   7
    DESCRIPTION:   
    runs through the xrefs in reverse using -1 in $O  0=forward; 1=reverse
    
RETURN PARAMETER DESCRIPTION
Return Wait List data in Dataset format with these
   ^ ORIGINATING USER IEN [18] ^ ORIGINATING USER NAME [19} ^ PRIORITY 
(#26.13)
        2. PRFSTAT - PRF Assignment Status 0=INACTIVE 1=ACTIVE 
        3. PRFNID - PRF National Flag ID pointer to
                    PRF NATIONAL FLAG file (#26.15)
        4. PRFNNAME - PRF National Flag name 
        5. PRFNSTAT - PRF National Flag status 0=INACTIVE 1=ACTIVE 
 110. PFLOCAL - Patient Local Flags 
                      (PRF ASSIGNMENT/PRF Local FLAG) separated by | 
        Each | piece contains the following ;; pieces: 
        1. PRFAID - PRF Assignment ID pointer to PRF ASSIGNMENT file 
[20]
(#26.13)
        2. PRFSTAT - PRF Assignment Status 0=INACTIVE 1=ACTIVE 
        3. PRFLID - PRF Local Flag ID pointer to PRF LOCAL FLAG file 
(#26.11)
        4. PRFLNAME - PRF Local Flag name 
        5. PRFLSTAT - PRF Local Flag status 0=INACTIVE 1=ACTIVE 
 111. SUBGRP - value from the ENROLLMENT SUBGROUP field of the
               PATIENT ENROLLMENT file
               (#27.11) 
               Valid values are a b c d e g 
   ^ REQUEST BY [21] ^ PROVIDER IEN [22] 
 112. CAT8G  - Category 8g flag - True if PriGRP ='Group 8' AND 
SUBGRP-'g' 
 113. SIMILAR = Similar Patients 
                MESSSAGE | Patients 
              Patients separated by ;; 
               Each ;; piece contains the following ~ pieces 
               DFN ~ NAME ~ DOB ~ SSN
 114. PHONE CALL ATTEMPTS
 115. DATE OF LAST LETTER ATTEMPT 
 
   ^ PROVIDER NAME [23] ^ DESIRED DATE OF APPOINTMENT [24] ^ COMMENTS 
 
 
 
 
 
 
 
 
 
 
[25] 
 
 
 
 
 
 
 
 
 
 
   ^ EWL ENROLLEE STATUS [26] 
 
 
 
 
 
 
 
 
 
 
   ^ PTPHONE [27] phone number (residence) from patient demographics 
 
 
 
 --[55] SENSITIVE - Sensitive Record Access data separated by pipe |:
  ; 1. return code:
  -1-RPC/API failed
  Required variable not defined
  0-No display/action required
  Not accessing own, employee, or sensitive record
  1-Display warning message
   ^ ENROLLMENT PRIORITY [28] - Valid Values are: 
  Sensitive and DG SENSITIVITY key holder
  or Employee and DG SECURITY OFFICER key holder
  2-Display warning message/require OK to continue
  Sensitive and not a DG SENSITIVITY key holder
  Employee and not a DG SECURITY OFFICER key holder
  3-Access to record denied
  Accessing own record
  4-Access to Patient (#2) file records denied
  SSN not defined
  2. display text/message
                                GROUP 1 
  3. display text/message
  4. display text/message
 
 --[54] MTRCDATES separated by pipe |, no time
 
 --[52] GAF - <text> | <GAF score> | <GAF date> | <diagnosis by IEN>
              | <diagnosis by name>
 
--[40] PCONTACT Patient Contact
 PATIENT CONTACT pieced by :: where each :: piece contains the
                                GROUP 2 
                 following ~~ pieces:
   1. DATE ENTERED external date/time
   2. PC ENTERED BY USER IEN Pointer to NEW PERSON file
   3. PC ENTERED BY USER NAME NAME from NEW PERSION file
   4. ACTION C=Called; M=Message Left
   5. PATIENT PHONE Free-Text 4-20 characters 
 
 --[29] APPT SCHEDULED DATE
NO LONGER USED
          columns:
                                GROUP 3 
                                GROUP 4 
                                GROUP 5 
                                GROUP 6 
                                GROUP 7 
                                GROUP 8 
   ^ APPT SCHEDULED DATE [29] 
   ^ MULTIPLE APPOINTMENT RTC 0=NO; 1=YES [30] 
   ^ MULT APPT RTC INTERVAL-Integer between 1-365 [31] 
   ^ MULT APPT NUMBER-Integer between 1-100 [32] 
   DFN [1] ^ PATIENT NAME [2] ^ <not used> [3] ^ DOB [4] ^ SSN [5]
   ^ PRIGRP [33] ^ ELIGIEN [34] ELIGNAME [35] ^ SVCCONN [36] ^ 
SVCCONNP[37]
   ^ TYPEIEN [38] ^ TYPENAME [39] ^ PCONTACT [40] ^ WLDISPD [41] 
   ^ WLDISPU [42] ^ WLDISPUN [43] ^ WLSVCCON [44] ^ PADDRES1 [45] 
   ^ PADDRES2 [46] ^ PADDRES3 [47] ^ CITY [48] ^ PSTATE [49] ^ COUNTRY 
[50]
   ^ ZIP4 [51] ^ GAF [52]  ^ DATE/TIME ENTERED [53] ^ MTRCDATES [54] 
   ^ SENSITIVE [55] ^ LASTSUB [56] ^ PRACE [57] ^ PRACEN [58] 
   ^ PETH [59] ^ PETHN [60] ^ APPTYPE [61] ^ PRHBLOC[62] 
 63 RET("HRN") = health record number 
   ^ GENDER [6] ^ WAIT LIST IEN [7] 
 64 RET("BADADD") = BAD ADDRESS INDICATOR (.121) 
                    1=UNDELIVERABLE 
                    2=HOMELESS 
                    3=OTHER 
                    4=ADDRESS NOT FOUND 
 65 RET("OPHONE") = Office phone (.132) 
 66 RET("NOK") - Primary Next of Kin (.211) 
 67 RET("KNAME") - Primary Next of Kin name 
 68 RET("KREL") - Primary Next of Kin Relationship to Patient (.212) 
 69 RET("KPHONE") - Primary Next of Kin Phone (.219) 
   ^ ORIGINATING DATE [8] ^ INSTITUTION IEN [9] ^ INSTITUTION NAME [10]
 70 RET("KSTREET") - Primary Next of Kin Street Address [Line 1] (.213) 
 71 RET("KSTREET2") - Primary Next of Kin Street Address [Line 2] (.214) 
 72 RET("KSTREET3") - Primary Next of Kin Street Address [Line 3] (.215) 
 73 RET("KCITY") - Primary Next of Kin City (.216) 
 74 RET("KSTATE") - Primary Next of Kin State (.217) 
 75 RET("KZIP") - Primary Next of Kin Zip (.218) 
 76 RET("NOK2") - Secondary Next of Kin (.2191) 
 77 RET("K2NAME") - Secondary Next of Kin name (.2191) 
 78 RET("K2REL") - Secondary Next of Kin Relationship to Patient (.2192) 
 79 RET("K2PHONE") - Secondary Next of Kin Phone (.2199) 
   ^ WAIT LIST TYPE [11] ^ WL SPECIFIC TEAM [12] 
 80 RET("K2STREET") - Secondary Next of Kin Street Address [Line 1] 
(.2193)
 81 RET("K2STREET2") - Secondary Next of Kin Street Address [Line 2] 
(.2194)
 82 RET("K2STREET3") - Secondary Next of Kin Street Address [Line 3] 
(.2195)
 83 RET("K2CITY") - Secondary Next of Kin City (.2196) 
 84 RET("K2STATE") - Secondary Next of Kin State (.2197) 
 85 RET("K2ZIP") - Secondary Next of Kin Zip (.2198) 
 86 RET("PCOUNTY") - Patient County (.117) 
   ^ WL SPECIFIC POSITION [13] ^ WL SERVICE/SPECIALTY IEN [14] 
 87 RET("PETH") - List of Patient Ethnicities/Names Eth|Name^...  
                  Use ETH^SDECU2 
 88 RET("PRACE") - List of Patient Races/Names RACE|NAME^... 
                   Use RACELST^SDECU2 
 89 RET("PMARITAL") - Patient Marital Status 
 90 RET("PRELIGION") - Patient Religious Preference 
 91 RET("PTACTIVE") - Patient Temporary Address Active? (.12105) 
 92 RET("PTADDRESS1") - Patient Temporary Address Line 1 (.1211) 
 93 RET("PTADDRESS2") - Patient Temporary Address Line 2 (.1212) 
 94 RET("PTADDRESS3") - Patient Temporary Address Line 3 (.1213) 
   ^ WL SERVICE/SPECIALTY NAME [15] 
 95 RET("PTCITY") - Patient Temporary City (.1214) 
 96 RET("PTSTATE") - Patient Temporary State (.1215) 
 97 RET("PTZIP") - Patient Temporary Zip (.1216) 
 98 RET("PTZIP+4") - Patient Temporary Zip+4 (.12112) 
 99 RET("PTCOUNTRY") - Patient Temporary Country (.1223) 
 100 RET("PTCOUNTY") - Patient Temporary County (.12111) 
 101 RET("PTMPPHONE") - Patient Temporary Phone (.1219) 
 102 RET("PTSTART") - Patient Temporary Address Start Date (.1217) 
 103 RET("PTEND") - Patient Temporary Address End Date (.1218) 
 104 RET("PCELL") - Patient Cell Phone (.134) 
   ^ WL SPECIFIC CLINIC IEN [16] ^ WLSPECIFIC CLINIC NAME [17] 
 105 RET("PPAGER") - Patient Pager Number (.135) 
 106 RET("PEMAIL") - Patient Email Address (.133) 
 107 RET("PF_FFF") - Patient FUGITIVE FELON FLAG 1=YES 
 108 RET("PF_VCD") - Patient VETERAN CATASTROPHICALLY DISABLED? Y=YES 
N=NO 
 109 PFNATIONAL - Patient national Flags 
                         (PRF ASSIGNMENT/PRF NATIONAL FLAG) separated by 
| 
        Each | piece contains the following ;; pieces: 
        1. PRFAID - PRF Assignment ID pointer to PRF ASSIGNMENT file