source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTFEAR.m@ 1710

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

initial load of WorldVistAEHR

File size: 1.1 KB
Line 
1YTFEAR ;SLC/DKG-TEST PKG: FEAR INV. ; 10/20/88 08:43 ;
2 ;;5.01;MENTAL HEALTH;;Dec 30, 1994
3 ;
4 S YSLFT=0,X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1) D DTA^YTREPT W !!?25,$P(^YTT(601,YSTEST,"P"),U) I '$D(^YTT(601,YSTEST,"Q",1,"T",1,0)) W !!,"NOT OPERATIONAL" Q
5 W !!,"--- VERY MUCH DISTURBING ---",!
6 S K=5 D CK I YSLFT G END
7 W !!,"--- DISTURBING ---",! S K=4 D CK I YSLFT G END
8 I IOST?1"P".E D:$Y>40 DTA^YTREPT
9 E D WAIT G:YSLFT END
10 W !!!?25,"--- ITEM RESPONSES ---",!!
11 S K=10,YSIT=1 F I=1:1:10 D RLN
12 S K=8 D RLN
13END ;
14 K I,YSIT,J,K,YSKK,X Q
15RLN ;
16 W ?1 F YSKK=1:1:K W $J(YSIT,3,0)," ",$E(X,YSIT)," " S YSIT=YSIT+1
17 W ! Q
18CK ;
19 I X'[K W !,"NONE INDICATED",! Q
20 F J=1:1:108 W:$E(X,J)=K !,^YTT(601,YSTEST,"Q",J,"T",1,0) D:$Y>55&(IOST?1"P".E) DTA^YTREPT W:$Y>55&(IOST?1"P".E) !!! I IOST?1"C-".E D:$Y>(IOSL-4) WAIT Q:YSLFT
21 Q
22WAIT ;
23 ; Added 5/6/94 LJA
24 N A,B,B1,C,D,E,E1,F,F1,G,G1,H,I,J,J1,J2,J3,J4,K,L,L1,L2,M,N
25 N N1,N2,N3,N4,P,P0,P1,P3,R,R1,S,S1,T,T1,T2,TT,V,V1,V2,V3
26 N V4,V5,V6,W,X,X0,X1,X2,X3,X4,X7,X8,X9,Y,Y1,Y2,Z,Z1,Z3
27 ;
28 F I0=1:1:(IOSL-$Y-2) W !
29 N DTOUT,DUOUT,DIRUT
30 S DIR(0)="E" D ^DIR K DIR S YSTOUT=$D(DTOUT),YSUOUT=$D(DUOUT),YSLFT=$D(DIRUT)
31 W @IOF Q
32 Q
Note: See TracBrowser for help on using the repository browser.