MCARORP2 ; GENERATED FROM 'MCRHPHYS' PRINT TEMPLATE (#726) ; 08/23/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>32 Q:'DN W ?32 S Y=$P(X,U,4) W:Y]"" $J($S($D(DXS(44,Y)):DXS(44,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 W "Synovial (Baker's) Cyst"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,5) W:Y]"" $J($S($D(DXS(45,Y)):DXS(45,Y),1:Y),8)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "Heel Pain"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,6) W:Y]"" $J($S($D(DXS(46,Y)):DXS(46,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 W "Tenosynovitis (Tendon Rubs)"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,7) W:Y]"" $J($S($D(DXS(47,Y)):DXS(47,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 W "Temporal Artery Tenderness"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,8) W:Y]"" $J($S($D(DXS(48,Y)):DXS(48,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 W "Costochondritis"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,9) W:Y]"" $J($S($D(DXS(49,Y)):DXS(49,Y),1:Y),8)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "F U N C T I O N A L A S S E S S M E N T :"
D N:$X>0 Q:'DN W ?0 W "Grip Strength - left"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,10) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " mmHg"
D N:$X>0 Q:'DN W ?0 W "Grip Strength - Right"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,11) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " mmHg"
D N:$X>0 Q:'DN W ?0 W "Schober Test (10 cm Base)"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,12) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " cm"
D N:$X>0 Q:'DN W ?0 W "Chest Expansion"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,13) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " cm"
D N:$X>0 Q:'DN W ?0 W "Occiput - Wall"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,14) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " cm"
D N:$X>0 Q:'DN W ?0 W "Finger-to-Palm Crease - left"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,15) W:Y]"" $J(Y,8,1)
D N:$X>40 Q:'DN W ?40 W " cm"
D N:$X>0 Q:'DN W ?0 W "Finger-to-Palm Crease - Right"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,16) W:Y]"" $J(Y,8,1)
D N:$X>40 Q:'DN W ?40 W " cm"
D N:$X>0 Q:'DN W ?0 W "Interincisor Distance"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,17) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " mm"
D N:$X>0 Q:'DN W ?0 W "Schirmer Test"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,18) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " mm"
D N:$X>0 Q:'DN W ?0 W "Walk Time (50 feet)"
D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,19) W:Y]"" $J(Y,8,0)
D N:$X>40 Q:'DN W ?40 W " secs"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "M I S C E L L A N E O U S :"
D N:$X>0 Q:'DN W ?0 W "Functional Class (ARA)"
D N:$X>63 Q:'DN W ?63 S Y=$P(X,U,20) W:Y]"" $J($S($D(DXS(50,Y)):DXS(50,Y),1:Y),16)
D N:$X>0 Q:'DN W ?0 W "Disease Severity - Patient Estimate"
D N:$X>63 Q:'DN W ?63 S Y=$P(X,U,21) W:Y]"" $J($S($D(DXS(51,Y)):DXS(51,Y),1:Y),16)
D N:$X>0 Q:'DN W ?0 W "Disease Severity - Physician Estimate"
D N:$X>63 Q:'DN W ?63 S Y=$P(X,U,52) W:Y]"" $J($S($D(DXS(52,Y)):DXS(52,Y),1:Y),16)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "J O I N T E X A M I N A T I O N:"
D N:$X>0 Q:'DN W ?0 W "LEFT"
D N:$X>70 Q:'DN W ?70 W "RIGHT"
D N:$X>0 Q:'DN W ?0 W "----"
D N:$X>70 Q:'DN W ?70 W "-----"
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,22) W:Y]"" $S($D(DXS(53,Y)):DXS(53,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Fingers - DIPs"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,23) W:Y]"" $J($S($D(DXS(54,Y)):DXS(54,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,24) W:Y]"" $S($D(DXS(55,Y)):DXS(55,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "Fingers - PIPs"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,25) W:Y]"" $J($S($D(DXS(56,Y)):DXS(56,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,26) W:Y]"" $S($D(DXS(57,Y)):DXS(57,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "MCPs"
D N:$X>70 Q:'DN W ?70 S Y=$P(X,U,27) W:Y]"" $J($S($D(DXS(58,Y)):DXS(58,Y),1:Y),8)
D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,28) W:Y]"" $S($D(DXS(59,Y)):DXS(59,Y),1:Y)
D N:$X>30 Q:'DN W ?30 W "First Carpomentacarpal"
G ^MCARORP3
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCARORP2 4307 printed Dec 13, 2024@02:14:04 Page 2
MCARORP2 ; GENERATED FROM 'MCRHPHYS' PRINT TEMPLATE (#726) ; 08/23/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>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,4)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(44,Y)):DXS(44,Y),1:Y),8)
+3 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Synovial (Baker's) Cyst"
+4 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,5)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(45,Y)):DXS(45,Y),1:Y),8)
+5 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Heel Pain"
+6 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,6)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(46,Y)):DXS(46,Y),1:Y),8)
+7 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Tenosynovitis (Tendon Rubs)"
+8 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,7)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(47,Y)):DXS(47,Y),1:Y),8)
+9 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Temporal Artery Tenderness"
+10 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,8)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(48,Y)):DXS(48,Y),1:Y),8)
+11 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Costochondritis"
+12 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,9)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(49,Y)):DXS(49,Y),1:Y),8)
+13 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "F U N C T I O N A L A S S E S S M E N T :"
+14 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Grip Strength - left"
+15 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,10)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+16 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " mmHg"
+17 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Grip Strength - Right"
+18 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,11)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+19 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " mmHg"
+20 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Schober Test (10 cm Base)"
+21 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,12)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+22 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " cm"
+23 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Chest Expansion"
+24 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,13)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+25 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " cm"
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Occiput - Wall"
+27 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,14)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+28 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " cm"
+29 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Finger-to-Palm Crease - left"
+30 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,15)
if Y]""
WRITE $JUSTIFY(Y,8,1)
+31 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " cm"
+32 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Finger-to-Palm Crease - Right"
+33 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,16)
if Y]""
WRITE $JUSTIFY(Y,8,1)
+34 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " cm"
+35 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Interincisor Distance"
+36 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,17)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+37 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " mm"
+38 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Schirmer Test"
+39 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,18)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+40 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " mm"
+41 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Walk Time (50 feet)"
+42 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
SET Y=$PIECE(X,U,19)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+43 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE " secs"
+44 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "M I S C E L L A N E O U S :"
+45 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Functional Class (ARA)"
+46 if $X>63
DO N
if 'DN
QUIT
WRITE ?63
SET Y=$PIECE(X,U,20)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(50,Y)):DXS(50,Y),1:Y),16)
+47 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Disease Severity - Patient Estimate"
+48 if $X>63
DO N
if 'DN
QUIT
WRITE ?63
SET Y=$PIECE(X,U,21)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(51,Y)):DXS(51,Y),1:Y),16)
+49 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Disease Severity - Physician Estimate"
+50 if $X>63
DO N
if 'DN
QUIT
WRITE ?63
SET Y=$PIECE(X,U,52)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(52,Y)):DXS(52,Y),1:Y),16)
+51 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "J O I N T E X A M I N A T I O N:"
+52 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "LEFT"
+53 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
WRITE "RIGHT"
+54 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "----"
+55 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
WRITE "-----"
+56 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,22)
if Y]""
WRITE $SELECT($DATA(DXS(53,Y)):DXS(53,Y),1:Y)
+57 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Fingers - DIPs"
+58 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,23)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(54,Y)):DXS(54,Y),1:Y),8)
+59 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,24)
if Y]""
WRITE $SELECT($DATA(DXS(55,Y)):DXS(55,Y),1:Y)
+60 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "Fingers - PIPs"
+61 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,25)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(56,Y)):DXS(56,Y),1:Y),8)
+62 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,26)
if Y]""
WRITE $SELECT($DATA(DXS(57,Y)):DXS(57,Y),1:Y)
+63 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "MCPs"
+64 if $X>70
DO N
if 'DN
QUIT
WRITE ?70
SET Y=$PIECE(X,U,27)
if Y]""
WRITE $JUSTIFY($SELECT($DATA(DXS(58,Y)):DXS(58,Y),1:Y),8)
+65 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
SET Y=$PIECE(X,U,28)
if Y]""
WRITE $SELECT($DATA(DXS(59,Y)):DXS(59,Y),1:Y)
+66 if $X>30
DO N
if 'DN
QUIT
WRITE ?30
WRITE "First Carpomentacarpal"
+67 GOTO ^MCARORP3