source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCOY54.m@ 1361

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

initial load of WorldVistAEHR

File size: 4.4 KB
RevLine 
[613]1ONCOY54 ; GENERATED FROM 'ONCOY54' PRINT TEMPLATE (#812) ; 04/21/06 ; (FILE 165.5, 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 M DXS=^DIPT(812,"DXS")
15 S I(0)="^ONCO(165.5,",J(0)=165.5
16 D T Q:'DN D N W ?0 W "* FIRST COURSE OF TREATMENT *"
17 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "First Course of Treatment Date:"
18 D N:$X>34 Q:'DN W ?34 S X="" D DFC^ONCOCOM W $E(X,1,10) K Y(165.5,49)
19 D N:$X>2 Q:'DN W ?2 W "Date of No Treatment..........:"
20 S X=$G(^ONCO(165.5,D0,2.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,11) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
21 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "Date First Surgical Procedure.:"
22 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,38) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
23 D N:$X>2 Q:'DN W ?2 W "Surgery of Primary............:"
24 S X=$G(^ONCO(165.5,D0,3)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,1) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
25 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,29) S Y(0)=Y S FIELD=58.6 D SPSOT^ONCOSUR W $E(Y,1,34)
26 D N:$X>2 Q:'DN W ?2 W "Surgery of Primary @Fac.......:"
27 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,8) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
28 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,30) S Y(0)=Y S FIELD=58.7 D SPSOT^ONCOSUR W $E(Y,1,34)
29 D N:$X>2 Q:'DN W ?2 W "Surgical Margins..............:"
30 S X=$G(^ONCO(165.5,D0,3)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,28) S Y(0)=Y S FILNUM=165.5,FLDNUM=59 D SOC^ONCOOT W $E(Y,1,30)
31 D N:$X>2 Q:'DN W ?2 W "Scope of LN Surgery...........:"
32 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,22) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
33 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,31) W:Y]"" $S($D(DXS(3,Y)):DXS(3,Y),1:Y)
34 D N:$X>2 Q:'DN W ?2 W "Scope of LN Surgery @Fac......:"
35 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,23) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
36 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,32) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
37 D N:$X>2 Q:'DN W ?2 W "Surg Proc/Other Site..........:"
38 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,24) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
39 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,33) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
40 D N:$X>2 Q:'DN W ?2 W "Surg Proc/Other Site @Fac.....:"
41 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,25) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
42 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,34) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
43 D N:$X>2 Q:'DN W ?2 W "Reason No Surgery of Primary..:"
44 D N:$X>34 Q:'DN W ?34 X DXS(1,9.2) X "F %=2:1:$L(X) I $E(X,%)?1U,$E(X,%-1)?1A S X=$E(X,0,%-1)_$C($A(X,%)+32)_$E(X,%+1,999)" K DIP K:DN Y W X
45 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "Radiation.....................:"
46 S X=$G(^ONCO(165.5,D0,3)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,4) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
47 S X=$G(^ONCO(165.5,D0,3)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
48 D N:$X>2 Q:'DN W ?2 W "Radiation @Fac................:"
49 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,13) S Y(0)=Y S X=Y D DATEOT^ONCOES W $E(Y,1,30)
50 S X=$G(^ONCO(165.5,D0,3.1)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,12) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
51 D N:$X>2 Q:'DN W ?2 W "Radiation/Surgery Sequence....:"
52 D N:$X>34 Q:'DN W ?34 X DXS(2,9.2) X "F %=2:1:$L(X) I $E(X,%)?1U,$E(X,%-1)?1A S X=$E(X,0,%-1)_$C($A(X,%)+32)_$E(X,%+1,999)" K DIP K:DN Y W X
53 D N:$X>2 Q:'DN W ?2 W "Regional Dose: cGy............:"
54 S X=$G(^ONCO(165.5,D0,"THY1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,43) S Y(0)=Y S Y=$S(Y="00000":"Radiation tx not administered",Y=88888:"NA, brachytherapy/radioisotopes administered",Y=99999:"Dose unknown/unknown if administered",1:Y) W $E(Y,1,30)
55 D N:$X>2 Q:'DN W ?2 W "Regional Treatment Modality...:"
56 S X=$G(^ONCO(165.5,D0,"BLA2")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,18) S Y(0)=Y S Y=$P($G(^ONCO(166.13,+Y,0)),U,2) W $E(Y,1,30)
57 K Y
58 Q
59HEAD ;
60 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.