Last change
on this file since 1710 was 613, checked in by George Lilly, 15 years ago |
initial load of WorldVistAEHR
|
File size:
939 bytes
|
Line | |
---|
1 | WVGETAL1 ;HCIOFO/FT-Autoload Female Patients (cont.) ;2/18/00 13:17
|
---|
2 | ;;1.0;WOMEN'S HEALTH;**7,10**;Sep 30, 1998
|
---|
3 | EC ; prompt for Eligibility codes
|
---|
4 | W ! K DIR
|
---|
5 | S DIR(0)="Y",DIR("A")=" Include patients by eligibility code, too"
|
---|
6 | S DIR("?")="Answer YES to include non-veteran patients with a desired eligibility code"
|
---|
7 | D ^DIR K DIR
|
---|
8 | I $D(DIRUT) S WVPOP=1
|
---|
9 | Q:$G(WVPOP)!(Y=0)
|
---|
10 | K DIC N WVLOOP
|
---|
11 | S WVLOOP=0,DIC="^DIC(8,",Y=0
|
---|
12 | F Q:Y<0 D
|
---|
13 | .S WVLOOP=WVLOOP+1
|
---|
14 | .S DIC(0)="AEMQZ"
|
---|
15 | .S DIC("A")=" Select "_$S(WVLOOP>1:"Next ",1:"")_"Eligibility Code: "
|
---|
16 | .D ^DIC
|
---|
17 | .S:$D(DTOUT)!($D(DUOUT)) WVPOP=1
|
---|
18 | .I $D(DTOUT)!($D(DUOUT))!(Y<0) Q
|
---|
19 | .S WVEC(+Y)=""
|
---|
20 | .Q
|
---|
21 | K DIC
|
---|
22 | Q
|
---|
23 | VECCHK(WVN) ; Veteran/Eligibility Code check
|
---|
24 | N DFN,WVLOOP,VAEL,VAERR,X,Y
|
---|
25 | ; get veteran status
|
---|
26 | I $$GET1^DIQ(2,WVN,1901,"I")="Y" Q 1
|
---|
27 | S DFN=WVN
|
---|
28 | D ELIG^VADPT ;get elibility code
|
---|
29 | S WVLOOP=+$P($G(VAEL(1)),U,1) ;VAEL(1)=internal^external
|
---|
30 | I 'WVLOOP Q 0
|
---|
31 | I $D(WVEC(WVLOOP)) Q 1
|
---|
32 | Q 0
|
---|
33 | ;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.