source: WorldVistAEHR/trunk/r/MEDICINE-MC/MCAROE1.m@ 862

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

initial load of WorldVistAEHR

File size: 4.2 KB
Line 
1MCAROE1 ; GENERATED FROM 'MCARECHO1' PRINT TEMPLATE (#992) ; 02/21/97 ; (FILE 691, MARGIN=80)
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 I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(992,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
15 D N:$X>49 Q:'DN W ?49 W "WARD/CLINIC: "
16 S X=$G(^MCAR(691,D0,11)) S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^SC(Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
17 D N:$X>4 Q:'DN W ?4 W "AGE: "
18 X DXS(1,9) K DIP K:DN Y W X
19 D N:$X>49 Q:'DN W ?49 W "SEX: "
20 X DXS(2,9.3) S DIP(201)=$S($D(^DPT(D0,0)):^(0),1:"") S X=$P($P(DIP(202),$C(59)_$P(DIP(201),U,2)_":",2),$C(59),1) S D0=I(0,0) K DIP K:DN Y W X
21 D N:$X>4 Q:'DN W ?4 W "HT IN: "
22 S X=$G(^MCAR(691,D0,13)) S Y=$P(X,U,2) W:Y]"" $J(Y,3,0)
23 D N:$X>27 Q:'DN W ?27 W "WT LBS: "
24 S Y=$P(X,U,1) W:Y]"" $J(Y,4,0)
25 D N:$X>49 Q:'DN W ?49 X DXS(3,9.2) S X=$S(DIP(2):DIP(3),DIP(4):DIP(5),DIP(6):X) K DIP K:DN Y W X
26 S X=$G(^MCAR(691,D0,13)) S Y=$P(X,U,3) W:Y]"" $J(Y,6,2)
27 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "TEST RESULTS:"
28 D N:$X>6 Q:'DN W ?6 X DXS(4,9) K DIP K:DN Y W X
29 D N:$X>9 Q:'DN W ?9 X DXS(5,9) K DIP K:DN Y W X
30 D N:$X>24 Q:'DN W ?24 X DXS(6,9) K DIP K:DN Y W X
31 D N:$X>30 Q:'DN W ?30 X DXS(7,9) K DIP K:DN Y W X
32 D N:$X>44 Q:'DN W ?44 X DXS(8,9) K DIP K:DN Y W X
33 D N:$X>59 Q:'DN W ?59 X DXS(9,9) K DIP K:DN Y W X
34 D N:$X>66 Q:'DN W ?66 X DXS(10,9) K DIP K:DN Y W X
35 D N:$X>9 Q:'DN W ?9 X DXS(11,9) K DIP K:DN Y W X
36 D N:$X>24 Q:'DN W ?24 X DXS(12,9) K DIP K:DN Y W X
37 D N:$X>30 Q:'DN W ?30 X DXS(13,9) K DIP K:DN Y W X
38 D N:$X>44 Q:'DN W ?44 X DXS(14,9) K DIP K:DN Y W X
39 D N:$X>59 Q:'DN W ?59 X DXS(15,9) K DIP K:DN Y W X
40 D N:$X>65 Q:'DN W ?65 X DXS(16,9) K DIP K:DN Y W X
41 D N:$X>9 Q:'DN W ?9 X DXS(17,9.2) S X="% FRACT SHORT: ",X=$S(DIP(3):DIP(4),DIP(5):X) K DIP K:DN Y W X
42 D N:$X>24 Q:'DN W ?24 X DXS(18,9.2) S X=X&Y,DIP(3)=X S X="",DIP(4)=X S X=1,DIP(5)=X S X=DIP(6),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP K:DN Y W X
43 D N:$X>32 Q:'DN W ?32 X DXS(19,9.2) S X=$S(DIP(3):DIP(4),DIP(5):X) K DIP K:DN Y W X
44 D N:$X>44 Q:'DN W ?44 X DXS(20,9) K DIP K:DN Y W X
45 D N:$X>59 Q:'DN W ?59 X DXS(21,9) K DIP K:DN Y W X
46 D N:$X>65 Q:'DN W ?65 X DXS(22,9) K DIP K:DN Y W X
47 D N:$X>9 Q:'DN W ?9 X DXS(23,9) K DIP K:DN Y W X
48 D N:$X>24 Q:'DN W ?24 X DXS(24,9) K DIP K:DN Y W X
49 D N:$X>31 Q:'DN W ?31 X DXS(25,9) K DIP K:DN Y W X
50 D N:$X>44 Q:'DN W ?44 X DXS(26,9) K DIP K:DN Y W X
51 D N:$X>59 Q:'DN W ?59 X DXS(27,9) K DIP K:DN Y W X
52 D N:$X>65 Q:'DN W ?65 X DXS(28,9) K DIP K:DN Y W X
53 D N:$X>9 Q:'DN W ?9 X DXS(29,9) K DIP K:DN Y W X
54 D N:$X>24 Q:'DN W ?24 X DXS(30,9) K DIP K:DN Y W X
55 D N:$X>31 Q:'DN W ?31 X DXS(31,9) K DIP K:DN Y W X
56 D N:$X>44 Q:'DN W ?44 X DXS(32,9) K DIP K:DN Y W X
57 D N:$X>59 Q:'DN W ?59 X DXS(33,9) K DIP K:DN Y W X
58 D N:$X>67 Q:'DN W ?67 X DXS(34,9) K DIP K:DN Y W X
59 D N:$X>9 Q:'DN W ?9 X $P(^DD(691,32.8,0),U,5,99) S DIP(1)=X S X='DIP(1),DIP(2)=X S X="",DIP(3)=X S X=1,DIP(4)=X S X="LV MASS: ",X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
60 D N:$X>24 Q:'DN W ?24 X DXS(35,9.2) S X=$J(DIP(6),DIP(7),X),X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
61 D T Q:'DN D N D N:$X>6 Q:'DN W ?6 X DXS(36,9) K DIP K:DN Y W X
62 D N:$X>9 Q:'DN W ?9 X DXS(37,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
63 D N:$X>33 Q:'DN W ?33 X DXS(38,9.2) S DIP(4)=X S X="",DIP(5)=X S X=1,DIP(6)=X S X="EF: "_DIP(7)_"%",X=$S(DIP(2):DIP(3),DIP(4):DIP(5),DIP(6):X) K DIP K:DN Y W X
64 D N:$X>48 Q:'DN W ?48 X DXS(39,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
65 D N:$X>63 Q:'DN W ?63 X DXS(40,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
66 D N:$X>35 Q:'DN W ?35 X DXS(41,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
67 D N:$X>9 Q:'DN W ?9 X DXS(42,9.3) S X=$S(DIP(3):DIP(4),DIP(5):X) K DIP K:DN Y W X
68 K Y
69 Q
70HEAD ;
71 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.