SDEC GETREGA (3521)    REMOTE PROCEDURE (8994)

Name Value
NAME SDEC GETREGA
TAG GETREGA
ROUTINE SDEC
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
DESCRIPTION
return basic reg info/demographics for given patient
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Patient ID pointer to PATIENT file 2
    
RETURN PARAMETER DESCRIPTION
   a single entry in the global array. 
     9. HRN 
    Each ^ piece contains the following | pipe pieces: 
    1. PRFAID - PRF Assignment ID pointer to PRF ASSIGNMENT file 
                (#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 
  68. PFLOCAL - Patient Local Flags
                (PRF ASSIGNMENT/PRF Local FLAG) separated by ^ 
     10. HOMEPHONE - Phone Number (Residence) .131 
   Each ^ piece contains the following | pipe pieces: 
    1. PRFAID - PRF Assignment ID pointer to PRF ASSIGNMENT file 
                (#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 
69. SUBGRP - value from the ENROLLMENT SUBGROUP field of the
             PATIENT ENROLLMENT file (#27.11) 
     11. OFCPHONE  - Phone Number (work) .132 
              Valid values are a b c d e g 
70. CAT8G  - Category 8g flag - True if PriGRP ='Group 8' AND SUBGRP-'g'
71. SIMILAR = Similar Patients 
      MESSSAGE | Patients 
       Patients separated by ;; 
        Each ;; piece contains the following ~ pieces 
        DFN ~ NAME ~ DOB ~ SSN (last 4)
72. PRIGRP - Patient Priority Group
73. PCP
74. MHP
     12. MSGPHONE  - Temporary Phone Number (.1219) 
75. PREFGEN  - Patient Self Identified Gender
76. PREGTIME - Preregistration time stamp
77. PREFNAME - Preferred Name
                     Sometimes referred to as Phone #2 
     13. NOK NAME  - Primary NOK 
     14. NOK RELATIONSHIP 
     15. NOK PHONE 
     16. NOK STREET 
     17. NOK CITY 
     1. IEN 
     18. NOK STATE 
     19. NOK_ZIP 
     20. DATAREVIEWED - <not used?> 
     21. Medicare# 
     22. Suffix 
     23. RegistrationComments  
     24. GAF - <text> | <GAF score> | <GAF date> | <diagnosis by IEN> 
           | <diagnosis by name> 
     25. PRACE - Patient Race pointer to RACE file 10 
     26. PRACEN - Patient Race name from RACE file 
     2. STREET address 1 
     27. PETH - Patient Ethnicity list separated by pipe | 
            Pointer to ETHNICITY file 10.2 
     28. PETHN - Patient Ethnicity names spearated by pipe | 
     29. PCOUNTRY - Country pointer to COUNTRY CODE file 
     30. GENDER - Patient Gender - valid values are MALE FEMALE 
     31. SENSITIVE [31]- Sensitive Record Access data separated by pipe 
|: 
        1. return code: 
           -1-RPC/API failed 
              Required variable not defined 
     3. CITY/STATE 
            0-No display/action required 
              Not accessing own, employee, or sensitive record 
            1-Display warning message 
              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. WARD: 
            4-Access to Patient (#2) file records denied 
              SSN not defined 
        2. display text/message 
        3. display text/message 
        4. display text/message 
     32. SVCCONN  - Patient's Service Connected status 
              YES NO 
     33. SVCCONNP - Patient's Service Connected Percentage 
              Numeric 0-100 
     34. BADADD   - BAD ADDRESS INDICATOR 
     5. ZIP 
               1=UNDELIVERABLE 
               2=HOMELESS 
               3=OTHER 
               4=ADDRESS NOT FOUND 
  35. PADDRES2 - Patient Street Address line 2 
  36. PADDRES3 - Patient Street Address line 3 
  37. PCOUNTY - Patient's County 
  38. PCELL - Patient's Cell Phone 
  39. PEMAIL - Patient's Email address 
  40. PMARITAL - Patient Marital Status 
     6. NAME 
  41. PRELIGION - Patient Religious Preference 
  42. PTADDRESS1 - Patient Temporary Address Line 1 (.1211) 
  43. PTADDRESS2 - Patient Temporary Address Line 2 (.1212) 
  44. PTADDRESS3 - Patient Temporary Address Line 3 (.1213) 
  45. PTCITY - Patient Temporary City (.1214) 
  46. PTSTATE - Patient Temporary State (.1215) 
  47. PTZIP - Patient Temporary Zip (.1216) 
  48. PTZIP+4 - Patient Temporary Zip+4 (.12112) 
  49. PTCOUNTRY - Patient Temporary Country (.1223) 
  50. PTCOUNTY - Patient Temporary County (.12111) 
     7. DOB 
  51. PTSTART - Patient Temporary Address Start Date (.1217) 
  52. PTEND - Patient Temporary Address End Date (.1218) 
  53. KSTREET2 - Primary Next of Kin Street Address [Line 2] (.214) 
  54. KSTREET3 - Primary Next of Kin Street Address [Line 3] (.215) 
  55. NOK2 - Secondary Next of Kin (.2191) 
  56. K2NAME - Secondary Next of Kin name (.2191) 
  57. K2REL - Secondary Next of Kin Relationship to Patient (.2192) 
  58. K2PHONE - Secondary Next of Kin Phone (.2199) 
  59. K2STREET - Secondary Next of Kin Street Address [Line 1] (.2193) 
  60. K2STREET2 - Secondary Next of Kin Street Address [Line 2] 
     8. SSN (LAST 4 DIGITS) 
                  (.2194) 
  61. K2STREET3 - Secondary Next of Kin Street Address [Line 3] 
                  (.2195) 
  62. K2CITY - Secondary Next of Kin City (.2196) 
  63. K2STATE - Secondary Next of Kin State (.2197) 
  64. K2ZIP - Secondary Next of Kin Zip (.2198) 
  65. PF_FFF - Patient FUGITIVE FELON FLAG 1=YES 
  66. PF_VCD - Patient VETERAN CATASTROPHICALLY DISABLED? Y=YES N=NO 
  67. PFNATIONAL - Patient national Flags 
          (PRF ASSIGNMENT/PRF NATIONAL FLAG) separated by ^