source: FOIAVistA/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTMMPI2B.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 4.8 KB
Line 
1YTMMPI2B ;ALB/ASF-MMPI2 HARRIS:LINGOS,CRIT,OS ;6/19/03 14:43
2 ;;5.01;MENTAL HEALTH;**10,31,76,70**;Dec 30, 1994
3SCOR ;
4 S (R,S)="" F J=44:1:84 D T0^YTMMPI2A S P=YSSX D LK^YTMMPI2A
5 K A,YSTVL S YSSCALE=S,YSRAW=R
6 D HL,WAIT:IOST?1"C-".E Q:YSLFT
7 D SI Q:YSLFT
8 ;D OS,WAIT:IOST?1"C-".E Q:YSLFT
9 D NEWSC,WAIT:(IOST?1"C".E)&($Y+4>IOSL) Q:YSLFT
10 D PSY5,WAIT:(IOST?1"C".E)&($Y+4>IOSL) Q:YSLFT
11 D RCCLIN,WAIT:IOST?1"C".E Q:YSLFT
12 ;I $D(^YTT(601,YSTEST,"S",107)) D ^YTMMPI2D,WAIT:IOST?1"C-".E Q:YSLFT
13 D CRIT,WAIT:IOST?1"C-".E Q:YSLFT D:(X(0)["X")!(X(1)["X")!(X(2)["X") OMIT,WAIT:IOST?1"C-".E Q:YSLFT D NK^YTMMPI2P Q
14HL ;HARRIS LINGOS
15 D DTA^YTREPT W !!!?25,"Harris-Lingoes Subscales",!?10,"(to be used as an aid in interpreting the parent scale)",!!?50,"Raw Score",?65,"T Score"
16 F J=44:1:71 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-43),S=$P(YSSCALE,U,J-43) D:YSN?.E1"1".E HLPARNT W !?3,$E($P(YSN," ",2,9),1,36)," (",$P(YSN," "),")",?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL&(IOST?1"C-".E) WAIT Q:YSLFT
17 Q
18HLPARNT ;
19 W:J'=44 !! W !,$S(J=44:"Depression",J=49:"Hysteria",J=54:"Psychopathic Deviate",J=59:"Paranoia",J=62:"Schizophrenia",1:"Hypomania")," Subscales",! Q
20WAIT ;
21 I IOST'?1"C-".E D DTA^YTREPT Q
22 ; %% ANOTHER READER CALL ???? LOOK YSLFT = YSTOUT %%%
23 W $C(7) R YSLFT:DTIME S YSTOUT='$T,YSUOUT=YSLFT["^"
24 S:YSLFT["^"!'$T YSLFT=1 Q:YSLFT S Z1=1 W # Q
25SI ;
26 D DTA^YTREPT W !!!?25,"Social Introversion Subscales",!?18,"(Ben-Porath, Hostetler, Butcher, and Graham)",!!?50,"Raw Score",?65,"T Score"
27 F J=72:1:74 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-43),S=$P(YSSCALE,U,J-43) W !?3,$E($P(YSN," ",2,9),1,36)," (",$P(YSN," "),")",?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL WAIT Q:YSLFT
28 Q
29OS ;OBVIOUS SUBTLE
30 W !!!!?25,"Wiener-Harmon Subtle-Obvious Subscales",!!?50,"Raw Score",?65,"T Score"
31 F J=75:1:84 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-43),S=$P(YSSCALE,U,J-43) W !?3,$E($P(YSN," ",2,9),1,36)," (",$P(YSN," "),")",?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL WAIT Q:YSLFT
32 S S=$P(YSSCALE,U,32,41) W !!?3,"Total T Score Difference (Obvious-Subtle): ",$P(S,U)+$P(S,U,3)+$P(S,U,5)+$P(S,U,7)+$P(S,U,9)-$P(S,U,2)-$P(S,U,4)-$P(S,U,6)-$P(S,U,8)-$P(S,U,10)
33 Q
34NEWSC ;scales AAS,AAP,marital,fp S,hostility
35 Q:'$D(^YTT(601,YSTEST,"S",107))
36 W !!?25,"Additional Supplementary Scales",!
37 S (R,S)="" F J=107:1:112 D T0^YTMMPI2A S P=YSSX D LK^YTMMPI2A
38 K A,YSTVL S YSSCALE=S,YSRAW=R
39 F J=107:1:112 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-106),S=$P(YSSCALE,U,J-106) W !?3,$E($P(YSN," ",2,9),1,36)," (",$P(YSN," "),")",?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL WAIT Q:YSLFT
40 W !!,"Uniform T scores are used for HS, D, Hy, Pd, Pa, Pt, Sc, Ma, and",!,"the Content Scales; all other MMPI-2 scales use linear T scores.",! Q
41PSY5 ; ADDED 8/30/02 ASF
42 Q:'$D(^YTT(601,YSTEST,"S",114))
43 W !?25,"PSY-5 Personality Psychopathology Five",!?50,"Raw Score",?65,"T Score"
44 S (R,S)="" F J=114:1:118 D T0^YTMMPI2A S P=YSSX D LK^YTMMPI2A
45 K A,YSTVL S YSSCALE=S,YSRAW=R
46 F J=114:1:118 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-113),S=$P(YSSCALE,U,J-113) W !?3,YSN,?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL WAIT Q:YSLFT
47 Q
48RCCLIN ;restructured clinical
49 Q:$G(^YTT(601,YSTEST,"S",119,0))'?.E1"RC".E
50 W !!?25,"RC Restructured Clinical Scales",!?50,"Raw Score",?65,"T Score"
51 S (R,S)="" F J=119:1:127 D T0^YTMMPI2A S P=YSSX D LK^YTMMPI2A
52 K A,YSTVL S YSSCALE=S,YSRAW=R
53 F J=119:1:127 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),R=$P(YSRAW,U,J-118),S=$P(YSSCALE,U,J-118) W !?3,YSN,?50,$J(R,4),?65,$J(S,4) D:$Y+4>IOSL WAIT Q:YSLFT
54 Q
55CRIT ;CRITICAL ITEMS
56 D DTA^YTREPT W !?25,"Critical Items",!! S N=0 F I=1:1 S N=$O(^YTT(601,YSTEST,"G",1,1,N)) Q:'N W !,^(N,0)
57 S YSCNT=0 F J=85,88,86,89,87,90 D CRIT1 Q:YSLFT
58 Q:YSLFT W !!!,YSCNT," Koss-Butcher Critical Items were endorsed."
59 S YSCNT=0 F J=91:1:100,106 D CRIT1 Q:YSLFT
60 Q:YSLFT W !!!,YSCNT," Lachar-Wrobel Critical Items were endorsed."
61 Q
62CRIT1 ;
63 S YSN=$P(^YTT(601,YSTEST,"S",J,0),U,2),YSKY=$S($D(^YTT(601,YSTEST,"S",J,YSSX_"K")):^(YSSX_"K"),1:^YTT(601,YSTEST,"S",J,"K",1,0))
64 I $D(^YTT(601,YSTEST,"S",J,"K",2,0)) S YSKY=YSKY_^(0)
65 S X(0)=^YTD(601.2,YSDFN,1,YSTEST,1,YSED,1),X(1)=^(2),X(2)=^(3) D:$Y+4>IOSL WAIT Q:YSLFT W !!!,YSN,!
66 F I=1:2 S YSIT=$P(YSKY,U,I) Q:YSIT'?1N.N S B=$P(YSKY,U,I+1) I $E(X(YSIT\200),YSIT#200)=B S YSCNT=YSCNT+1 D L,WAIT:$Y+4>IOSL
67 Q
68L W !,$J(YSIT,5),". " F K=1:1 Q:'$D(^YTT(601,YSTEST,"Q",YSIT,"T",K)) W:K'=1 !?7 W ^YTT(601,YSTEST,"Q",YSIT,"T",K,0)
69 W:B'="X" " (",B,")" Q
70OMIT ;OMITTED ITEMS
71 D DTA^YTREPT W !!!?25,"OMITTED ITEMS",!!!,"The following items were omitted by the client. It may be helpful to",!,"discuss these items with this individual to determine the reason",!,"for non-compliance with test instructions.",!!!
72 S B="X" F I=0,1,2 I X(I)["X" F J=1:1:$L(X(I)) I $E(X(I),J)="X" S YSIT=J+(200*I) D L
73 D WAIT Q
74VV ;
75 S N=0 F S N=$O(^YTT(601,202,"S",N)) Q:'N S G=^(N,0) W !,N,?5,$P(G,U),?10,$P(G,U,2)
Note: See TracBrowser for help on using the repository browser.