[628] | 1 | MCAROC2 ; GENERATED FROM 'MCARCATH2' PRINT TEMPLATE (#973) ; 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(973,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
|
---|
| 15 | D T Q:'DN D N D N:$X>34 Q:'DN W ?34 X DXS(1,9) K DIP K:DN Y W X
|
---|
| 16 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "PREMEDICATIONS:"
|
---|
| 17 | S I(1)=10,J(1)=691.2 F D1=0:0 Q:$O(^MCAR(691.1,D0,10,D1))'>0 X:$D(DSC(691.2)) DSC(691.2) S D1=$O(^(D1)) Q:D1'>0 D:$X>21 T Q:'DN D A1
|
---|
| 18 | G A1R
|
---|
| 19 | A1 ;
|
---|
| 20 | S X=$G(^MCAR(691.1,D0,10,D1,0)) W ?21 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
|
---|
| 21 | Q
|
---|
| 22 | A1R ;
|
---|
| 23 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "VASCULAR ACCESS:"
|
---|
| 24 | S I(1)=11,J(1)=691.21 F D1=0:0 Q:$O(^MCAR(691.1,D0,11,D1))'>0 X:$D(DSC(691.21)) DSC(691.21) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D B1
|
---|
| 25 | G B1R
|
---|
| 26 | B1 ;
|
---|
| 27 | S X=$G(^MCAR(691.1,D0,11,D1,0)) W ?22 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
|
---|
| 28 | Q
|
---|
| 29 | B1R ;
|
---|
| 30 | D N:$X>22 Q:'DN W ?22 X DXS(2,9) K DIP K:DN Y W X
|
---|
| 31 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "CATHETERS:"
|
---|
| 32 | D N:$X>29 Q:'DN W ?29 W "TYPE AND SIZE"
|
---|
| 33 | D N:$X>57 Q:'DN W ?57 W "ENGAGEMENT"
|
---|
| 34 | D N:$X>7 Q:'DN W ?7 W "RIGHT HEART"
|
---|
| 35 | S X=$G(^MCAR(691.1,D0,12)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
|
---|
| 36 | D N:$X>7 Q:'DN W ?7 W "LEFT HEART"
|
---|
| 37 | S I(1)=13,J(1)=691.22 F D1=0:0 Q:$O(^MCAR(691.1,D0,13,D1))'>0 X:$D(DSC(691.22)) DSC(691.22) S D1=$O(^(D1)) Q:D1'>0 D:$X>19 T Q:'DN D C1
|
---|
| 38 | G C1R
|
---|
| 39 | C1 ;
|
---|
| 40 | S X=$G(^MCAR(691.1,D0,13,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
|
---|
| 41 | D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
|
---|
| 42 | Q
|
---|
| 43 | C1R ;
|
---|
| 44 | D N:$X>7 Q:'DN W ?7 W "RIGHT CORONARY"
|
---|
| 45 | S I(1)=14,J(1)=691.23 F D1=0:0 Q:$O(^MCAR(691.1,D0,14,D1))'>0 X:$D(DSC(691.23)) DSC(691.23) S D1=$O(^(D1)) Q:D1'>0 D:$X>23 T Q:'DN D D1
|
---|
| 46 | G D1R
|
---|
| 47 | D1 ;
|
---|
| 48 | S X=$G(^MCAR(691.1,D0,14,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
|
---|
| 49 | D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
|
---|
| 50 | Q
|
---|
| 51 | D1R ;
|
---|
| 52 | D N:$X>7 Q:'DN W ?7 W "LEFT CORONARY"
|
---|
| 53 | S I(1)=15,J(1)=691.24 F D1=0:0 Q:$O(^MCAR(691.1,D0,15,D1))'>0 X:$D(DSC(691.24)) DSC(691.24) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D E1
|
---|
| 54 | G E1R
|
---|
| 55 | E1 ;
|
---|
| 56 | S X=$G(^MCAR(691.1,D0,15,D1,0)) D N:$X>27 Q:'DN W ?27 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^MCAR(695.6,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
|
---|
| 57 | D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
|
---|
| 58 | Q
|
---|
| 59 | E1R ;
|
---|
| 60 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "FLOURO TIME:"
|
---|
| 61 | S X=$G(^MCAR(691.1,D0,12)) W ?18 S Y=$P(X,U,1) W:Y]"" $J(Y,3,0)
|
---|
| 62 | W " MINUTES"
|
---|
| 63 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "OTHER PROCEDURE AND COMMENT:"
|
---|
| 64 | S I(1)=17,J(1)=691.25 F D1=0:0 Q:$O(^MCAR(691.1,D0,17,D1))'>0 S D1=$O(^(D1)) D:$X>34 T Q:'DN D F1
|
---|
| 65 | G F1R
|
---|
| 66 | F1 ;
|
---|
| 67 | S X=$G(^MCAR(691.1,D0,17,D1,0)) S DIWL=27,DIWR=78 D ^DIWP
|
---|
| 68 | Q
|
---|
| 69 | F1R ;
|
---|
| 70 | D A^DIWW
|
---|
| 71 | D N:$X>6 Q:'DN W ?6 W "TECH COMMENTS:"
|
---|
| 72 | S I(1)=2,J(1)=691.12 F D1=0:0 Q:$O(^MCAR(691.1,D0,2,D1))'>0 S D1=$O(^(D1)) D:$X>22 T Q:'DN D G1
|
---|
| 73 | G G1R
|
---|
| 74 | G1 ;
|
---|
| 75 | S X=$G(^MCAR(691.1,D0,2,D1,0)) S DIWL=23,DIWR=77 D ^DIWP
|
---|
| 76 | Q
|
---|
| 77 | G1R ;
|
---|
| 78 | D A^DIWW
|
---|
| 79 | D T Q:'DN D N D N:$X>29 Q:'DN W ?29 X DXS(3,9) K DIP K:DN Y W X
|
---|
| 80 | 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>29 T Q:'DN D H1
|
---|
| 81 | G H1R^MCAROC22
|
---|
| 82 | H1 ;
|
---|
| 83 | D T Q:'DN D N D N:$X>4 Q:'DN W ?4 W "INTERVENTION:"
|
---|
| 84 | S X=$G(^MCAR(691.1,D0,19,D1,0)) W ?19 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
|
---|
| 85 | D N:$X>6 Q:'DN W ?6 W "PRESSURES:"
|
---|
| 86 | D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="RA A: "_$P(DIP(1),U,2) K DIP K:DN Y W X
|
---|
| 87 | D N:$X>27 Q:'DN W ?27 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="PCW A: "_$P(DIP(1),U,13) K DIP K:DN Y W X
|
---|
| 88 | D N:$X>51 Q:'DN W ?51 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,1)):^(1),1:"") S X="AO S: "_$P(DIP(1),U,1) K DIP K:DN Y W X
|
---|
| 89 | D N:$X>10 Q:'DN W ?10 S DIP(1)=$S($D(^MCAR(691.1,D0,19,D1,0)):^(0),1:"") S X="V: "_$P(DIP(1),U,3) K DIP K:DN Y W X
|
---|
| 90 | G ^MCAROC21
|
---|