MCARORF3 ; GENERATED FROM 'MCRHPHYS' PRINT TEMPLATE (#1015) ; 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>30 Q:'DN W ?30 W "First Carpomentacarpal"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,29) W:Y]"" $J($S($D(DXS(60,Y)):DXS(60,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,30) W:Y]"" $S($D(DXS(61,Y)):DXS(61,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Wrist"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,31) W:Y]"" $J($S($D(DXS(62,Y)):DXS(62,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,32) W:Y]"" $S($D(DXS(63,Y)):DXS(63,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Elbow"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,33) W:Y]"" $J($S($D(DXS(64,Y)):DXS(64,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,34) W:Y]"" $S($D(DXS(65,Y)):DXS(65,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Shoulder"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,35) W:Y]"" $J($S($D(DXS(66,Y)):DXS(66,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,36) W:Y]"" $S($D(DXS(67,Y)):DXS(67,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Sternoclavicular"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,37) W:Y]"" $J($S($D(DXS(68,Y)):DXS(68,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,38) W:Y]"" $S($D(DXS(69,Y)):DXS(69,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "TMJ"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,39) W:Y]"" $J($S($D(DXS(70,Y)):DXS(70,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,40) W:Y]"" $S($D(DXS(71,Y)):DXS(71,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "HIP"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,41) W:Y]"" $J($S($D(DXS(72,Y)):DXS(72,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,42) W:Y]"" $S($D(DXS(73,Y)):DXS(73,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Knee"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,43) W:Y]"" $J($S($D(DXS(74,Y)):DXS(74,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,44) W:Y]"" $S($D(DXS(75,Y)):DXS(75,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Ankle"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,45) W:Y]"" $J($S($D(DXS(76,Y)):DXS(76,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,46) W:Y]"" $S($D(DXS(77,Y)):DXS(77,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "MTP"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,47) W:Y]"" $J($S($D(DXS(78,Y)):DXS(78,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,48) W:Y]"" $S($D(DXS(79,Y)):DXS(79,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Toes - PIP"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,49) W:Y]"" $J($S($D(DXS(80,Y)):DXS(80,Y),1:Y),8)
D T Q:'DN D N D N:$X>30 Q:'DN W ?30 W "Cervical Spine"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,50) W:Y]"" $J($S($D(DXS(81,Y)):DXS(81,Y),1:Y),8)
D N:$X>30 Q:'DN W ?30 W "Lumber Spine"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,51) W:Y]"" $J($S($D(DXS(82,Y)):DXS(82,Y),1:Y),8)
F Y=0:0 Q:$Y>(IOSL-3) W !
D N:$X>0 Q:'DN W ?0 W " "
K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCARORF3 3169 printed Nov 22, 2024@17:23:56 Page 2
MCARORF3 ; GENERATED FROM 'MCRHPHYS' PRINT TEMPLATE (#1015) ; 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>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "First Carpomentacarpal"
+3 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,29)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(60,Y)):DXS(60,Y),1:Y),8)
+4 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,30)
if Y]""
WRITE $SELECT($DATA(DXS(61,Y)):DXS(61,Y),1:Y)
+5 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Wrist"
+6 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,31)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(62,Y)):DXS(62,Y),1:Y),8)
+7 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,32)
if Y]""
WRITE $SELECT($DATA(DXS(63,Y)):DXS(63,Y),1:Y)
+8 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Elbow"
+9 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,33)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(64,Y)):DXS(64,Y),1:Y),8)
+10 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,34)
if Y]""
WRITE $SELECT($DATA(DXS(65,Y)):DXS(65,Y),1:Y)
+11 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Shoulder"
+12 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,35)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(66,Y)):DXS(66,Y),1:Y),8)
+13 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,36)
if Y]""
WRITE $SELECT($DATA(DXS(67,Y)):DXS(67,Y),1:Y)
+14 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Sternoclavicular"
+15 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,37)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(68,Y)):DXS(68,Y),1:Y),8)
+16 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,38)
if Y]""
WRITE $SELECT($DATA(DXS(69,Y)):DXS(69,Y),1:Y)
+17 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "TMJ"
+18 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,39)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(70,Y)):DXS(70,Y),1:Y),8)
+19 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,40)
if Y]""
WRITE $SELECT($DATA(DXS(71,Y)):DXS(71,Y),1:Y)
+20 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "HIP"
+21 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,41)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(72,Y)):DXS(72,Y),1:Y),8)
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,42)
if Y]""
WRITE $SELECT($DATA(DXS(73,Y)):DXS(73,Y),1:Y)
+23 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Knee"
+24 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,43)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(74,Y)):DXS(74,Y),1:Y),8)
+25 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,44)
if Y]""
WRITE $SELECT($DATA(DXS(75,Y)):DXS(75,Y),1:Y)
+26 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Ankle"
+27 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,45)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(76,Y)):DXS(76,Y),1:Y),8)
+28 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,46)
if Y]""
WRITE $SELECT($DATA(DXS(77,Y)):DXS(77,Y),1:Y)
+29 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "MTP"
+30 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,47)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(78,Y)):DXS(78,Y),1:Y),8)
+31 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,48)
if Y]""
WRITE $SELECT($DATA(DXS(79,Y)):DXS(79,Y),1:Y)
+32 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Toes - PIP"
+33 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,49)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(80,Y)):DXS(80,Y),1:Y),8)
+34 DO T
if 'DN
QUIT
DO N
if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Cervical Spine"
+35 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,50)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(81,Y)):DXS(81,Y),1:Y),8)
+36 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Lumber Spine"
+37 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,51)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(82,Y)):DXS(82,Y),1:Y),8)
+38 FOR Y=0:0
if $Y>(IOSL-3)
QUIT
WRITE !
+39 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE " "
+40 KILL Y
KILL DIWF
+41 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!