MCAROC21 ; 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)
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
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
G ^MCAROC22
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCAROC21 4213 printed Nov 22, 2024@17:23:11 Page 2
MCAROC21 ; 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 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
+3 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
+4 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
+5 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
+6 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
+7 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
+8 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
+9 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
+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="D: "_$PIECE(DIP(1),U,7)
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="V: "_$PIECE(DIP(1),U,17)
KILL DIP
if DN
KILL Y
WRITE X
+12 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
+13 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
+14 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
+15 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
+16 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
+17 WRITE ?62
WRITE "(POST DYE)"
+18 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
+19 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
+20 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
+21 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
+22 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "SATURATIONS: "
+23 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
+24 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
+25 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
+26 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
+27 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
+28 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
+29 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
+30 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
+31 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "OUTPUT AND INDEX"
+32 if $X>29
DO N
if 'DN
QUIT
WRITE ?29
WRITE "(L/MIN)"
+33 if $X>54
DO N
if 'DN
QUIT
WRITE ?54
WRITE "(L/MIN/M2)"
+34 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "ASSUMED FICK"
+35 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)
+36 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
+37 GOTO ^MCAROC22