MCAROC22 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#973) ; 10/04/96 ; (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)
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 !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCAROC22 1905 printed Dec 13, 2024@02:13:09 Page 2
MCAROC22 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#973) ; 10/04/96 ; (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 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)
+3 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "INDOGREEN"
+4 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)
+5 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
+6 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)
+7 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "THERMODILUTION"
+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,14)
if Y]""
WRITE $JUSTIFY(Y,6,2)
+9 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
+10 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)
+11 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
+12 QUIT
H1R ;
+1 KILL Y
KILL DIWF
+2 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!