source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCOY53.m@ 1383

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

WorldVistAEHR overlayed on FOIAVistA

File size: 4.8 KB
Line 
1ONCOY53 ; GENERATED FROM 'ONCOY53' PRINT TEMPLATE (#863) ; 10/08/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(863,"DXS")
15 S I(0)="^ONCO(165.5,",J(0)=165.5
16 D T Q:'DN D N W ?0 W "* STAGE OF DISEASE AT DIAGNOSIS *"
17 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "TNM Clinical..................: "
18 D N:$X>34 Q:'DN W ?34 S STGIND="C",X=$$TNMOUT^ONCOTNO(D0) W $E(X,1,14) K Y(165.5,37)
19 D N:$X>2 Q:'DN W ?2 W "Stage Group Clinical..........:"
20 S X=$G(^ONCO(165.5,D0,2)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,20) S Y(0)=Y S X="" D OT^ONCOTNS W $E(Y,1,30)
21 D N:$X>2 Q:'DN W ?2 W "Staged By (Clinical)..........:"
22 S X=$G(^ONCO(165.5,D0,3)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,32) W:Y]"" $S($D(DXS(1,Y)):DXS(1,Y),1:Y)
23 D N:$X>2 Q:'DN W ?2 W "TNM Pathologic................:"
24 D N:$X>34 Q:'DN W ?34 S STGIND="P",X=$$TNMOUT^ONCOTNO(D0) W $E(X,1,14) K Y(165.5,89.1)
25 D N:$X>2 Q:'DN W ?2 W "Stage Group Pathologic........:"
26 S X=$G(^ONCO(165.5,D0,2.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,4) S Y(0)=Y S X="" D OT^ONCOTNS W $E(Y,1,14)
27 D N:$X>2 Q:'DN W ?2 W "Staged By (Pathologic)........:"
28 S X=$G(^ONCO(165.5,D0,2.1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,5) W:Y]"" $S($D(DXS(2,Y)):DXS(2,Y),1:Y)
29 D T Q:'DN D N W ?0 W "* COLLABORATIVE STAGING *"
30 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "Tumor Size....................: "
31 S X=$G(^ONCO(165.5,D0,"CS1")) W ?0,$E($P(X,U,10),1,30)
32 D N:$X>2 Q:'DN W ?2 W "Extension.....................: "
33 S X=$G(^ONCO(165.5,D0,"CS")) W ?0,$E($P(X,U,11),1,30)
34 D N:$X>2 Q:'DN W ?2 W "Tumor Size/Ext Eval...........:"
35 D N:$X>34 Q:'DN W ?34,$E($P(X,U,1),1,30)
36 D N:$X>2 Q:'DN W ?2 W "Lymph Nodes ..................:"
37 D N:$X>34 Q:'DN W ?34,$E($P(X,U,12),1,30)
38 D N:$X>2 Q:'DN W ?2 W "Reg Nodes Eval................:"
39 D N:$X>34 Q:'DN W ?34,$E($P(X,U,2),1,30)
40 D N:$X>2 Q:'DN W ?2 W "Regional Nodes Examined.......:"
41 S X=$G(^ONCO(165.5,D0,2)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,13) S Y(0)=Y D RNE^ONCOOT W $E(Y,1,30)
42 D N:$X>2 Q:'DN W ?2 W "Regional Nodes Positive.......:"
43 S X=$G(^ONCO(165.5,D0,2)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,12) S Y(0)=Y D RNP^ONCOOT W $E(Y,1,30)
44 D N:$X>2 Q:'DN W ?2 W "Mets at Dx....................:"
45 S X=$G(^ONCO(165.5,D0,"CS")) D N:$X>34 Q:'DN W ?34,$E($P(X,U,3),1,30)
46 D N:$X>2 Q:'DN W ?2 W "Mets Eval.....................:"
47 D N:$X>34 Q:'DN W ?34,$E($P(X,U,4),1,30)
48 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 1........:"
49 D N:$X>34 Q:'DN W ?34,$E($P(X,U,5),1,30)
50 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 2........:"
51 D N:$X>34 Q:'DN W ?34,$E($P(X,U,6),1,30)
52 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 3........:"
53 D N:$X>34 Q:'DN W ?34,$E($P(X,U,7),1,30)
54 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 4........:"
55 D N:$X>34 Q:'DN W ?34,$E($P(X,U,8),1,30)
56 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 5........:"
57 D N:$X>34 Q:'DN W ?34,$E($P(X,U,9),1,30)
58 D N:$X>2 Q:'DN W ?2 W "Site-Specific Factor 6........:"
59 D N:$X>34 Q:'DN W ?34,$E($P(X,U,10),1,30)
60 D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "Derived T.....................:"
61 S X=$G(^ONCO(165.5,D0,"CS1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,1) S Y(0)=Y D TOT^ONCCSOT W $E(Y,1,30)
62 D N:$X>2 Q:'DN W ?2 W "Derived T Descriptor..........:"
63 S X=$G(^ONCO(165.5,D0,"CS1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(3,Y)):DXS(3,Y),1:Y)
64 D N:$X>2 Q:'DN W ?2 W "Derived N.....................:"
65 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,3) S Y(0)=Y D NOT^ONCCSOT W $E(Y,1,30)
66 D N:$X>2 Q:'DN W ?2 W "Derived N Descriptor..........:"
67 S X=$G(^ONCO(165.5,D0,"CS1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,4) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
68 D N:$X>2 Q:'DN W ?2 W "Derived M.....................:"
69 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,5) S Y(0)=Y D MOT^ONCCSOT W $E(Y,1,30)
70 D N:$X>2 Q:'DN W ?2 W "Derived M Descriptor..........:"
71 S X=$G(^ONCO(165.5,D0,"CS1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
72 D N:$X>2 Q:'DN W ?2 W "Derived Stage Group...........:"
73 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,7) S Y(0)=Y D SGOT^ONCCSOT W $E(Y,1,30)
74 D N:$X>2 Q:'DN W ?2 W "Derived SS1977................:"
75 S X=$G(^ONCO(165.5,D0,"CS1")) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,8) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
76 D N:$X>2 Q:'DN W ?2 W "Derived SS2000................:"
77 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,9) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
78 K Y
79 Q
80HEAD ;
81 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.