Ignore:
Timestamp:
Dec 4, 2009, 12:11:15 AM (14 years ago)
Author:
George Lilly
Message:

revised back to 6/30/08 version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTPCL.m

    r613 r623  
    1 YTPCL   ;ALB/ASF TEST-PTST CHECKLISTS ; 4/5/07 10:05am
    2         ;;5.01;MENTAL HEALTH;**66,85**;Dec 30, 1994;Build 49
    3         ;
    4         ;Reference to ^DIR supported by IA #10026
    5         ;
    6 SCOR    ;
    7         S YSTY="W*",YSNOITEM="DONE^YTPCL"
    8         D ^YTREPT
    9         S X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1)
    10         S (B,C,D)=0
    11         F I=1:1:5 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) B=B+1
    12         F I=6:1:12 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) C=C+1
    13         F I=13:1:17 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) D=D+1
    14 ZZ      W !!,"DSM-IV PTSD Criteria B ",$S(B>0:"IS met",1:"is NOT met")
    15         W !,"DSM-IV PTSD Criteria C ",$S(C>2:"IS met",1:"is NOT met")
    16         W !,"DSM-IV PTSD Criteria D ",$S(D>1:"IS met",1:"is NOT met")
    17         I (B>0)&(C>2)&(D>1) W !!,"*** PTSD Diagnosis IS SUGGESTED ***"
    18         W !!
    19         I IOST?1"C".E W ! S DIR(0)="E" D ^DIR Q:Y'=1
    20         W !!!,"Items"
    21         F I=1:1:17 D
    22         . W !,I,". ",^YTT(601,YSET,"Q",I,"T",1,0)
    23         . I $D(^YTT(601,YSET,"Q",I,"T",2,0)) W:^(0)'=" " !?7,^(0)
    24         . I I=5 W !?7,^YTT(601,YSET,"Q",I,"T",3,0)
    25         . W " :",$E(^YTD(601.2,YSDFN,1,YSET,1,YSED,1),I)
    26         W !!,"1= Not at all 2= A little bit 3= Moderately 4= Quite a bit 5= Extremely"
    27         Q
    28 SPTSD   ;SCREENING REPORT
    29         D DTA^YTREPT
    30         W !!,?7,"Post Traumatic Stress Disorder Screen",!!
    31         S X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1)
    32         W !,"Patient Reports "_$S($E(X,1)="Y":"HAVING",1:"NO")_" traumatic experiences.",!
    33         W:$E(X,2)="Y" !,"In the past month, the patient has been bothered by repeated, disturbing",!,"memories, thoughts, or images of one or more of the stressful events."
    34         W:$E(X,3)="Y" !,"In the past month, has felt distant or cut off from other people."
    35         W:$E(X,4)="Y" !,"Has been 'super alert' or watchful or on guard in the past month."
    36         W:$E(X,2,9)?.E1"Y".E !!,"Please refer to a mental health professional for further evaluation",!,"and treatment of probable PTSD"
    37         I IOST?1"C".E W ! S DIR(0)="E" D ^DIR Q:Y'=1
    38 DONE    QUIT
     1YTPCL ;ALB/ASF TEST-PTST CHECKLISTS ;7/19/00  11:11
     2 ;;5.01;MENTAL HEALTH;**66**;Dec 30, 1994
     3 ;
     4 ;Reference to ^DIR supported by IA #10026
     5 ;
     6SCOR ;
     7 S YSTY="W*",YSNOITEM="DONE^YTPCL"
     8 D ^YTREPT
     9 S X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1)
     10 S (B,C,D)=0
     11 F I=1:1:5 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) B=B+1
     12 F I=6:1:12 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) C=C+1
     13 F I=13:1:17 S Y=$E(X,I) S:(Y=3)!(Y=4)!(Y=5) D=D+1
     14ZZ W !!,"DSM-IV PTSD Criteria B ",$S(B>0:"IS met",1:"is NOT met")
     15 W !,"DSM-IV PTSD Criteria C ",$S(C>2:"IS met",1:"is NOT met")
     16 W !,"DSM-IV PTSD Criteria D ",$S(D>1:"IS met",1:"is NOT met")
     17 I (B>0)&(C>2)&(D>1) W !!,"*** PTSD Diagnosis IS SUGGESTED ***"
     18 W !!
     19 I IOST?1"C".E W ! S DIR(0)="E" D ^DIR Q:Y'=1
     20 D IR^YTREPT
     21 Q
     22SPTSD ;SCREENING REPORT
     23 D DTA^YTREPT
     24 W !!,?7,"Post Traumatic Stress Disorder Screen",!!
     25 S X=^YTD(601.2,YSDFN,1,YSET,1,YSED,1)
     26 W !,"Patient Reports "_$S($E(X,1)="Y":"HAVING",1:"NO")_" traumatic experiences.",!
     27 W:$E(X,2)="Y" !,"In the past month, the patient has been bothered by repeated, disturbing",!,"memories, thoughts, or images of one or more of the stressful events."
     28 W:$E(X,3)="Y" !,"In the past month, has felt distant or cut off from other people."
     29 W:$E(X,4)="Y" !,"Has been 'super alert' or watchful or on guard in the past month."
     30 W:$E(X,2,9)?.E1"Y".E !!,"Please refer to a mental health professional for further evaluation",!,"and treatment of probable PTSD"
     31 I IOST?1"C".E W ! S DIR(0)="E" D ^DIR Q:Y'=1
     32DONE QUIT
Note: See TracChangeset for help on using the changeset viewer.