source: FOIAVistA/trunk/r/TEXT_INTEGRATION_UTILITIES-GMRP-TIU/TIUSTT.m@ 1327

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

initial load of FOIAVistA 6/30/08 version

File size: 2.2 KB
Line 
1TIUSTT ; GENERATED FROM 'TIU PRINT TRANS STATS' PRINT TEMPLATE (#1117) ; 03/03/04 ; (FILE 8925, MARGIN=132)
2 G BEGIN
3CP G CP^DIO2
4C S DQ(C)=Y
5S S Q(C)=Y*Y+Q(C) S:L(C)>Y L(C)=Y S:H(C)<Y H(C)=Y
6P S N(C)=N(C)+1
7A S S(C)=S(C)+Y
8 Q
9D I Y=DITTO(C) S Y="" Q
10 S DITTO(C)=Y
11 Q
12N W !
13T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
14 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
15 Q
16DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
17 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
18 W Y Q
19M D @DIXX
20 Q
21BEGIN ;
22 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
23 I $D(DXS)<9 M DXS=^DIPT(1117,"DXS")
24 S I(0)="^TIU(8925,",J(0)=8925
25 S X=$G(^TIU(8925,D0,13)) W ?0 S Y=$P(X,U,2),C=1 D D S Y(0)=Y S Y=$S(+$G(TIUINI):$$LOWER^TIULS($P($G(^VA(200,+Y(0),0)),U,2)),1:$P($G(^VA(200,+Y(0),0)),U,2)) W $E(Y,1,15)
26 S X=$G(^TIU(8925,D0,0)) D N:$X>16 Q:'DN W ?16 S Y=$P(X,U,10),C=2 D P:Y]"" W $J(Y,8)
27 D N:$X>27 Q:'DN W ?27 S DIP(1)=$S($D(^TIU(8925,D0,13)):^(13),1:"") S X=$P(DIP(1),U,1),X=$P(X,".",1) S Y=X K DIP K:DN Y S Y=X D DT
28 D N:$X>41 Q:'DN W ?41 X DXS(1,9) K DIP K:DN Y W $E(X,1,15)
29 D N:$X>58 Q:'DN W ?58 X DXS(2,9.2) S X1=DIP(2) D ^XUWORKDY K DIP K:DN Y W $J(X,3) K Y(8925,-1) S Y=X,C=3 D P:Y'?."*"
30 D N:$X>74 Q:'DN W ?74 X DXS(3,9.2) S X1=DIP(2) D ^XUWORKDY K DIP K:DN Y W $J(X,3) K Y(8925,-1) S Y=X,C=4 D P:Y'?."*"
31 D N:$X>89 Q:'DN W ?89 X DXS(4,9.2) S X1=DIP(2) D ^XUWORKDY K DIP K:DN Y W $J(X,3) K Y(8925,-1) S Y=X,C=5 D P:Y'?."*"
32 D N:$X>104 Q:'DN W ?104 X DXS(5,9) K DIP K:DN Y W $J(X,3) K Y(8925,-1) S Y=X,C=6 D P:Y'?."*"
33 S X=$G(^TIU(8925,D0,0)) D N:$X>119 Q:'DN W ?119 S Y=$P(X,U,1) S Y(0)=Y S Y=$S($$PNAME^TIULC1(+Y)]"":$$PNAME^TIULC1(+Y),$P(^TIU(8925.1,+Y,0),U,3)]"":$P(^TIU(8925.1,+Y,0),U,3),1:Y) W $E(Y,1,8)
34 K Y
35 Q
36HEAD ;
37 W !,?20,"Line"
38 W !,?0,"Transciber",?19,"Count",?27,"Ref Date",?41,"Patient",?58,"Disch-Dict",?74,"Dict-Transcr",?89,"Transcr-Sign",?104,"Sign-Cosign"
39 W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.