[613] | 1 | YTLCTD ;SLC/TGA-LIST INSTRUMENTS ; 7/10/89 11:30 ;
|
---|
| 2 | ;;5.01;MENTAL HEALTH;**70**;Dec 30, 1994
|
---|
| 3 | ;
|
---|
| 4 | ; Called from the top by MENU option YSMLST
|
---|
| 5 | 1 ;
|
---|
| 6 | W @IOF,!!!?27,"List Tests and Interviews"
|
---|
| 7 | W !!,"Tests and interviews can be listed by CODES only, CODES and TITLES,",!,"or by DESCRIPTION, including author, number of items, etc.",!
|
---|
| 8 | OP ;
|
---|
| 9 | W !!,"(C)ode, (T)itle, (D)escription, or (Q)uit: Q// " R A:DTIME S YSTOUT='$T,YSUOUT=A["^" S A=$TR($E(A_"Q"),"ctdq","CTDQ") G:YSTOUT!YSUOUT!("Q"[A) END
|
---|
| 10 | I A["?" S XQH="YS-LIST-OF-TESTS" D EN^XQH K A G OP
|
---|
| 11 | I "CTD?"'[A W "??",$C(7) G OP
|
---|
| 12 | S %ZIS="QM"
|
---|
| 13 | D ^%ZIS
|
---|
| 14 | G:$G(POP) END
|
---|
| 15 | I $D(IO("Q")) D Q
|
---|
| 16 | .S ZTRTN="ENP^YTLCTD",ZTSAVE("A")="",ZTDESC="YS MH INST LIST"
|
---|
| 17 | .D ^%ZTLOAD
|
---|
| 18 | .D HOME^%ZIS
|
---|
| 19 | .Q
|
---|
| 20 | U IO
|
---|
| 21 | ENP ;
|
---|
| 22 | S:$D(ZTQUEUED) ZTREQ="@"
|
---|
| 23 | S YSLFT=0
|
---|
| 24 | D @A
|
---|
| 25 | W !
|
---|
| 26 | ;D KILL^%ZTLOAD G:$D(ZTSK) END D:'YSLFT WAIT^YSUTL:IOST?1"C-".E G:YSLFT END D ^%ZISC G OP
|
---|
| 27 | D ^%ZISC
|
---|
| 28 | W @IOF
|
---|
| 29 | END ;
|
---|
| 30 | K A,J,Y,YSLFT,YSORD,YSTESTN,YSTOUT,YSUOUT,YSXT,Z Q
|
---|
| 31 | C ;
|
---|
| 32 | S YSTESTN="?",YSORD=DUZ,YSXT="" W @IOF D ^YTLIST Q
|
---|
| 33 | T ;
|
---|
| 34 | D ^YTTLS Q
|
---|
| 35 | D ;
|
---|
| 36 | D ^YTDESC Q
|
---|