MCAROAT ; GENERATED FROM 'MCAREP2' PRINT TEMPLATE (#1041) ; 10/04/96 ; (FILE 691.9, 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(1041,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
D T Q:'DN D N W ?0 W "----------------------------------ATRIAL STUDY----------------------------------"
D T Q:'DN D N W ?0 X DXS(1,9.2) S X=X_Y K DIP K:DN Y W X
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "PREMEDICATION:"
S X=$G(^MCAR(691.9,D0,0)) D N:$X>22 Q:'DN S DIWL=23,DIWR=52 S Y=$P(X,U,4) S X=Y D ^DIWP
D A^DIWW
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="ENTRY SITE: "_$S('$D(^MCAR(697,+$P(DIP(1),U,6),0)):"",1:$P(^(0),U,1)) K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 X DXS(2,9) K DIP K:DN Y W X
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="RECORDING SITE: "_$S('$D(^MCAR(693.5,+$P(DIP(1),U,7),0)):"",1:$P(^(0),U,1)) K DIP K:DN Y W X
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="ATRIAL THRESHOLD (mA): "_$P(DIP(1),U,9) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "CONDUCTION TIMES"
D N:$X>43 Q:'DN W ?43 W "SINUS NODE FUNCTION STUDIES"
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="PA (NL 20-40 MSEC): "_$P(DIP(1),U,10) K DIP K:DN Y W X
D N:$X>45 Q:'DN W ?45 S DIP(1)=$S($D(^MCAR(691.9,D0,2)):^(2),1:"") S X="SACT (NL 80 +/- 40 MSEC): "_$P(DIP(1),U,8) K DIP K:DN Y W X
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="AH (NL 60-120 MSEC): "_$P(DIP(1),U,11) K DIP K:DN Y W X
D N:$X>45 Q:'DN W ?45 S DIP(1)=$S($D(^MCAR(691.9,D0,2)):^(2),1:"") S X="CSART (NL 260+/- 95 MSEC): "_$P(DIP(1),U,9) K DIP K:DN Y W X
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,0)):^(0),1:"") S X="HV (NL 35-55 MSEC): "_$P(DIP(1),U,12) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "ATRIAL EXTRA STIMULUS TECHNIQUE (VALUES BELOW IN MSEC)"
S I(1)=1,J(1)=691.911 F D1=0:0 Q:$O(^MCAR(691.9,D0,1,D1))'>0 X:$D(DSC(691.911)) DSC(691.911) S D1=$O(^(D1)) Q:D1'>0 D:$X>66 T Q:'DN D A1
G A1R
A1 ;
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="DRIVE CYCLE LENGTH: "_$P(DIP(1),U,1) K DIP K:DN Y W X
D N:$X>11 Q:'DN W ?11 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="AERP: "_$P(DIP(1),U,2) K DIP K:DN Y W X
D N:$X>31 Q:'DN W ?31 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="AVERP: "_$P(DIP(1),U,5) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="HPERP: "_$P(DIP(1),U,8) K DIP K:DN Y W X
D N:$X>11 Q:'DN W ?11 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="AFRP: "_$P(DIP(1),U,3) K DIP K:DN Y W X
D N:$X>31 Q:'DN W ?31 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="AVFRP: "_$P(DIP(1),U,6) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="HPFRP: "_$P(DIP(1),U,9) K DIP K:DN Y W X
D N:$X>11 Q:'DN W ?11 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="ARRP: "_$P(DIP(1),U,4) K DIP K:DN Y W X
D N:$X>31 Q:'DN W ?31 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="AVRRP: "_$P(DIP(1),U,7) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.9,D0,1,D1,0)):^(0),1:"") S X="HPRRP: "_$P(DIP(1),U,10) K DIP K:DN Y W X
Q
A1R ;
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "INCREMENTAL ATRIAL PACING"
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,2)):^(2),1:"") S X="MAXIMUM 1:1 CONDUCTION: "_$P(DIP(1),U,1) K DIP K:DN Y W X
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.9,D0,2)):^(2),1:"") S X="WENCKE CYCLE LENGTH: "_$P(DIP(1),U,2) K DIP K:DN Y W X
D N:$X>9 Q:'DN W ?9 X DXS(3,9) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 W "TACHYCARDIA WINDOW: "
S X=$G(^MCAR(691.9,D0,2)) S DIWL=1,DIWR=48 S Y=$P(X,U,4) S X=Y D ^DIWP
D A^DIWW
G ^MCAROAT1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCAROAT 4361 printed Dec 13, 2024@02:13:04 Page 2
MCAROAT ; GENERATED FROM 'MCAREP2' PRINT TEMPLATE (#1041) ; 10/04/96 ; (FILE 691.9, 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(1041,"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 DO T
if 'DN
QUIT
DO N
WRITE ?0
WRITE "----------------------------------ATRIAL STUDY----------------------------------"
+4 DO T
if 'DN
QUIT
DO N
WRITE ?0
XECUTE DXS(1,9.2)
SET X=X_Y
KILL DIP
if DN
KILL Y
WRITE X
+5 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "PREMEDICATION:"
+6 SET X=$GET(^MCAR(691.9,D0,0))
if $X>22
DO N
if 'DN
QUIT
SET DIWL=23
SET DIWR=52
SET Y=$PIECE(X,U,4)
SET X=Y
DO ^DIWP
+7 DO A^DIWW
+8 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="ENTRY SITE: "_$SELECT('$DATA(^MCAR(697,+$PIECE(DIP(1),U,6),0)):"",1:$PIECE(^(0),U,1))
KILL DIP
if DN
KILL Y
WRITE X
+9 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
XECUTE DXS(2,9)
KILL DIP
if DN
KILL Y
WRITE X
+10 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="RECORDING SITE: "_$SELECT('$DATA(^MCAR(693.5,+$PIECE(DIP(1),U,7),0)):"",1:$PIECE(^(0),U,1))
KILL DIP
if DN
KILL Y
WRITE X
+11 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="ATRIAL THRESHOLD (mA): "_$PIECE(DIP(1),U,9)
KILL DIP
if DN
KILL Y
WRITE X
+12 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "CONDUCTION TIMES"
+13 if $X>43
DO N
if 'DN
QUIT
WRITE ?43
WRITE "SINUS NODE FUNCTION STUDIES"
+14 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="PA (NL 20-40 MSEC): "_$PIECE(DIP(1),U,10)
KILL DIP
if DN
KILL Y
WRITE X
+15 if $X>45
DO N
if 'DN
QUIT
WRITE ?45
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,2)):^(2),1:"")
SET X="SACT (NL 80 +/- 40 MSEC): "_$PIECE(DIP(1),U,8)
KILL DIP
if DN
KILL Y
WRITE X
+16 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="AH (NL 60-120 MSEC): "_$PIECE(DIP(1),U,11)
KILL DIP
if DN
KILL Y
WRITE X
+17 if $X>45
DO N
if 'DN
QUIT
WRITE ?45
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,2)):^(2),1:"")
SET X="CSART (NL 260+/- 95 MSEC): "_$PIECE(DIP(1),U,9)
KILL DIP
if DN
KILL Y
WRITE X
+18 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,0)):^(0),1:"")
SET X="HV (NL 35-55 MSEC): "_$PIECE(DIP(1),U,12)
KILL DIP
if DN
KILL Y
WRITE X
+19 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "ATRIAL EXTRA STIMULUS TECHNIQUE (VALUES BELOW IN MSEC)"
+20 SET I(1)=1
SET J(1)=691.911
FOR D1=0:0
if $ORDER(^MCAR(691.9,D0,1,D1))'>0
QUIT
if $DATA(DSC(691.911))
XECUTE DSC(691.911)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>66
DO T
if 'DN
QUIT
DO A1
+21 GOTO A1R
A1 ;
+1 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="DRIVE CYCLE LENGTH: "_$PIECE(DIP(1),U,1)
KILL DIP
if DN
KILL Y
WRITE X
+2 if $X>11
DO N
if 'DN
QUIT
WRITE ?11
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="AERP: "_$PIECE(DIP(1),U,2)
KILL DIP
if DN
KILL Y
WRITE X
+3 if $X>31
DO N
if 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="AVERP: "_$PIECE(DIP(1),U,5)
KILL DIP
if DN
KILL Y
WRITE X
+4 if $X>51
DO N
if 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="HPERP: "_$PIECE(DIP(1),U,8)
KILL DIP
if DN
KILL Y
WRITE X
+5 if $X>11
DO N
if 'DN
QUIT
WRITE ?11
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="AFRP: "_$PIECE(DIP(1),U,3)
KILL DIP
if DN
KILL Y
WRITE X
+6 if $X>31
DO N
if 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="AVFRP: "_$PIECE(DIP(1),U,6)
KILL DIP
if DN
KILL Y
WRITE X
+7 if $X>51
DO N
if 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="HPFRP: "_$PIECE(DIP(1),U,9)
KILL DIP
if DN
KILL Y
WRITE X
+8 if $X>11
DO N
if 'DN
QUIT
WRITE ?11
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="ARRP: "_$PIECE(DIP(1),U,4)
KILL DIP
if DN
KILL Y
WRITE X
+9 if $X>31
DO N
if 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="AVRRP: "_$PIECE(DIP(1),U,7)
KILL DIP
if DN
KILL Y
WRITE X
+10 if $X>51
DO N
if 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,1,D1,0)):^(0),1:"")
SET X="HPRRP: "_$PIECE(DIP(1),U,10)
KILL DIP
if DN
KILL Y
WRITE X
+11 QUIT
A1R ;
+1 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "INCREMENTAL ATRIAL PACING"
+2 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,2)):^(2),1:"")
SET X="MAXIMUM 1:1 CONDUCTION: "_$PIECE(DIP(1),U,1)
KILL DIP
if DN
KILL Y
WRITE X
+3 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.9,D0,2)):^(2),1:"")
SET X="WENCKE CYCLE LENGTH: "_$PIECE(DIP(1),U,2)
KILL DIP
if DN
KILL Y
WRITE X
+4 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
XECUTE DXS(3,9)
KILL DIP
if DN
KILL Y
WRITE X
+5 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "TACHYCARDIA WINDOW: "
+6 SET X=$GET(^MCAR(691.9,D0,2))
SET DIWL=1
SET DIWR=48
SET Y=$PIECE(X,U,4)
SET X=Y
DO ^DIWP
+7 DO A^DIWW
+8 GOTO ^MCAROAT1