MCAROC2 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#3697) ; 11/29/04 ; (FILE 691.1, 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 M DXS=^DIPT(3697,"DXS")
S I(0)="^MCAR(691.1,",J(0)=691.1
D T Q:'DN D N D N:$X>34 Q:'DN W ?34 X DXS(1,9) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "PREMEDICATIONS:"
S I(1)=10,J(1)=691.2 F D1=0:0 Q:$O(^MCAR(691.1,D0,10,D1))'>0 X:$D(DSC(691.2)) DSC(691.2) S D1=$O(^(D1)) Q:D1'>0 D:$X>21 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^MCAR(691.1,D0,10,D1,0)) W ?21 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
Q
A1R ;
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "VASCULAR ACCESS:"
S I(1)=11,J(1)=691.21 F D1=0:0 Q:$O(^MCAR(691.1,D0,11,D1))'>0 X:$D(DSC(691.21)) DSC(691.21) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D B1
G B1R
B1 ;
S X=$G(^MCAR(691.1,D0,11,D1,0)) W ?22 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
Q
B1R ;
D N:$X>22 Q:'DN W ?22 X DXS(2,9) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "CATHETERS:"
D N:$X>29 Q:'DN W ?29 W "TYPE AND SIZE"
D N:$X>57 Q:'DN W ?57 W "ENGAGEMENT"
D N:$X>7 Q:'DN W ?7 W "RIGHT HEART"
S X=$G(^MCAR(691.1,D0,12)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
D N:$X>7 Q:'DN W ?7 W "LEFT HEART"
S I(1)=13,J(1)=691.22 F D1=0:0 Q:$O(^MCAR(691.1,D0,13,D1))'>0 X:$D(DSC(691.22)) DSC(691.22) S D1=$O(^(D1)) Q:D1'>0 D:$X>19 T Q:'DN D C1
G C1R
C1 ;
S X=$G(^MCAR(691.1,D0,13,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
Q
C1R ;
D N:$X>7 Q:'DN W ?7 W "RIGHT CORONARY"
S I(1)=14,J(1)=691.23 F D1=0:0 Q:$O(^MCAR(691.1,D0,14,D1))'>0 X:$D(DSC(691.23)) DSC(691.23) S D1=$O(^(D1)) Q:D1'>0 D:$X>23 T Q:'DN D D1
G D1R
D1 ;
S X=$G(^MCAR(691.1,D0,14,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
Q
D1R ;
D N:$X>7 Q:'DN W ?7 W "LEFT CORONARY"
S I(1)=15,J(1)=691.24 F D1=0:0 Q:$O(^MCAR(691.1,D0,15,D1))'>0 X:$D(DSC(691.24)) DSC(691.24) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D E1
G E1R
E1 ;
S X=$G(^MCAR(691.1,D0,15,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
Q
E1R ;
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "FLOURO TIME:"
S X=$G(^MCAR(691.1,D0,12)) W ?18 S Y=$P(X,U,1) W:Y]"" $J(Y,3,0)
W " MINUTES"
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "OTHER PROCEDURE AND COMMENT:"
S I(1)=17,J(1)=691.25 F D1=0:0 Q:$O(^MCAR(691.1,D0,17,D1))'>0 S D1=$O(^(D1)) D:$X>34 T Q:'DN D F1
G F1R
F1 ;
S X=$G(^MCAR(691.1,D0,17,D1,0)) S DIWL=27,DIWR=78 D ^DIWP
Q
F1R ;
D 0^DIWW
D ^DIWW
D N:$X>6 Q:'DN W ?6 W "TECH COMMENTS:"
S I(1)=2,J(1)=691.12 F D1=0:0 Q:$O(^MCAR(691.1,D0,2,D1))'>0 S D1=$O(^(D1)) D:$X>22 T Q:'DN D G1
G G1R
G1 ;
S X=$G(^MCAR(691.1,D0,2,D1,0)) S DIWL=23,DIWR=77 D ^DIWP
Q
G1R ;
D 0^DIWW
D ^DIWW
D T Q:'DN D N D N:$X>29 Q:'DN W ?29 X DXS(3,9) K DIP K:DN Y W X
S I(1)=19,J(1)=691.26 F D1=0:0 Q:$O(^MCAR(691.1,D0,19,D1))'>0 X:$D(DSC(691.26)) DSC(691.26) S D1=$O(^(D1)) Q:D1'>0 D:$X>29 T Q:'DN D H1
G H1R^MCAROC21
H1 ;
D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "INTERVENTION:"
S X=$G(^MCAR(691.1,D0,19,D1,0)) W ?19 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
D N:$X>6 Q:'DN W ?6 W "PRESSURES:"
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="RA A: "_$P(DIP(1),U,2) K DIP K:DN Y W X
D N:$X>27 Q:'DN W ?27 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PCW A: "_$P(DIP(1),U,13) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="AO S: "_$P(DIP(1),U,1) K DIP K:DN Y W X
D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="V: "_$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.1,D0,19,D1,0)):^(0),1:"") S X="V: "_$P(DIP(1),U,14) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="D: "_$P(DIP(1),U,2) K DIP K:DN Y W X
D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="M: "_$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.1,D0,19,D1,0)):^(0),1:"") S X="M: "_$P(DIP(1),U,15) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="M: "_$P(DIP(1),U,3) K DIP K:DN Y W X
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="RV S: "_$P(DIP(1),U,6) K DIP K:DN Y W X
D N:$X>28 Q:'DN W ?28 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LA A: "_$P(DIP(1),U,16) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LV S: "_$P(DIP(1),U,22) K DIP K:DN Y W X
D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="D: "_$P(DIP(1),U,7) K DIP K:DN Y W X
D N:$X>31 Q:'DN W ?31 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="V: "_$P(DIP(1),U,17) K DIP K:DN Y W X
D N:$X>50 Q:'DN W ?50 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PRE A: "_$P(DIP(1),U,20) K DIP K:DN Y W X
D N:$X>31 Q:'DN W ?31 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="M: "_$P(DIP(1),U,18) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="Z: "_$P(DIP(1),U,21) K DIP K:DN Y W X
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PA S: "_$P(DIP(1),U,9) K DIP K:DN Y W X
D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LV S: "_$P(DIP(1),U,24) K DIP K:DN Y W X
W ?62 W "(POST DYE)"
D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="D: "_$P(DIP(1),U,10) K DIP K:DN Y W X
D N:$X>50 Q:'DN W ?50 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PRE A: "_$P(DIP(1),U,25) K DIP K:DN Y W X
D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="M: "_$P(DIP(1),U,11) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="Z: "_$P(DIP(1),U,26) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "SATURATIONS: "
D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="RA: "_$P(DIP(1),U,5) K DIP K:DN Y W X
D N:$X>30 Q:'DN W ?30 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PA: "_$P(DIP(1),U,12) K DIP K:DN Y W X
D N:$X>46 Q:'DN W ?46 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LV: "_$P(DIP(1),U,23) K DIP K:DN Y W X
D N:$X>63 Q:'DN W ?63 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="IVC: "_$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.1,D0,19,D1,0)):^(0),1:"") S X="RV: "_$P(DIP(1),U,8) K DIP K:DN Y W X
D N:$X>30 Q:'DN W ?30 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LA: "_$P(DIP(1),U,19) K DIP K:DN Y W X
G ^MCAROC21
MCAROC2 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#3697) ; 11/29/04 ; (FILE 691.1, 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
MERGE DXS=^DIPT(3697,"DXS")
+3 SET I(0)="^MCAR(691.1,"
SET J(0)=691.1
+4 DO T
IF 'DN
QUIT
DO N
IF $X>34
DO N
IF 'DN
QUIT
WRITE ?34
XECUTE DXS(1,9)
KILL DIP
IF DN
KILL Y
WRITE X
+5 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "PREMEDICATIONS:"
+6 SET I(1)=10
SET J(1)=691.2
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,10,D1))'>0
QUIT
IF $DATA(DSC(691.2))
XECUTE DSC(691.2)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>21
DO T
IF 'DN
QUIT
DO A1
+7 GOTO A1R
A1 ;
+1 SET X=$GET(^MCAR(691.1,D0,10,D1,0))
WRITE ?21
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(4,Y)):DXS(4,Y),1:Y)
+2 QUIT
A1R ;
+1 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "VASCULAR ACCESS:"
+2 SET I(1)=11
SET J(1)=691.21
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,11,D1))'>0
QUIT
IF $DATA(DSC(691.21))
XECUTE DSC(691.21)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>22
DO T
IF 'DN
QUIT
DO B1
+3 GOTO B1R
B1 ;
+1 SET X=$GET(^MCAR(691.1,D0,11,D1,0))
WRITE ?22
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(5,Y)):DXS(5,Y),1:Y)
+2 QUIT
B1R ;
+1 IF $X>22
DO N
IF 'DN
QUIT
WRITE ?22
XECUTE DXS(2,9)
KILL DIP
IF DN
KILL Y
WRITE X
+2 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "CATHETERS:"
+3 IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
WRITE "TYPE AND SIZE"
+4 IF $X>57
DO N
IF 'DN
QUIT
WRITE ?57
WRITE "ENGAGEMENT"
+5 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
WRITE "RIGHT HEART"
+6 SET X=$GET(^MCAR(691.1,D0,12))
IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
SET Y=$PIECE(X,U,3)
IF Y]""
WRITE $SELECT($DATA(DXS(6,Y)):DXS(6,Y),1:Y)
+7 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
WRITE "LEFT HEART"
+8 SET I(1)=13
SET J(1)=691.22
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,13,D1))'>0
QUIT
IF $DATA(DSC(691.22))
XECUTE DSC(691.22)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>19
DO T
IF 'DN
QUIT
DO C1
+9 GOTO C1R
C1 ;
+1 SET X=$GET(^MCAR(691.1,D0,13,D1,0))
IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^MCAR(695.6,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+2 IF $X>58
DO N
IF 'DN
QUIT
WRITE ?58
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(7,Y)):DXS(7,Y),1:Y)
+3 QUIT
C1R ;
+1 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
WRITE "RIGHT CORONARY"
+2 SET I(1)=14
SET J(1)=691.23
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,14,D1))'>0
QUIT
IF $DATA(DSC(691.23))
XECUTE DSC(691.23)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>23
DO T
IF 'DN
QUIT
DO D1
+3 GOTO D1R
D1 ;
+1 SET X=$GET(^MCAR(691.1,D0,14,D1,0))
IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^MCAR(695.6,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+2 IF $X>58
DO N
IF 'DN
QUIT
WRITE ?58
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+3 QUIT
D1R ;
+1 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
WRITE "LEFT CORONARY"
+2 SET I(1)=15
SET J(1)=691.24
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,15,D1))'>0
QUIT
IF $DATA(DSC(691.24))
XECUTE DSC(691.24)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>22
DO T
IF 'DN
QUIT
DO E1
+3 GOTO E1R
E1 ;
+1 SET X=$GET(^MCAR(691.1,D0,15,D1,0))
IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^MCAR(695.6,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+2 IF $X>58
DO N
IF 'DN
QUIT
WRITE ?58
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(9,Y)):DXS(9,Y),1:Y)
+3 QUIT
E1R ;
+1 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "FLOURO TIME:"
+2 SET X=$GET(^MCAR(691.1,D0,12))
WRITE ?18
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $JUSTIFY(Y,3,0)
+3 WRITE " MINUTES"
+4 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "OTHER PROCEDURE AND COMMENT:"
+5 SET I(1)=17
SET J(1)=691.25
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,17,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>34
DO T
IF 'DN
QUIT
DO F1
+6 GOTO F1R
F1 ;
+1 SET X=$GET(^MCAR(691.1,D0,17,D1,0))
SET DIWL=27
SET DIWR=78
DO ^DIWP
+2 QUIT
F1R ;
+1 DO 0^DIWW
+2 DO ^DIWW
+3 IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "TECH COMMENTS:"
+4 SET I(1)=2
SET J(1)=691.12
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,2,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>22
DO T
IF 'DN
QUIT
DO G1
+5 GOTO G1R
G1 ;
+1 SET X=$GET(^MCAR(691.1,D0,2,D1,0))
SET DIWL=23
SET DIWR=77
DO ^DIWP
+2 QUIT
G1R ;
+1 DO 0^DIWW
+2 DO ^DIWW
+3 DO T
IF 'DN
QUIT
DO N
IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
XECUTE DXS(3,9)
KILL DIP
IF DN
KILL Y
WRITE X
+4 SET I(1)=19
SET J(1)=691.26
FOR D1=0:0
IF $ORDER(^MCAR(691.1,D0,19,D1))'>0
QUIT
IF $DATA(DSC(691.26))
XECUTE DSC(691.26)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>29
DO T
IF 'DN
QUIT
DO H1
+5 GOTO H1R^MCAROC21
H1 ;
+1 DO T
IF 'DN
QUIT
DO N
IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "INTERVENTION:"
+2 SET X=$GET(^MCAR(691.1,D0,19,D1,0))
WRITE ?19
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(10,Y)):DXS(10,Y),1:Y)
+3 IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "PRESSURES:"
+4 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="RA A: "_$PIECE(DIP(1),U,2)
KILL DIP
IF DN
KILL Y
WRITE X
+5 IF $X>27
DO N
IF 'DN
QUIT
WRITE ?27
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="PCW A: "_$PIECE(DIP(1),U,13)
KILL DIP
IF DN
KILL Y
WRITE X
+6 IF $X>51
DO N
IF 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="AO S: "_$PIECE(DIP(1),U,1)
KILL DIP
IF DN
KILL Y
WRITE X
+7 IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="V: "_$PIECE(DIP(1),U,3)
KILL DIP
IF DN
KILL Y
WRITE X
+8 IF $X>31
DO N
IF 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="V: "_$PIECE(DIP(1),U,14)
KILL DIP
IF DN
KILL Y
WRITE X
+9 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="D: "_$PIECE(DIP(1),U,2)
KILL DIP
IF DN
KILL Y
WRITE X
+10 IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="M: "_$PIECE(DIP(1),U,4)
KILL DIP
IF DN
KILL Y
WRITE X
+11 IF $X>31
DO N
IF 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="M: "_$PIECE(DIP(1),U,15)
KILL DIP
IF DN
KILL Y
WRITE X
+12 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="M: "_$PIECE(DIP(1),U,3)
KILL DIP
IF DN
KILL Y
WRITE X
+13 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="RV S: "_$PIECE(DIP(1),U,6)
KILL DIP
IF DN
KILL Y
WRITE X
+14 IF $X>28
DO N
IF 'DN
QUIT
WRITE ?28
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="LA A: "_$PIECE(DIP(1),U,16)
KILL DIP
IF DN
KILL Y
WRITE X
+15 IF $X>51
DO N
IF 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="LV S: "_$PIECE(DIP(1),U,22)
KILL DIP
IF DN
KILL Y
WRITE X
+16 IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="D: "_$PIECE(DIP(1),U,7)
KILL DIP
IF DN
KILL Y
WRITE X
+17 IF $X>31
DO N
IF 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="V: "_$PIECE(DIP(1),U,17)
KILL DIP
IF DN
KILL Y
WRITE X
+18 IF $X>50
DO N
IF 'DN
QUIT
WRITE ?50
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="PRE A: "_$PIECE(DIP(1),U,20)
KILL DIP
IF DN
KILL Y
WRITE X
+19 IF $X>31
DO N
IF 'DN
QUIT
WRITE ?31
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="M: "_$PIECE(DIP(1),U,18)
KILL DIP
IF DN
KILL Y
WRITE X
+20 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="Z: "_$PIECE(DIP(1),U,21)
KILL DIP
IF DN
KILL Y
WRITE X
+21 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="PA S: "_$PIECE(DIP(1),U,9)
KILL DIP
IF DN
KILL Y
WRITE X
+22 IF $X>51
DO N
IF 'DN
QUIT
WRITE ?51
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="LV S: "_$PIECE(DIP(1),U,24)
KILL DIP
IF DN
KILL Y
WRITE X
+23 WRITE ?62
WRITE "(POST DYE)"
+24 IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="D: "_$PIECE(DIP(1),U,10)
KILL DIP
IF DN
KILL Y
WRITE X
+25 IF $X>50
DO N
IF 'DN
QUIT
WRITE ?50
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="PRE A: "_$PIECE(DIP(1),U,25)
KILL DIP
IF DN
KILL Y
WRITE X
+26 IF $X>10
DO N
IF 'DN
QUIT
WRITE ?10
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="M: "_$PIECE(DIP(1),U,11)
KILL DIP
IF DN
KILL Y
WRITE X
+27 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="Z: "_$PIECE(DIP(1),U,26)
KILL DIP
IF DN
KILL Y
WRITE X
+28 DO T
IF 'DN
QUIT
DO N
IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "SATURATIONS: "
+29 IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="RA: "_$PIECE(DIP(1),U,5)
KILL DIP
IF DN
KILL Y
WRITE X
+30 IF $X>30
DO N
IF 'DN
QUIT
WRITE ?30
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="PA: "_$PIECE(DIP(1),U,12)
KILL DIP
IF DN
KILL Y
WRITE X
+31 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="LV: "_$PIECE(DIP(1),U,23)
KILL DIP
IF DN
KILL Y
WRITE X
+32 IF $X>63
DO N
IF 'DN
QUIT
WRITE ?63
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="IVC: "_$PIECE(DIP(1),U,8)
KILL DIP
IF DN
KILL Y
WRITE X
+33 IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="RV: "_$PIECE(DIP(1),U,8)
KILL DIP
IF DN
KILL Y
WRITE X
+34 IF $X>30
DO N
IF 'DN
QUIT
WRITE ?30
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,0)):^(0),1:"")
SET X="LA: "_$PIECE(DIP(1),U,19)
KILL DIP
IF DN
KILL Y
WRITE X
+35 GOTO ^MCAROC21