source: WorldVistAEHR/trunk/r/MEDICINE-MC/MCARORF3.m@ 1078

Last change on this file since 1078 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 3.0 KB
RevLine 
[613]1MCARORF3 ; GENERATED FROM 'MCRHPHYS' PRINT TEMPLATE (#1015) ; 10/04/96 ; (continued)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 D N:$X>30 Q:'DN W ?30 W "First Carpomentacarpal"
15 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)
16 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)
17 D N:$X>30 Q:'DN W ?30 W "Wrist"
18 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)
19 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)
20 D N:$X>30 Q:'DN W ?30 W "Elbow"
21 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)
22 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)
23 D N:$X>30 Q:'DN W ?30 W "Shoulder"
24 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)
25 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)
26 D N:$X>30 Q:'DN W ?30 W "Sternoclavicular"
27 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)
28 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)
29 D N:$X>30 Q:'DN W ?30 W "TMJ"
30 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)
31 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)
32 D N:$X>30 Q:'DN W ?30 W "HIP"
33 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)
34 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)
35 D N:$X>30 Q:'DN W ?30 W "Knee"
36 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)
37 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)
38 D N:$X>30 Q:'DN W ?30 W "Ankle"
39 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)
40 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)
41 D N:$X>30 Q:'DN W ?30 W "MTP"
42 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)
43 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)
44 D N:$X>30 Q:'DN W ?30 W "Toes - PIP"
45 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)
46 D T Q:'DN D N D N:$X>30 Q:'DN W ?30 W "Cervical Spine"
47 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)
48 D N:$X>30 Q:'DN W ?30 W "Lumber Spine"
49 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)
50 F Y=0:0 Q:$Y>(IOSL-3) W !
51 D N:$X>0 Q:'DN W ?0 W " "
52 K Y K DIWF
53 Q
54HEAD ;
55 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.