source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTLCTD.m@ 1093

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

initial load of WorldVistAEHR

File size: 1.0 KB
RevLine 
[613]1YTLCTD ;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
51 ;
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.",!
8OP ;
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
21ENP ;
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
29END ;
30 K A,J,Y,YSLFT,YSORD,YSTESTN,YSTOUT,YSUOUT,YSXT,Z Q
31C ;
32 S YSTESTN="?",YSORD=DUZ,YSXT="" W @IOF D ^YTLIST Q
33T ;
34 D ^YTTLS Q
35D ;
36 D ^YTDESC Q
Note: See TracBrowser for help on using the repository browser.