source: FOIAVistA/tag/r/MEDICINE-MC/MCOBC11.m@ 736

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

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1MCOBC11 ; GENERATED FROM 'MCARCATHBRPR' PRINT TEMPLATE (#1019) ; 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>39 Q:'DN W ?39 S Y=$P(X,U,4) W:Y]"" $J(Y,7,2)
15 Q
16H1R ;
17 S I(1)=37,J(1)=691.36 F D1=0:0 Q:$O(^MCAR(691.1,D0,37,D1))'>0 X:$D(DSC(691.36)) DSC(691.36) S D1=$O(^(D1)) Q:D1'>0 D:$X>48 T Q:'DN D I1
18 G I1R
19I1 ;
20 D T Q:'DN D N D N:$X>23 Q:'DN W ?23 W "STARTING"
21 D N:$X>38 Q:'DN W ?38 W "RESULTING"
22 D N:$X>21 Q:'DN W ?21 W "% OBSTRUCTION"
23 D N:$X>36 Q:'DN W ?36 W "% OBSTRUCTION"
24 S X=$G(^MCAR(691.1,D0,37,D1,0)) D N:$X>7 Q:'DN W ?7 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(696,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
25 D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^MCAR(696.1,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,17)
26 S X=$G(^MCAR(691.1,D0,37,D1,3)) D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,1) W:Y]"" $J(Y,7,2)
27 S X=$G(^MCAR(691.1,D0,37,D1,0)) D N:$X>40 Q:'DN W ?40 S Y=$P(X,U,3) S Y=$S(Y="":Y,$D(^MCAR(696.1,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,17)
28 S X=$G(^MCAR(691.1,D0,37,D1,3)) D N:$X>40 Q:'DN W ?40 S Y=$P(X,U,2) W:Y]"" $J(Y,7,2)
29 Q
30I1R ;
31 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 S DIP(1)=$S($D(^MCAR(691.1,D0,40)):^(40),1:"") S X="EJECTION FRACTION: "_$P(DIP(1),U,3) K DIP K:DN Y W X
32 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "COMPLICATIONS: "
33 S DICMX="D L^DIWP" D N:$X>20 Q:'DN S DIWL=21,DIWR=78 X DXS(2,9) K DIP K:DN Y
34 D A^DIWW
35 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "CONCLUSION: "
36 S I(1)=43,J(1)=691.41 F D1=0:0 Q:$O(^MCAR(691.1,D0,43,D1))'>0 S D1=$O(^(D1)) D:$X>18 T Q:'DN D J1
37 G J1R
38J1 ;
39 S X=$G(^MCAR(691.1,D0,43,D1,0)) S DIWL=18,DIWR=77 D ^DIWP
40 Q
41J1R ;
42 D A^DIWW
43 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "PLAN: "
44 S I(1)=44,J(1)=691.42 F D1=0:0 Q:$O(^MCAR(691.1,D0,44,D1))'>0 S D1=$O(^(D1)) D:$X>12 T Q:'DN D K1
45 G K1R
46K1 ;
47 S X=$G(^MCAR(691.1,D0,44,D1,0)) S DIWL=13,DIWR=77 D ^DIWP
48 Q
49K1R ;
50 D A^DIWW
51 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "SUMMARY: "
52 S X=$G(^MCAR(691.1,D0,.2)) S Y=$P(X,U,1) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
53 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "PROCEDURE SUMMARY: "
54 D N:$X>17 Q:'DN S DIWL=18,DIWR=77 S Y=$P(X,U,2) S X=Y D ^DIWP
55 D A^DIWW
56 D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "CARDIOLOGY STAFF: "
57 S X=$G(^MCAR(691.1,D0,45)) S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,35)
58 W ?24 S MCFILE=691.1 D DISP^MCMAG K DIP K:DN Y
59 W ?35 K MCFILE K DIP K:DN Y
60 K Y K DIWF
61 Q
62HEAD ;
63 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.