MCAROC21 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#3697) ; 11/29/04 ; (continued)
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)
D N:$X>46 Q:'DN W ?46 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="AO: "_$P(DIP(1),U,4) 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="SVC: "_$P(DIP(1),U,6) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "OUTPUT AND INDEX"
D N:$X>29 Q:'DN W ?29 W "(L/MIN)"
D N:$X>54 Q:'DN W ?54 W "(L/MIN/M2)"
D N:$X>9 Q:'DN W ?9 W "ASSUMED FICK"
S X=$G(^MCAR(691.1,D0,19,D1,1)) D N:$X>29 Q:'DN W ?29 S Y=$P(X,U,9) W:Y]"" $J(Y,6,2)
D N:$X>55 Q:'DN W ?55
S Y(691.26,36,2)=$S($D(^MCAR(691.1,D0,0)):^(0),1:""),Y(691.26,36,1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X=$P(Y(691.26,36,1),U,9),X=$S($P(Y(691.26,36,2),U,9):X/$P(Y(691.26,36,2),U,9),1:"*******") S X=$J(X,0,2) W:X'?."*" $J(X,7,2)
D N:$X>9 Q:'DN W ?9 W "INDOGREEN"
S X=$G(^MCAR(691.1,D0,19,D1,1)) D N:$X>29 Q:'DN W ?29 S Y=$P(X,U,12) W:Y]"" $J(Y,6,2)
D N:$X>55 Q:'DN W ?55
S Y(691.26,39,2)=$S($D(^MCAR(691.1,D0,0)):^(0),1:""),Y(691.26,39,1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X=$P(Y(691.26,39,1),U,12),X=$S($P(Y(691.26,39,2),U,9):X/$P(Y(691.26,39,2),U,9),1:"*******") S X=$J(X,0,2) W:X'?."*" $J(X,7,2)
D N:$X>9 Q:'DN W ?9 W "THERMODILUTION"
S X=$G(^MCAR(691.1,D0,19,D1,1)) D N:$X>29 Q:'DN W ?29 S Y=$P(X,U,14) W:Y]"" $J(Y,6,2)
D N:$X>55 Q:'DN W ?55
S Y(691.26,41,2)=$S($D(^MCAR(691.1,D0,0)):^(0),1:""),Y(691.26,41,1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X=$P(Y(691.26,41,1),U,14),X=$S($P(Y(691.26,41,2),U,9):X/$P(Y(691.26,41,2),U,9),1:"*******") S X=$J(X,0,2) W:X'?."*" $J(X,7,2)
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="A V AREA (CM SQ): "_$P(DIP(1),U,19) K DIP K:DN Y W X
Q
H1R ;
K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
MCAROC21 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#3697) ; 11/29/04 ; (continued)
+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 $X>46
DO N
IF 'DN
QUIT
WRITE ?46
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="AO: "_$PIECE(DIP(1),U,4)
KILL DIP
IF DN
KILL Y
WRITE X
+3 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="SVC: "_$PIECE(DIP(1),U,6)
KILL DIP
IF DN
KILL Y
WRITE X
+4 DO T
IF 'DN
QUIT
DO N
IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "OUTPUT AND INDEX"
+5 IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
WRITE "(L/MIN)"
+6 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
WRITE "(L/MIN/M2)"
+7 IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
WRITE "ASSUMED FICK"
+8 SET X=$GET(^MCAR(691.1,D0,19,D1,1))
IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
SET Y=$PIECE(X,U,9)
IF Y]""
WRITE $JUSTIFY(Y,6,2)
+9 IF $X>55
DO N
IF 'DN
QUIT
WRITE ?55
+10 SET Y(691.26,36,2)=$SELECT($DATA(^MCAR(691.1,D0,0)):^(0),1:"")
SET Y(691.26,36,1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X=$PIECE(Y(691.26,36,1),U,9)
SET X=$SELECT($PIECE(Y(691.26,36,2),U,9):X/$PIECE(Y(691.26,36,2),U,9),1:"*******")
SET X=$JUSTIFY(X,0,2)
IF X'?."*"
WRITE $JUSTIFY(X,7,2)
+11 IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
WRITE "INDOGREEN"
+12 SET X=$GET(^MCAR(691.1,D0,19,D1,1))
IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
SET Y=$PIECE(X,U,12)
IF Y]""
WRITE $JUSTIFY(Y,6,2)
+13 IF $X>55
DO N
IF 'DN
QUIT
WRITE ?55
+14 SET Y(691.26,39,2)=$SELECT($DATA(^MCAR(691.1,D0,0)):^(0),1:"")
SET Y(691.26,39,1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X=$PIECE(Y(691.26,39,1),U,12)
SET X=$SELECT($PIECE(Y(691.26,39,2),U,9):X/$PIECE(Y(691.26,39,2),U,9),1:"*******")
SET X=$JUSTIFY(X,0,2)
IF X'?."*"
WRITE $JUSTIFY(X,7,2)
+15 IF $X>9
DO N
IF 'DN
QUIT
WRITE ?9
WRITE "THERMODILUTION"
+16 SET X=$GET(^MCAR(691.1,D0,19,D1,1))
IF $X>29
DO N
IF 'DN
QUIT
WRITE ?29
SET Y=$PIECE(X,U,14)
IF Y]""
WRITE $JUSTIFY(Y,6,2)
+17 IF $X>55
DO N
IF 'DN
QUIT
WRITE ?55
+18 SET Y(691.26,41,2)=$SELECT($DATA(^MCAR(691.1,D0,0)):^(0),1:"")
SET Y(691.26,41,1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X=$PIECE(Y(691.26,41,1),U,14)
SET X=$SELECT($PIECE(Y(691.26,41,2),U,9):X/$PIECE(Y(691.26,41,2),U,9),1:"*******")
SET X=$JUSTIFY(X,0,2)
IF X'?."*"
WRITE $JUSTIFY(X,7,2)
+19 DO T
IF 'DN
QUIT
DO N
IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
SET DIP(1)=$SELECT($DATA(^MCAR(691.1,D0,19,D1,1)):^(1),1:"")
SET X="A V AREA (CM SQ): "_$PIECE(DIP(1),U,19)
KILL DIP
IF DN
KILL Y
WRITE X
+20 QUIT
H1R ;
+1 KILL Y
KILL DIWF
+2 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!