Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: WVGETAL1

WVGETAL1.m

Go to the documentation of this file.
  1. WVGETAL1 ;HCIOFO/FT-Autoload Female Patients (cont.) ;2/18/00 13:17
  1. ;;1.0;WOMEN'S HEALTH;**7,10**;Sep 30, 1998
  1. EC ; prompt for Eligibility codes
  1. W ! K DIR
  1. S DIR(0)="Y",DIR("A")=" Include patients by eligibility code, too"
  1. S DIR("?")="Answer YES to include non-veteran patients with a desired eligibility code"
  1. D ^DIR K DIR
  1. I $D(DIRUT) S WVPOP=1
  1. Q:$G(WVPOP)!(Y=0)
  1. K DIC N WVLOOP
  1. S WVLOOP=0,DIC="^DIC(8,",Y=0
  1. F Q:Y<0 D
  1. .S WVLOOP=WVLOOP+1
  1. .S DIC(0)="AEMQZ"
  1. .S DIC("A")=" Select "_$S(WVLOOP>1:"Next ",1:"")_"Eligibility Code: "
  1. .D ^DIC
  1. .S:$D(DTOUT)!($D(DUOUT)) WVPOP=1
  1. .I $D(DTOUT)!($D(DUOUT))!(Y<0) Q
  1. .S WVEC(+Y)=""
  1. .Q
  1. K DIC
  1. Q
  1. VECCHK(WVN) ; Veteran/Eligibility Code check
  1. N DFN,WVLOOP,VAEL,VAERR,X,Y
  1. ; get veteran status
  1. I $$GET1^DIQ(2,WVN,1901,"I")="Y" Q 1
  1. S DFN=WVN
  1. D ELIG^VADPT ;get elibility code
  1. S WVLOOP=+$P($G(VAEL(1)),U,1) ;VAEL(1)=internal^external
  1. I 'WVLOOP Q 0
  1. I $D(WVEC(WVLOOP)) Q 1
  1. Q 0
  1. ;