INXHR04 ; GENERATED FROM 'INH MESSAGE DISPLAY' PRINT TEMPLATE (#2832) ; 10/25/01 ; (FILE 4001, MARGIN=80)
G BEGIN
N W !
T 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)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
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
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(2832,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
D N:$X>0 Q:'DN W ?0 W ""
W "" K DIP K:DN Y
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "Date/Time:"
S X=$G(^INTHU(D0,0)) D N:$X>11 Q:'DN W ?11 S Y=$P(X,U,1) D DT
D N:$X>31 Q:'DN W ?31 W "Msg ID:"
D N:$X>39 Q:'DN W ?39,$E($P(X,U,5),1,30)
D N:$X>70 Q:'DN W ?70 W "Seq#:"
D N:$X>76 Q:'DN W ?76,$E($P(X,U,17),1,4)
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "Destination:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^INRHD(Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,50)
D T Q:'DN D N D N:$X>12 Q:'DN W ?12 W "Status:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
D T Q:'DN D N D N:$X>9 Q:'DN W ?9 W "Direction:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,10) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
D N:$X>29 Q:'DN W ?29 W "Priority:"
D N:$X>39 Q:'DN W ?39,$E($P(X,U,16),1,2)
D N:$X>42 Q:'DN W ?42 W ""
N DIP,X1 S DIP(1)=$G(^INTHU(D0,0)) S X=$P(DIP(1),U,19),DIP(2)=$G(X) S X="TIME",X1=DIP(2) S:X]""&(X?.ANP) DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
D N:$X>45 Q:'DN W ?45 W "Time to Process:"
D N:$X>62 Q:'DN W ?62 W ""
W $$CDATASC^UTDT($G(DIPA("TIME")),1,1) K DIP K:DN Y
D T Q:'DN D N D N:$X>3 Q:'DN W ?3 W "Incoming Msg ID:"
S X=$G(^INTHU(D0,2)) D N:$X>20 Q:'DN W ?20,$E($P(X,U,1),1,20)
D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "Parent Message ID:"
D N:$X>20 Q:'DN W ?20 X DXS(1,9) K DIP K:DN Y W $E(X,1,30)
D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "Orig. Transaction:"
S X=$G(^INTHU(D0,0)) D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,11) S Y=$S(Y="":Y,$D(^INRHT(Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,54)
D T Q:'DN D N D N:$X>12 Q:'DN W ?12 W "Source:"
D N:$X>20 Q:'DN W ?20,$E($P(X,U,8),1,50)
D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "Acknowledge Req'd:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,4) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
D N:$X>26 Q:'DN W ?26 W "Accept ACK Msg ID:"
D N:$X>45 Q:'DN W ?45 X DXS(2,9) K DIP K:DN Y W $E(X,1,30)
D T Q:'DN D N D N:$X>26 Q:'DN W ?26 W "Applic ACK Msg ID:"
D N:$X>45 Q:'DN W ?45 X DXS(3,9) K DIP K:DN Y W $E(X,1,30)
D T Q:'DN D N D N:$X>5 Q:'DN W ?5 W "# of Attempts:"
S X=$G(^INTHU(D0,0)) D N:$X>20 Q:'DN W ?20,$E($P(X,U,12),1,5)
D N:$X>29 Q:'DN W ?29 W "Last Attempt Date/Time:"
D N:$X>53 Q:'DN W ?53 S Y=$P(X,U,9) D DT
D T Q:'DN D N D N:$X>10 Q:'DN W ?10 W "Division:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,21) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
D T Q:'DN D N D N:$X>8 Q:'DN W ?8 W "Created by:"
D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,15) S Y=$S(Y="":Y,$D(^DIC(3,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,40)
D T Q:'DN D N D N:$X>9 Q:'DN W ?9 W "Edited by:"
S X=$G(^INTHU(D0,2)) D N:$X>20 Q:'DN W ?20 S Y=$P(X,U,3) S Y=$S(Y="":Y,$D(^DIC(3,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W ""
D MESS^INHU1(D0) K DIP K:DN Y
D T Q:'DN D N D N:$X>27 Q:'DN W ?27 W "**** Activity Log ****"
S I(1)=1,J(1)=4001.01 F D1=0:0 Q:$O(^INTHU(D0,1,D1))'>0 X:$D(DSC(4001.01)) DSC(4001.01) S D1=$O(^(D1)) Q:D1'>0 D:$X>27 T Q:'DN D A1
G A1R
A1 ;
D T Q:'DN D N D N:$X>3 Q:'DN W ?3 W "Date Status Set to Replicated Message ID"
S X=$G(^INTHU(D0,1,D1,0)) D T Q:'DN D N D N:$X>3 Q:'DN W ?3 S Y=$P(X,U,1) D DT
D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
D N:$X>49 Q:'DN W ?49 N DIP X DXS(4,9.2) S D1=I(1,0) K DIP K:DN Y W $E(X,1,20)
D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "Message:"
S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(2)=1,J(2)=4001.02 F D2=0:0 Q:$O(^INTHU(D0,1,D1,1,D2))'>0 S D2=$O(^(D2)) D:$X>1 T Q:'DN D A2
G A2R
A2 ;
S X=$G(^INTHU(D0,1,D1,1,D2,0)) S DIWL=3,DIWR=78 D ^DIWP
Q
A2R ;
D A^DIWW
Q
A1R ;
G ^INXHR041
INXHR04 ; GENERATED FROM 'INH MESSAGE DISPLAY' PRINT TEMPLATE (#2832) ; 10/25/01 ; (FILE 4001, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T IF $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 SET DISTP=DISTP+1
SET DILCT=DILCT+1
IF '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
IF Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
IF Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 IF $DATA(DXS)<9
FOR X=0:0
SET X=$ORDER(^DIPT(2832,"DXS",X))
IF 'X
QUIT
SET Y=$ORDER(^(X,""))
FOR X=X:0
IF Y=""
QUIT
SET DXS(X,Y)=^(Y)
SET Y=$ORDER(^(Y))
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE ""
+4 WRITE ""
KILL DIP
IF DN
KILL Y
+5 DO T
IF 'DN
QUIT
DO N
IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "Date/Time:"
+6 SET X=$GET(^INTHU(D0,0))
IF $X>11
DO N
IF 'DN
QUIT
WRITE ?11
SET Y=$PIECE(X,U,1)
DO DT
+7 IF $X>31
DO N
IF 'DN
QUIT
WRITE ?31
WRITE "Msg ID:"
+8 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39,$EXTRACT($PIECE(X,U,5),1,30)
+9 IF $X>70
DO N
IF 'DN
QUIT
WRITE ?70
WRITE "Seq#:"
+10 IF $X>76
DO N
IF 'DN
QUIT
WRITE ?76,$EXTRACT($PIECE(X,U,17),1,4)
+11 DO T
IF 'DN
QUIT
DO N
IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
WRITE "Destination:"
+12 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^INRHD(Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,50)
+13 DO T
IF 'DN
QUIT
DO N
IF $X>12
DO N
IF 'DN
QUIT
WRITE ?12
WRITE "Status:"
+14 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,3)
IF Y]""
WRITE $SELECT($DATA(DXS(5,Y)):DXS(5,Y),1:Y)
+15 DO T
IF 'DN
QUIT
DO N
IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
WRITE "Direction:"
+16 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $SELECT($DATA(DXS(6,Y)):DXS(6,Y),1:Y)
+17 IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
WRITE "Priority:"
+18 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39,$EXTRACT($PIECE(X,U,16),1,2)
+19 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE ""
+20 NEW DIP,X1
SET DIP(1)=$GET(^INTHU(D0,0))
SET X=$PIECE(DIP(1),U,19)
SET DIP(2)=$GET(X)
SET X="TIME"
SET X1=DIP(2)
IF X]""&(X?.ANP)
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+21 IF $X>45
DO N
IF 'DN
QUIT
WRITE ?45
WRITE "Time to Process:"
+22 IF $X>62
DO N
IF 'DN
QUIT
WRITE ?62
WRITE ""
+23 WRITE $$CDATASC^UTDT($GET(DIPA("TIME")),1,1)
KILL DIP
IF DN
KILL Y
+24 DO T
IF 'DN
QUIT
DO N
IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
WRITE "Incoming Msg ID:"
+25 SET X=$GET(^INTHU(D0,2))
IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20,$EXTRACT($PIECE(X,U,1),1,20)
+26 DO T
IF 'DN
QUIT
DO N
IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1
WRITE "Parent Message ID:"
+27 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
XECUTE DXS(1,9)
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,30)
+28 DO T
IF 'DN
QUIT
DO N
IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1
WRITE "Orig. Transaction:"
+29 SET X=$GET(^INTHU(D0,0))
IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,11)
SET Y=$SELECT(Y="":Y,$DATA(^INRHT(Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,54)
+30 DO T
IF 'DN
QUIT
DO N
IF $X>12
DO N
IF 'DN
QUIT
WRITE ?12
WRITE "Source:"
+31 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20,$EXTRACT($PIECE(X,U,8),1,50)
+32 DO T
IF 'DN
QUIT
DO N
IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1
WRITE "Acknowledge Req'd:"
+33 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,4)
IF Y]""
WRITE $SELECT($DATA(DXS(7,Y)):DXS(7,Y),1:Y)
+34 IF $X>26
DO N
IF 'DN
QUIT
WRITE ?26
WRITE "Accept ACK Msg ID:"
+35 IF $X>45
DO N
IF 'DN
QUIT
WRITE ?45
XECUTE DXS(2,9)
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,30)
+36 DO T
IF 'DN
QUIT
DO N
IF $X>26
DO N
IF 'DN
QUIT
WRITE ?26
WRITE "Applic ACK Msg ID:"
+37 IF $X>45
DO N
IF 'DN
QUIT
WRITE ?45
XECUTE DXS(3,9)
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,30)
+38 DO T
IF 'DN
QUIT
DO N
IF $X>5
DO N
IF 'DN
QUIT
WRITE ?5
WRITE "# of Attempts:"
+39 SET X=$GET(^INTHU(D0,0))
IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20,$EXTRACT($PIECE(X,U,12),1,5)
+40 IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
WRITE "Last Attempt Date/Time:"
+41 IF $X>53
DO N
IF 'DN
QUIT
WRITE ?53
SET Y=$PIECE(X,U,9)
DO DT
+42 DO T
IF 'DN
QUIT
DO N
IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
WRITE "Division:"
+43 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,21)
SET Y=$SELECT(Y="":Y,$DATA(^DG(40.8,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,30)
+44 DO T
IF 'DN
QUIT
DO N
IF $X>8
DO N
IF 'DN
QUIT
WRITE ?8
WRITE "Created by:"
+45 IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,15)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(3,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,40)
+46 DO T
IF 'DN
QUIT
DO N
IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
WRITE "Edited by:"
+47 SET X=$GET(^INTHU(D0,2))
IF $X>20
DO N
IF 'DN
QUIT
WRITE ?20
SET Y=$PIECE(X,U,3)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(3,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,30)
+48 DO T
IF 'DN
QUIT
DO N
IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE ""
+49 DO MESS^INHU1(D0)
KILL DIP
IF DN
KILL Y
+50 DO T
IF 'DN
QUIT
DO N
IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
WRITE "**** Activity Log ****"
+51 SET I(1)=1
SET J(1)=4001.01
FOR D1=0:0
IF $ORDER(^INTHU(D0,1,D1))'>0
QUIT
IF $DATA(DSC(4001.01))
XECUTE DSC(4001.01)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>27
DO T
IF 'DN
QUIT
DO A1
+52 GOTO A1R
A1 ;
+1 DO T
IF 'DN
QUIT
DO N
IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
WRITE "Date Status Set to Replicated Message ID"
+2 SET X=$GET(^INTHU(D0,1,D1,0))
DO T
IF 'DN
QUIT
DO N
IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
SET Y=$PIECE(X,U,1)
DO DT
+3 IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+4 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
NEW DIP
XECUTE DXS(4,9.2)
SET D1=I(1,0)
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,20)
+5 DO T
IF 'DN
QUIT
DO N
IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1
WRITE "Message:"
+6 IF '$DATA(DIWF)
SET DIWF=""
IF DIWF'["N"
SET DIWF=DIWF_"N"
SET X=""
SET I(2)=1
SET J(2)=4001.02
FOR D2=0:0
IF $ORDER(^INTHU(D0,1,D1,1,D2))'>0
QUIT
SET D2=$ORDER(^(D2))
IF $X>1
DO T
IF 'DN
QUIT
DO A2
+7 GOTO A2R
A2 ;
+1 SET X=$GET(^INTHU(D0,1,D1,1,D2,0))
SET DIWL=3
SET DIWR=78
DO ^DIWP
+2 QUIT
A2R ;
+1 DO A^DIWW
+2 QUIT
A1R ;
+1 GOTO ^INXHR041