1 | MCOBC1 ; GENERATED FROM 'MCARCATHBRPR' PRINT TEMPLATE (#1019) ; 10/04/96 ; (FILE 691.1, MARGIN=80)
|
---|
2 | G BEGIN
|
---|
3 | N W !
|
---|
4 | 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)
|
---|
5 | S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
|
---|
6 | Q
|
---|
7 | DT 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
|
---|
10 | M D @DIXX
|
---|
11 | Q
|
---|
12 | BEGIN ;
|
---|
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(1019,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
|
---|
15 | W ?0 W "DATE/TIME: "
|
---|
16 | S X=$G(^MCAR(691.1,D0,0)) S Y=$P(X,U,1) D DT
|
---|
17 | D N:$X>34 Q:'DN W ?34 W "MEDICAL PATIENT: "
|
---|
18 | S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^MCAR(690,Y,0))#2:$P(^(0),U,1),1:Y) S Y=$S(Y="":Y,$D(^DPT(Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
|
---|
19 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "PROCEDURES: "
|
---|
20 | S I(1)=3,J(1)=691.13 F D1=0:0 Q:$O(^MCAR(691.1,D0,3,D1))'>0 X:$D(DSC(691.13)) DSC(691.13) S D1=$O(^(D1)) Q:D1'>0 D:$X>18 T Q:'DN D A1
|
---|
21 | G A1R
|
---|
22 | A1 ;
|
---|
23 | S X=$G(^MCAR(691.1,D0,3,D1,0)) D N:$X>19 Q:'DN W ?19 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.3,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
|
---|
24 | Q
|
---|
25 | A1R ;
|
---|
26 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "INDICATIONS: "
|
---|
27 | S I(1)=8,J(1)=691.18 F D1=0:0 Q:$O(^MCAR(691.1,D0,8,D1))'>0 X:$D(DSC(691.18)) DSC(691.18) S D1=$O(^(D1)) Q:D1'>0 D:$X>19 T Q:'DN D B1
|
---|
28 | G B1R
|
---|
29 | B1 ;
|
---|
30 | S X=$G(^MCAR(691.1,D0,8,D1,0)) D N:$X>19 Q:'DN W ?19 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(697.5,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,50)
|
---|
31 | Q
|
---|
32 | B1R ;
|
---|
33 | S I(1)=19,J(1)=691.26 F D1=0:0 Q:$O(^MCAR(691.1,D0,19,D1))'>0 X:$D(DSC(691.26)) DSC(691.26) S D1=$O(^(D1)) Q:D1'>0 D:$X>71 T Q:'DN D C1
|
---|
34 | G C1R
|
---|
35 | C1 ;
|
---|
36 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "INTERVENTION: "
|
---|
37 | S X=$G(^MCAR(691.1,D0,19,D1,0)) D N:$X>19 Q:'DN W ?19 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(3,Y)):DXS(3,Y),1:Y)
|
---|
38 | D T Q:'DN D N D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="RA MEAN PRESSURE: "_$P(DIP(1),U,4) K DIP K:DN Y W X
|
---|
39 | D N:$X>39 Q:'DN W ?39 W "PA SYSTOLIC/DIASTOLIC: "
|
---|
40 | W ?64 X DXS(1,9.2) S DIP(5)=X S X=$P(DIP(1),U,9)_"/"_$P(DIP(1),U,10),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP K:DN Y W X
|
---|
41 | D N:$X>9 Q:'DN W ?9 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PCW MEAN: "_$P(DIP(1),U,15) K DIP K:DN Y W X
|
---|
42 | D N:$X>39 Q:'DN W ?39 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="LV END DIASTOLIC (Z): "_$P(DIP(1),U,21) K DIP K:DN Y W X
|
---|
43 | Q
|
---|
44 | C1R ;
|
---|
45 | D T Q:'DN D N W ?0 W " "
|
---|
46 | S I(1)=21,J(1)=691.27 F D1=0:0 Q:$O(^MCAR(691.1,D0,21,D1))'>0 X:$D(DSC(691.27)) DSC(691.27) S D1=$O(^(D1)) Q:D1'>0 D:$X>3 T Q:'DN D D1
|
---|
47 | G D1R
|
---|
48 | D1 ;
|
---|
49 | S X=$G(^MCAR(691.1,D0,21,D1,0)) D N:$X>9 Q:'DN W ?9 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)
|
---|
50 | D N:$X>39 Q:'DN W ?39 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)
|
---|
51 | D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,4) W:Y]"" $J(Y,7,2)
|
---|
52 | Q
|
---|
53 | D1R ;
|
---|
54 | S I(1)=25,J(1)=691.29 F D1=0:0 Q:$O(^MCAR(691.1,D0,25,D1))'>0 X:$D(DSC(691.29)) DSC(691.29) S D1=$O(^(D1)) Q:D1'>0 D:$X>48 T Q:'DN D E1
|
---|
55 | G E1R
|
---|
56 | E1 ;
|
---|
57 | D N:$X>9 Q:'DN W ?9 W "LEFT MAIN CA NARROWING"
|
---|
58 | S X=$G(^MCAR(691.1,D0,25,D1,0)) D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(696.1,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,17)
|
---|
59 | Q
|
---|
60 | E1R ;
|
---|
61 | S I(1)=25.5,J(1)=691.47 F D1=0:0 Q:$O(^MCAR(691.1,D0,25.5,D1))'>0 X:$D(DSC(691.47)) DSC(691.47) S D1=$O(^(D1)) Q:D1'>0 D:$X>58 T Q:'DN D F1
|
---|
62 | G F1R
|
---|
63 | F1 ;
|
---|
64 | D N:$X>9 Q:'DN W ?9 W "LEFT MAIN CA NARROWING NUMBER"
|
---|
65 | S X=$G(^MCAR(691.1,D0,25.5,D1,0)) D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,1) W:Y]"" $J(Y,6,2)
|
---|
66 | Q
|
---|
67 | F1R ;
|
---|
68 | S I(1)=27,J(1)=691.3 F D1=0:0 Q:$O(^MCAR(691.1,D0,27,D1))'>0 X:$D(DSC(691.3)) DSC(691.3) S D1=$O(^(D1)) Q:D1'>0 D:$X>47 T Q:'DN D G1
|
---|
69 | G G1R
|
---|
70 | G1 ;
|
---|
71 | S X=$G(^MCAR(691.1,D0,27,D1,0)) D N:$X>9 Q:'DN W ?9 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)
|
---|
72 | D N:$X>39 Q:'DN W ?39 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)
|
---|
73 | D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,4) W:Y]"" $J(Y,7,2)
|
---|
74 | Q
|
---|
75 | G1R ;
|
---|
76 | S I(1)=31,J(1)=691.32 F D1=0:0 Q:$O(^MCAR(691.1,D0,31,D1))'>0 X:$D(DSC(691.32)) DSC(691.32) S D1=$O(^(D1)) Q:D1'>0 D:$X>48 T Q:'DN D H1
|
---|
77 | G H1R^MCOBC11
|
---|
78 | H1 ;
|
---|
79 | S X=$G(^MCAR(691.1,D0,31,D1,0)) D N:$X>9 Q:'DN W ?9 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)
|
---|
80 | D N:$X>39 Q:'DN W ?39 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)
|
---|
81 | G ^MCOBC11
|
---|