Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMPDRS.m

    r628 r636  
    1 PXRMPDRS ;SLC/PKR - Patient List Demographic Report data selection. ;03/22/2007
    2  ;;2.0;CLINICAL REMINDERS;**4,6**;Feb 04, 2005;Build 123
     1PXRMPDRS ;SLC/PKR - Patient List Demographic Report data selection. ;07/18/2006
     2 ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21
    33 ;
    4 ADDSEL(DATA,SUB) ;Let the user select the address information they want.
     4ADDSEL(ADDDATA) ;Let the user select the address information they want.
    55 N ADDLIST,LIST
    6  S ADDLIST("A",1)=" 1 - CURRENT ADDRESS",DATA(SUB,1,1)="STREET ADDRESS #1"_U_1
    7  S DATA(SUB,1,2)="STREET ADDRESS #2"_U_1,DATA(SUB,1,3)="STREET ADDRESS #3"_U_1
    8  S DATA(SUB,1,4)="CITY"_U_1,DATA(SUB,1,5)="STATE"_U_2,DATA(SUB,1,6)="ZIP"_U_1
    9  S DATA(SUB,1,7)="COUNTY"_U_2
    10  S ADDLIST("A",2)=" 2 - PHONE NUMBER",DATA(SUB,2,8)="PHONE NUMBER"_U_1
     6 S ADDLIST("A",1)=" 1 - CURRENT ADDRESS",ADDDATA(1,1)="STREET ADDRESS #1"_U_1
     7 S ADDDATA(1,2)="STREET ADDRESS #2"_U_1,ADDDATA(1,3)="STREET ADDRESS #3"_U_1
     8 S ADDDATA(1,4)="CITY"_U_1,ADDDATA(1,5)="STATE"_U_2,ADDDATA(1,6)="ZIP"_U_1
     9 S ADDDATA(1,7)="COUNTY"_U_2
     10 S ADDLIST("A",2)=" 2 - PHONE NUMBER",ADDDATA(2,8)="PHONE NUMBER"_U_1
    1111 S ADDLIST("A")="Enter your selection(s)"
    1212 S ADDLIST("?")="^D HELP^PXRMPDRS"
     
    1414 S LIST=$$SEL^PXRMPDRS(.ADDLIST,2)
    1515 I $D(DTOUT)!$D(DUOUT) Q
    16  S DATA(SUB)=LIST
    17  S DATA(SUB,"LEN")=$L(LIST,",")-1
     16 S ADDDATA=LIST
     17 S ADDDATA("LEN")=$L(LIST,",")-1
    1818 Q
    1919 ;
     
    4444 Q
    4545 ;
    46 APPSEL(DATA,SUB) ;Let the user select the appointment information they want.
     46APPSEL(APPDATA) ;Let the user select the appointment information they want.
    4747 ;The first subscript of APPDATA is the selection number and the
    4848 ;the second subscript is the subscript where the data is returned
     
    5050 ;second piece is the piece of VAPA this is displayed.
    5151 N APPLIST,LIST,MAX
    52  S APPLIST("A",1)=" 1 - APPOINTMENT DATE",DATA(SUB,1,1)="APPOINTMENT DATE"_U_1
    53  S APPLIST("A",2)=" 2 - CLINIC",DATA(SUB,2,2)="CLINIC"_U_2
     52 S APPLIST("A",1)=" 1 - APPOINTMENT DATE",APPDATA(1,1)="APPOINTMENT DATE"_U_1
     53 S APPLIST("A",2)=" 2 - CLINIC",APPDATA(2,2)="CLINIC"_U_2
    5454 S APPLIST("A")="Enter your selection(s)"
    5555 S APPLIST("?")="^D HELP^PXRMPDRS"
     
    5757 S LIST=$$SEL^PXRMPDRS(.APPLIST,2)
    5858 I $D(DTOUT)!$D(DUOUT) Q
    59  S DATA(SUB)=LIST
    60  S DATA(SUB,"LEN")=$L(LIST,",")-1
    61  I DATA(SUB,"LEN")=0 Q
    62  S DATA(SUB,"MAX")=$$ASKNUM^PXRMEUT("Maximum number of appointments to display",1,25)
     59 S APPDATA=LIST
     60 S APPDATA("LEN")=$L(LIST,",")-1
     61 I APPDATA("LEN")=0 Q
     62 S APPDATA("MAX")=$$ASKNUM^PXRMEUT("Maximum number of appointments to display",1,25)
    6363 Q
    6464 ;
    65 DATASEL(LISTIEN,DATA,SUB) ; Build a list of data that is availble for
     65DATASEL(LISTIEN,FINDDATA) ; Build a list of data that is availble for
    6666 ;this patient list and let the user select what they want.
    6767 N IND,DATALIST,DTYPE
     
    6969 F  S DTYPE=$O(^PXRMXP(810.5,LISTIEN,35,"B",DTYPE)) Q:DTYPE=""  D
    7070 . S IND=IND+1,DATALIST("A",IND)=" "_IND_" - "_DTYPE
    71  . S DATA(SUB,IND,IND)=DTYPE
     71 . S FINDDATA(IND,IND)=DTYPE
    7272 ;If there is no data quit.
    73  I IND=0 S DATA(SUB,"LEN")=0 Q
     73 I IND=0 S FINDDATA("LEN")=0 Q
    7474 S DATALIST("A")="Enter your selections(s)"
    7575 S DATALIST("?")="^D HELP^PXRMPDRS"
     
    7777 S LIST=$$SEL^PXRMPDRS(.DATALIST,IND)
    7878 I $D(DTOUT)!$D(DUOUT) Q
    79  S DATA(SUB)=LIST
    80  S DATA(SUB,"LEN")=$L(LIST,",")-1
     79 S FINDDATA=LIST
     80 S FINDDATA("LEN")=$L(LIST,",")-1
    8181 Q
    8282 ;
    83 DEMSEL(DATA,SUB) ;Let the user select the demographic information they want.
    84  ;The first subscript of DATA is the selection number and the
     83DEMSEL(DEMDATA) ;Let the user select the demographic information they want.
     84 ;The first subscript of DEMDATA is the selection number and the
    8585 ;the second subscript is the subscript where the data is returned
    8686 ;in VADM. The first piece of DEMDATA is the name of the data and the
    8787 ;second piece is the piece of VADM this is displayed.
    8888 N DEMLIST,DTOUT,DUOUT,IND,ITEM,JND,KND,LIST,TEMP
    89  S DEMLIST("A",1)=" 1 - SSN",DATA(SUB,1,2)="SSN"_U_2
    90  S DEMLIST("A",2)=" 2 - DATE OF BIRTH",DATA(SUB,2,3)="DOB"_U_2
    91  S DEMLIST("A",3)=" 3 - AGE",DATA(SUB,3,4)="AGE"_U_1
    92  S DEMLIST("A",4)=" 4 - SEX",DATA(SUB,4,5)="SEX"_U_2
    93  S DEMLIST("A",5)=" 5 - DATE OF DEATH",DATA(SUB,5,6)="DOD"_U_2
    94  S DEMLIST("A",6)=" 6 - REMARKS",DATA(SUB,6,7)="REMARKS"_U_1
    95  S DEMLIST("A",7)=" 7 - HISTORIC RACE",DATA(SUB,7,8)="HISTORIC RACE"_U_2
    96  S DEMLIST("A",8)=" 8 - RELIGION",DATA(SUB,8,9)="RELIGION"_U_2
    97  S DEMLIST("A",9)=" 9 - MARITAL STATUS",DATA(SUB,9,10)="MARTIAL STATUS"_U_2
    98  S DEMLIST("A",10)="10 - ETHNICITY",DATA(SUB,10,11)="ETHNICITY"_U_2
    99  S DEMLIST("A",11)="11 - RACE",DATA(SUB,11,12)="RACE"_U_2
     89 S DEMLIST("A",1)=" 1 - SSN",DEMDATA(1,2)="SSN"_U_2
     90 S DEMLIST("A",2)=" 2 - DATE OF BIRTH",DEMDATA(2,3)="DOB"_U_2
     91 S DEMLIST("A",3)=" 3 - AGE",DEMDATA(3,4)="AGE"_U_1
     92 S DEMLIST("A",4)=" 4 - SEX",DEMDATA(4,5)="SEX"_U_2
     93 S DEMLIST("A",5)=" 5 - DATE OF DEATH",DEMDATA(5,6)="DOD"_U_2
     94 S DEMLIST("A",6)=" 6 - REMARKS",DEMDATA(6,7)="REMARKS"_U_1
     95 S DEMLIST("A",7)=" 7 - HISTORIC RACE",DEMDATA(7,8)="HISTORIC RACE"_U_2
     96 S DEMLIST("A",8)=" 8 - RELIGION",DEMDATA(8,9)="RELIGION"_U_2
     97 S DEMLIST("A",9)=" 9 - MARITAL STATUS",DEMDATA(9,10)="MARTIAL STATUS"_U_2
     98 S DEMLIST("A",10)="10 - ETHNICITY",DEMDATA(10,11)="ETHNICITY"_U_2
     99 S DEMLIST("A",11)="11 - RACE",DEMDATA(11,12)="RACE"_U_2
    100100 S DEMLIST("A")="Enter your selection(s)"
    101101 S DEMLIST("?")="^D HELP^PXRMPDRS"
     
    103103 S LIST=$$SEL^PXRMPDRS(.DEMLIST,11)
    104104 I $D(DTOUT)!$D(DUOUT) Q
    105  S DATA(SUB)=LIST
    106  S DATA(SUB,"LEN")=$L(LIST,",")-1
    107  F IND=1:1:DATA(SUB,"LEN") D
     105 S DEMDATA=LIST
     106 S DEMDATA("LEN")=$L(LIST,",")-1
     107 F IND=1:1:DEMDATA("LEN") D
    108108 . S JND=$P(LIST,",",IND)
    109  . S KND=$O(DATA(SUB,JND,""))
    110  . S TEMP=$P(DATA(SUB,JND,KND),U,1)
     109 . S KND=$O(DEMDATA(JND,""))
     110 . S TEMP=$P(DEMDATA(JND,KND),U,1)
    111111 . I TEMP="SSN" D
    112112 .. N FULLSSN
    113113 .. D SSN^PXRMXSD(.FULLSSN)
    114  .. S DATA(SUB,"FULLSSN")=$S($G(FULLSSN)="Y":1,1:0)
    115  . I $D(DTOUT)!$D(DUOUT) S IND=DATA(SUB,"LEN")+1 Q
    116  . I TEMP="ETHNICITY" S $P(DATA(SUB,10,11),U,3)=$$ASKNUM^PXRMEUT("Maximum number of ethnicity entries to display",1,10)
    117  . I TEMP="RACE" S $P(DATA(SUB,11,12),U,3)=$$ASKNUM^PXRMEUT("Maximum number of race entries to display",1,10)
     114 .. S DEMDATA("FULLSSN")=$S($G(FULLSSN)="Y":1,1:0)
     115 . I $D(DTOUT)!$D(DUOUT) S IND=DEMDATA("LEN")+1 Q
     116 . I TEMP="ETHNICITY" S $P(DEMDATA(10,11),U,3)=$$ASKNUM^PXRMEUT("Maximum number of ethnicity entries to display",1,10)
     117 . I TEMP="RACE" S $P(DEMDATA(11,12),U,3)=$$ASKNUM^PXRMEUT("Maximum number of race entries to display",1,10)
    118118 I $D(DTOUT)!$D(DUOUT) K DTOUT,DUOUT G DSEL
    119119 Q
    120120 ;
    121 ELIGSEL(DATA,SUB) ;Let the user select the eligibility data they want.
     121ELIGSEL(ELIGDATA) ;Let the user select the eligibility data they want.
    122122 ;The first subscript of ELIGDATA is the selection number and the
    123123 ;the second subscript is the subscript where the data is returned
     
    125125 ;second piece is the piece of VAEL this is displayed.
    126126 N ELIGLIST,ITEM,LIST
    127  S ELIGLIST("A",1)=" 1 - PRIMARY ELGIBILITY CODE",DATA(SUB,1,1)="PRIMARY ELGIBILITY CODE"_U_2
    128  S ELIGLIST("A",2)=" 2 - PERIOD OF SERVICE",DATA(SUB,2,2)="PERIOD OF SERVICE"_U_2
    129  S ELIGLIST("A",3)=" 3 - % SERVICE CONNECTED",DATA(SUB,3,3)="% SERVICE CONNECTED"_U_2
    130  S ELIGLIST("A",4)=" 4 - VETERAN",DATA(SUB,4,4)="VETERAN"_U_1
    131  S ELIGLIST("A",5)=" 5 - TYPE",DATA(SUB,5,6)="TYPE"_U_2
    132  S ELIGLIST("A",6)=" 6 - ELIGIBILITY STATUS",DATA(SUB,6,8)="ELIGIBILITY STATUS"_U_2
    133  S ELIGLIST("A",7)=" 7 - CURRENT MEANS TEST",DATA(SUB,7,9)="CURRENT MEANS TEST"_U_2
     127 S ELIGLIST("A",1)=" 1 - PRIMARY ELGIBILITY CODE",ELIGDATA(1,1)="PRIMARY ELGIBILITY CODE"_U_2
     128 S ELIGLIST("A",2)=" 2 - PERIOD OF SERVICE",ELIGDATA(2,2)="PERIOD OF SERVICE"_U_2
     129 S ELIGLIST("A",3)=" 3 - % SERVICE CONNECTED",ELIGDATA(3,3)="% SERVICE CONNECTED"_U_2
     130 S ELIGLIST("A",4)=" 4 - VETERAN",ELIGDATA(4,4)="VETERAN"_U_1
     131 S ELIGLIST("A",5)=" 5 - TYPE",ELIGDATA(5,6)="TYPE"_U_2
     132 S ELIGLIST("A",6)=" 6 - ELIGIBILITY STATUS",ELIGDATA(6,8)="ELIGIBILITY STATUS"_U_2
     133 S ELIGLIST("A",7)=" 7 - CURRENT MEANS TEST",ELIGDATA(7,9)="CURRENT MEANS TEST"_U_2
    134134 S ELIGLIST("A")="Enter your selection(s)"
    135135 S ELIGLIST("?")="^D HELP^PXRMPDRS"
     
    137137 S LIST=$$SEL^PXRMPDRS(.ELIGLIST,7)
    138138 I $D(DTOUT)!$D(DUOUT) Q
    139  S DATA(SUB)=LIST
    140  S DATA(SUB,"LEN")=$L(LIST,",")-1
     139 S ELIGDATA=LIST
     140 S ELIGDATA("LEN")=$L(LIST,",")-1
    141141 Q
    142142 ;
     
    147147 Q
    148148 ;
    149 INPSEL(DATA,SUB) ;Let the user select the inpatient information they want.
     149INPSEL(INPDATA) ;Let the user select the inpatient information they want.
    150150 ;The first subscript of INPDATA is the selection number and the
    151151 ;the second subscript is the subscript where the data is returned
     
    153153 ;second piece is the piece of VAIN this is displayed.
    154154 N INPLIST,ITEM,LIST
    155  S INPLIST("A",1)=" 1 - WARD LOCATION",DATA(SUB,1,4)="WARD"_U_2
    156  S INPLIST("A",2)=" 2 - ROOM-BED",DATA(SUB,2,5)="ROOM-BED"_U_1
    157  S INPLIST("A",3)=" 3 - ADMISSION DATE/TIME",DATA(SUB,3,7)="ADMISSION DATE/TIME"_U_2
    158  S INPLIST("A",4)=" 4 - ATTENDING PHYSICIAN",DATA(SUB,4,11)="ATTENDING"_U_2
     155 S INPLIST("A",1)=" 1 - WARD LOCATION",INPDATA(1,4)="WARD"_U_2
     156 S INPLIST("A",2)=" 2 - ROOM-BED",INPDATA(2,5)="ROOM-BED"_U_1
     157 S INPLIST("A",3)=" 3 - ADMISSION DATE/TIME",INPDATA(3,7)="ADMISSION DATE/TIME"_U_2
     158 S INPLIST("A",4)=" 4 - ATTENDING PHYSICIAN",INPDATA(4,11)="ATTENDING"_U_2
    159159 S INPLIST("A")="Enter your selection(s)"
    160160 S INPLIST("?")="^D HELP^PXRMPDRS"
     
    162162 S LIST=$$SEL^PXRMPDRS(.INPLIST,5)
    163163 I $D(DTOUT)!$D(DUOUT) Q
    164  S DATA(SUB)=LIST
    165  S DATA(SUB,"LEN")=$L(LIST,",")-1
     164 S INPDATA=LIST
     165 S INPDATA("LEN")=$L(LIST,",")-1
    166166 Q
    167167 ;
    168 REMSEL(PLIEN,DATA,SUB) ;If the list was generated from a reminder report
     168REMSEL(PLIEN,REMDATA) ;If the list was generated from a reminder report
    169169 ;let the user select the reminder data they want.
    170  I '$P(^PXRMXP(810.5,PLIEN,0),U,9) S DATA(SUB,"LEN")=0 Q
     170 I '$P(^PXRMXP(810.5,PLIEN,0),U,9) S REMDATA("LEN")=0 Q
    171171 N IEN,IND,REMLIST,RNAME
    172172 S (IEN,IND)=0
     
    175175 . I RNAME="" S RNAME=$P(^PXD(811.9,IEN,0),U,1)
    176176 . S IND=IND+1
    177  . S DATA(SUB,"RNAME",IND)=RNAME
    178  . S DATA(SUB,"IEN",IND)=IEN
     177 . S REMDATA("RNAME",IND)=RNAME
     178 . S REMDATA("IEN",IND)=IEN
    179179 . S REMLIST("A",IND)=" "_IND_" - "_RNAME
    180180 S REMLIST("A")="Enter your selection(s)"
     
    183183 S LIST=$$SEL^PXRMPDRS(.REMLIST,IND)
    184184 I $D(DTOUT)!$D(DUOUT) Q
    185  S DATA(SUB)=LIST
    186  S DATA(SUB,"LEN")=$L(LIST,",")-1
     185 S REMDATA=LIST
     186 S REMDATA("LEN")=$L(LIST,",")-1
    187187 Q
    188188 ;
Note: See TracChangeset for help on using the changeset viewer.