MCARORL1 ; GENERATED FROM 'MCRHLAB' PRINT TEMPLATE (#1009) ; 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>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,13)) ^(13) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "VDRL"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,561)) ^(561) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Uric acid"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,11)) ^(11) K DIP K:DN Y
D T Q:'DN D N D N D N:$X>0 Q:'DN W ?0 W "A D D I T I O N A L"
D N:$X>0 Q:'DN W ?0 W "C H E M I S T R Y :"
D N:$X>39 Q:'DN W ?39 W "U R I N E "
D N:$X>0 Q:'DN W ?0 W "Salicylate"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,45)) ^(45) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "UR Glucose"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,690)) ^(690) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "T-4"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,771)) ^(771) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "UR Protein"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,691)) ^(691) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "T-3"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,738)) ^(738) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "RBC/HPF"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,694)) ^(694) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "TSH"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,741)) ^(741) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "WBC/HPF"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,693)) ^(693) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Sodium"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,5)) ^(5) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Granular/cast/lpf"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,703)) ^(703) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Choloride"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,7)) ^(7) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "WBC/CASTS/LPF"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,700)) ^(700) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Bicarbonate"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,454)) ^(454) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Creatinine Clearance"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,96)) ^(96) K DIP K:DN Y
D T Q:'DN D N D N D N:$X>0 Q:'DN W ?0 W "H E M A T O L O G Y :"
D N:$X>0 Q:'DN W ?0 W "WBC"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,384)) ^(384) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "HGB"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,386)) ^(386) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "HCT"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,387)) ^(387) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Neutrophil"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,468)) ^(468) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Bands"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,395)) ^(395) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Lymphs"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,396)) ^(396) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Monocytes"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,397)) ^(397) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Eosino"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,398)) ^(398) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Baso"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,399)) ^(399) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Platelet"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,649)) ^(649) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Reticulocytes"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,428)) ^(428) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Westergren ESR"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,469)) ^(469) K DIP K:DN Y
G ^MCARORL2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCARORL1 4284 printed Dec 13, 2024@02:13:59 Page 2
MCARORL1 ; GENERATED FROM 'MCRHLAB' PRINT TEMPLATE (#1009) ; 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>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,13))
WRITE ^(13)
KILL DIP
if DN
KILL Y
+3 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "VDRL"
+4 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,561))
WRITE ^(561)
KILL DIP
if DN
KILL Y
+5 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Uric acid"
+6 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,11))
WRITE ^(11)
KILL DIP
if DN
KILL Y
+7 DO T
if 'DN
QUIT
DO N
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "A D D I T I O N A L"
+8 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "C H E M I S T R Y :"
+9 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "U R I N E "
+10 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Salicylate"
+11 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,45))
WRITE ^(45)
KILL DIP
if DN
KILL Y
+12 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "UR Glucose"
+13 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,690))
WRITE ^(690)
KILL DIP
if DN
KILL Y
+14 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "T-4"
+15 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,771))
WRITE ^(771)
KILL DIP
if DN
KILL Y
+16 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "UR Protein"
+17 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,691))
WRITE ^(691)
KILL DIP
if DN
KILL Y
+18 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "T-3"
+19 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,738))
WRITE ^(738)
KILL DIP
if DN
KILL Y
+20 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "RBC/HPF"
+21 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,694))
WRITE ^(694)
KILL DIP
if DN
KILL Y
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "TSH"
+23 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,741))
WRITE ^(741)
KILL DIP
if DN
KILL Y
+24 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "WBC/HPF"
+25 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,693))
WRITE ^(693)
KILL DIP
if DN
KILL Y
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Sodium"
+27 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,5))
WRITE ^(5)
KILL DIP
if DN
KILL Y
+28 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Granular/cast/lpf"
+29 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,703))
WRITE ^(703)
KILL DIP
if DN
KILL Y
+30 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Choloride"
+31 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,7))
WRITE ^(7)
KILL DIP
if DN
KILL Y
+32 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "WBC/CASTS/LPF"
+33 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,700))
WRITE ^(700)
KILL DIP
if DN
KILL Y
+34 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Bicarbonate"
+35 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,454))
WRITE ^(454)
KILL DIP
if DN
KILL Y
+36 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Creatinine Clearance"
+37 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,96))
WRITE ^(96)
KILL DIP
if DN
KILL Y
+38 DO T
if 'DN
QUIT
DO N
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "H E M A T O L O G Y :"
+39 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "WBC"
+40 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,384))
WRITE ^(384)
KILL DIP
if DN
KILL Y
+41 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "HGB"
+42 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,386))
WRITE ^(386)
KILL DIP
if DN
KILL Y
+43 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "HCT"
+44 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,387))
WRITE ^(387)
KILL DIP
if DN
KILL Y
+45 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Neutrophil"
+46 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,468))
WRITE ^(468)
KILL DIP
if DN
KILL Y
+47 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Bands"
+48 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,395))
WRITE ^(395)
KILL DIP
if DN
KILL Y
+49 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Lymphs"
+50 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,396))
WRITE ^(396)
KILL DIP
if DN
KILL Y
+51 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Monocytes"
+52 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,397))
WRITE ^(397)
KILL DIP
if DN
KILL Y
+53 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Eosino"
+54 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,398))
WRITE ^(398)
KILL DIP
if DN
KILL Y
+55 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Baso"
+56 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,399))
WRITE ^(399)
KILL DIP
if DN
KILL Y
+57 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Platelet"
+58 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,649))
WRITE ^(649)
KILL DIP
if DN
KILL Y
+59 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Reticulocytes"
+60 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,428))
WRITE ^(428)
KILL DIP
if DN
KILL Y
+61 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Westergren ESR"
+62 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,469))
WRITE ^(469)
KILL DIP
if DN
KILL Y
+63 GOTO ^MCARORL2