source: FOIAVistA/trunk/r/SURVEY_GENERATOR-QAP/QAPFILE.m@ 1274

Last change on this file since 1274 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1QAPFILE ;557/THM-POPULATE THE DEMOGRAPHIC REFERENCE FILE [ 06/19/95 11:59 AM ]
2 ;;2.0;Survey Generator;;Jun 20, 1995
3 ;
4 D SCREEN^QAPUTIL
5EN I $D(DUZ)#2=0 W !!,*7,"Your DUZ is missing ! " H 2 G EXIT
6 I '$D(DUZ(0)) W !!,*7,"Your DUZ(0) is missing ! " H 2 G EXIT
7 ;
8BEGIN W @IOF,! S QAPHDR="Populate the Demographic Reference File" X QAPBAR W !!
9 I DUZ(0)'="@" W !!,*7,"Programmer access required for this program ! " H 2 G EXIT
10 W !,"Enter DEMOGRAPHIC REFERENCE FILE NAME: " R X:DTIME I X[U!(X="") G EXIT
11 S DLAYGO=748.2,DIC="^QA(748.2,",DIC(0)="EQLMZ"
12 I X["?" S IOTM=1,IOBM=24 W @TOPBOT,@IOF,! D ^DIC G:$D(DTOUT) EXIT W !!,"Press RETURN " R ANS:DTIME G:'$T EXIT S IOTM=8,IOBM=24 W @TOPBOT G BEGIN
13 D ^DIC G:X=""!(X[U) EXIT S DA=+Y I +Y<0 H 1 G EN
14 I $P(Y,U,3)'=1 S DR=".01",DIE=DIC W !! D ^DIE G EN
15 ;
16EXIT G EXIT^QAPUTIL
17 ;
18SCREEN ;screen any user file selections on demographics
19 ;they are not allowed to use files they have no normal access to
20 S QAPY=Y,QAPY=+$P($G(^QA(748.2,+QAPY,0)),U,1)
21 S PROTECT=$G(^DIC(+QAPY,0,"RD"))
22 I DUZ(0)="@"!(DUZ(0)[PROTECT) ;set $T
23 K PROTECT,DIC("S"),QAPY Q
Note: See TracBrowser for help on using the repository browser.