MCARORL ; GENERATED FROM 'MCRHLAB' PRINT TEMPLATE (#1009) ; 10/04/96 ; (FILE 701, 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)
F Y=0:0 Q:$Y>-1 W !
D N:$X>0 Q:'DN W ?0 W "PATIENT LABORATORY INFORMATION"
D T Q:'DN D N 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 "S E R O L O G Y :"
D N:$X>0 Q:'DN W ?0 W "Aldolase"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,63)) ^(63) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Anti-DNA Antibody"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,563)) ^(563) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Albumin"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,14)) ^(14) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Anti-skeletal muscle"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,595)) ^(595) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Alkaline phosphatase"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,17)) ^(17) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Anti-RNP"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,594)) ^(594) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Urea nitrogen"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,3)) ^(3) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Hepatitis B Antibody"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,581)) ^(581) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Calcium"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,9)) ^(9) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Hepatitis B Antigen"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,553)) ^(553) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Cholesterol"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,12)) ^(12) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Complement CH50"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,587)) ^(587) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "CPK"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,41)) ^(41) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Cryoglobulins"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,549)) ^(549) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Creatinine"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,4)) ^(4) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Complement"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,547)) ^(547) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Glucose"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,2)) ^(2) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Complement C4"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,548)) ^(548) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "LDH"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,18)) ^(18) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "HLA B27"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,174)) ^(174) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "PO4"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,10)) ^(10) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "IGA"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,625)) ^(625) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "SGOT"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,19)) ^(19) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "IGG"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,627)) ^(627) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "SPGT"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,20)) ^(20) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "IGM"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,DA,631)) ^(631) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Bilirubin, total"
D N:$X>27 Q:'DN W ?27 W:$D(^UTILITY("DIQ1",$J,63.04,DA,15)) ^(15) K DIP K:DN Y
D N:$X>39 Q:'DN W ?39 W "Latex fixation"
D N:$X>69 Q:'DN W ?69 W:$D(^UTILITY("DIQ1",$J,63.04,639)) ^(639) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "Protein, total"
G ^MCARORL1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCARORL 4264 printed Dec 13, 2024@02:13:58 Page 2
MCARORL ; GENERATED FROM 'MCRHLAB' PRINT TEMPLATE (#1009) ; 10/04/96 ; (FILE 701, 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 FOR Y=0:0
if $Y>-1
QUIT
WRITE !
+3 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PATIENT LABORATORY INFORMATION"
+4 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "C H E M I S T R Y :"
+5 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "S E R O L O G Y :"
+6 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Aldolase"
+7 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,63))
WRITE ^(63)
KILL DIP
if DN
KILL Y
+8 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Anti-DNA Antibody"
+9 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,563))
WRITE ^(563)
KILL DIP
if DN
KILL Y
+10 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Albumin"
+11 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,14))
WRITE ^(14)
KILL DIP
if DN
KILL Y
+12 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Anti-skeletal muscle"
+13 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,595))
WRITE ^(595)
KILL DIP
if DN
KILL Y
+14 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Alkaline phosphatase"
+15 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,17))
WRITE ^(17)
KILL DIP
if DN
KILL Y
+16 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Anti-RNP"
+17 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,594))
WRITE ^(594)
KILL DIP
if DN
KILL Y
+18 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Urea nitrogen"
+19 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,3))
WRITE ^(3)
KILL DIP
if DN
KILL Y
+20 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Hepatitis B Antibody"
+21 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,581))
WRITE ^(581)
KILL DIP
if DN
KILL Y
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Calcium"
+23 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,9))
WRITE ^(9)
KILL DIP
if DN
KILL Y
+24 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Hepatitis B Antigen"
+25 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,553))
WRITE ^(553)
KILL DIP
if DN
KILL Y
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Cholesterol"
+27 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,12))
WRITE ^(12)
KILL DIP
if DN
KILL Y
+28 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Complement CH50"
+29 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,587))
WRITE ^(587)
KILL DIP
if DN
KILL Y
+30 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "CPK"
+31 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,41))
WRITE ^(41)
KILL DIP
if DN
KILL Y
+32 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Cryoglobulins"
+33 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,549))
WRITE ^(549)
KILL DIP
if DN
KILL Y
+34 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Creatinine"
+35 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,4))
WRITE ^(4)
KILL DIP
if DN
KILL Y
+36 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Complement"
+37 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,547))
WRITE ^(547)
KILL DIP
if DN
KILL Y
+38 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Glucose"
+39 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,2))
WRITE ^(2)
KILL DIP
if DN
KILL Y
+40 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Complement C4"
+41 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,548))
WRITE ^(548)
KILL DIP
if DN
KILL Y
+42 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "LDH"
+43 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,18))
WRITE ^(18)
KILL DIP
if DN
KILL Y
+44 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "HLA B27"
+45 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,174))
WRITE ^(174)
KILL DIP
if DN
KILL Y
+46 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PO4"
+47 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,10))
WRITE ^(10)
KILL DIP
if DN
KILL Y
+48 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "IGA"
+49 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,625))
WRITE ^(625)
KILL DIP
if DN
KILL Y
+50 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "SGOT"
+51 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,19))
WRITE ^(19)
KILL DIP
if DN
KILL Y
+52 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "IGG"
+53 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,627))
WRITE ^(627)
KILL DIP
if DN
KILL Y
+54 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "SPGT"
+55 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,20))
WRITE ^(20)
KILL DIP
if DN
KILL Y
+56 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "IGM"
+57 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,631))
WRITE ^(631)
KILL DIP
if DN
KILL Y
+58 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Bilirubin, total"
+59 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
if $DATA(^UTILITY("DIQ1",$JOB,63.04,DA,15))
WRITE ^(15)
KILL DIP
if DN
KILL Y
+60 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "Latex fixation"
+61 if $X>69
DO N
if 'DN
QUIT
WRITE ?69
if $DATA(^UTILITY("DIQ1",$JOB,63.04,639))
WRITE ^(639)
KILL DIP
if DN
KILL Y
+62 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Protein, total"
+63 GOTO ^MCARORL1