YTFEAR ;SLC/DKG-TEST PKG: FEAR INV. ; 10/20/88 08:43 ;
;;5.01;MENTAL HEALTH;;Dec 30, 1994
;
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
W !!,"--- VERY MUCH DISTURBING ---",!
S K=5 D CK I YSLFT G END
W !!,"--- DISTURBING ---",! S K=4 D CK I YSLFT G END
I IOST?1"P".E D:$Y>40 DTA^YTREPT
E D WAIT G:YSLFT END
W !!!?25,"--- ITEM RESPONSES ---",!!
S K=10,YSIT=1 F I=1:1:10 D RLN
S K=8 D RLN
END ;
K I,YSIT,J,K,YSKK,X Q
RLN ;
W ?1 F YSKK=1:1:K W $J(YSIT,3,0)," ",$E(X,YSIT)," " S YSIT=YSIT+1
W ! Q
CK ;
I X'[K W !,"NONE INDICATED",! Q
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
Q
WAIT ;
; Added 5/6/94 LJA
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
N N1,N2,N3,N4,P,P0,P1,P3,R,R1,S,S1,T,T1,T2,TT,V,V1,V2,V3
N V4,V5,V6,W,X,X0,X1,X2,X3,X4,X7,X8,X9,Y,Y1,Y2,Z,Z1,Z3
;
F I0=1:1:(IOSL-$Y-2) W !
N DTOUT,DUOUT,DIRUT
S DIR(0)="E" D ^DIR K DIR S YSTOUT=$D(DTOUT),YSUOUT=$D(DUOUT),YSLFT=$D(DIRUT)
W @IOF Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HYTFEAR 1199 printed Dec 13, 2024@02:17:19 Page 2
YTFEAR ;SLC/DKG-TEST PKG: FEAR INV. ; 10/20/88 08:43 ;
+1 ;;5.01;MENTAL HEALTH;;Dec 30, 1994
+2 ;
+3 SET YSLFT=0
SET X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1)
DO DTA^YTREPT
WRITE !!?25,$PIECE(^YTT(601,YSTEST,"P"),U)
IF '$DATA(^YTT(601,YSTEST,"Q",1,"T",1,0))
WRITE !!,"NOT OPERATIONAL"
QUIT
+4 WRITE !!,"--- VERY MUCH DISTURBING ---",!
+5 SET K=5
DO CK
IF YSLFT
GOTO END
+6 WRITE !!,"--- DISTURBING ---",!
SET K=4
DO CK
IF YSLFT
GOTO END
+7 IF IOST?1"P".E
if $Y>40
DO DTA^YTREPT
+8 IF '$TEST
DO WAIT
if YSLFT
GOTO END
+9 WRITE !!!?25,"--- ITEM RESPONSES ---",!!
+10 SET K=10
SET YSIT=1
FOR I=1:1:10
DO RLN
+11 SET K=8
DO RLN
END ;
+1 KILL I,YSIT,J,K,YSKK,X
QUIT
RLN ;
+1 WRITE ?1
FOR YSKK=1:1:K
WRITE $JUSTIFY(YSIT,3,0)," ",$EXTRACT(X,YSIT)," "
SET YSIT=YSIT+1
+2 WRITE !
QUIT
CK ;
+1 IF X'[K
WRITE !,"NONE INDICATED",!
QUIT
+2 FOR J=1:1:108
if $EXTRACT(X,J)=K
WRITE !,^YTT(601,YSTEST,"Q",J,"T",1,0)
if $Y>55&(IOST?1"P".E)
DO DTA^YTREPT
if $Y>55&(IOST?1"P".E)
WRITE !!!
IF IOST?1"C-".E
if $Y>(IOSL-4)
DO WAIT
if YSLFT
QUIT
+3 QUIT
WAIT ;
+1 ; Added 5/6/94 LJA
+2 NEW A,B,B1,C,D,E,E1,F,F1,G,G1,H,I,J,J1,J2,J3,J4,K,L,L1,L2,M,N
+3 NEW N1,N2,N3,N4,P,P0,P1,P3,R,R1,S,S1,T,T1,T2,TT,V,V1,V2,V3
+4 NEW V4,V5,V6,W,X,X0,X1,X2,X3,X4,X7,X8,X9,Y,Y1,Y2,Z,Z1,Z3
+5 ;
+6 FOR I0=1:1:(IOSL-$Y-2)
WRITE !
+7 NEW DTOUT,DUOUT,DIRUT
+8 SET DIR(0)="E"
DO ^DIR
KILL DIR
SET YSTOUT=$DATA(DTOUT)
SET YSUOUT=$DATA(DUOUT)
SET YSLFT=$DATA(DIRUT)
+9 WRITE @IOF
QUIT
+10 QUIT