source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCOX5.m@ 1590

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

initial load of FOIAVistA 6/30/08 version

File size: 6.4 KB
Line 
1ONCOX5 ; GENERATED FROM 'ONCOX5' PRINT TEMPLATE (#846) ; 08/13/03 ; (FILE 165.5, MARGIN=132)
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(846,"DXS")
15 S I(0)="^ONCO(165.5,",J(0)=165.5
16 D T Q:'DN D N W ?0 X DXS(1,9) K DIP K:DN Y W X
17 D T Q:'DN D N D N:$X>14 Q:'DN W ?14 W "DX Date: "
18 S X=$G(^ONCO(165.5,D0,0)) S Y=$P(X,U,16) S Y(0)=Y S X=Y D DATEOT^ONCOES W $J(Y,13)
19 D N:$X>69 Q:'DN W ?69 W "Class of Case: "
20 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
21 D N:$X>14 Q:'DN W ?14 W "Type of Reporting Source: "
22 X DXS(3,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
23 D N:$X>12 Q:'DN W ?12 W "Histology: "
24 S DIP(1)=$S($D(^ONCO(165.5,D0,2)):^(2),1:"") S X=$P(DIP(1),U,3),X=X K DIP K:DN Y W X
25 W " "
26 X DXS(4,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
27 D N:$X>71 Q:'DN W ?71 W "Dx Facility: "
28 X DXS(5,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
29 D N:$X>7 Q:'DN W ?7 W "Text Histology: "
30 X DXS(6,9) K DIP K:DN Y W X
31 D N:$X>16 Q:'DN W ?16 W "Grade:"
32 S X=$G(^ONCO(165.5,D0,2)) W ?24 S Y=$P(X,U,5) S Y(0)=Y S:Y'="" Y=$P(^ONCO(164.43,Y,0),U,1) W $E(Y,1,30)
33 S DIWL=57,DIWR=130 X DXS(7,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) K DIP K DIP K:DN Y D ^DIWP
34 D 0^DIWW
35 D ^DIWW
36 D T Q:'DN W ?2 S TM1=$$PRINT^ONCOTM(D0,1) K DIP K:DN Y
37 W ?13 W !?7,TM1_":" K DIP K:DN Y
38 S X=$G(^ONCO(165.5,D0,24)) W ?24 S Y=$P(X,U,2) S Y(0)=Y S Y=$P($G(^ONCO(164.15,+Y,0)),U,2) W $E(Y,1,30)
39 D N:$X>7 Q:'DN W ?7 W "Tumor Marker 2:"
40 S X=$G(^ONCO(165.5,D0,24)) W ?24 S Y=$P(X,U,3) S Y(0)=Y S Y=$P($G(^ONCO(164.15,+Y,0)),U,2) W $E(Y,1,30)
41 D T Q:'DN D N D N:$X>12 Q:'DN W ?12 W "ICDO-Site: "
42 X DXS(8,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) K DIP K:DN Y W X
43 W " "
44 X DXS(9,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 N:$X>64 Q:'DN W ?64 W "Referring Facility: "
46 X DXS(10,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
47 D N:$X>11 Q:'DN W ?11 W "Laterality: "
48 X DXS(11,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
49 D N:$X>65 Q:'DN W ?65 W "Transfer Facility: "
50 X DXS(12,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
51 D N:$X>6 Q:'DN W ?6 W "DX Confirmation: "
52 X DXS(13,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>56 Q:'DN W ?56 W "Primary Payer at Diagnosis: "
54 X DXS(14,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
55 D N:$X>9 Q:'DN W ?9 W "IP/OP status: "
56 S X=$G(^ONCO(165.5,D0,0)) S Y=$P(X,U,23) W:Y]"" $S($D(DXS(18,Y)):DXS(18,Y),1:Y)
57 D N:$X>5 Q:'DN W ?5 W "Screening Result: "
58 S Y=$P(X,U,25) W:Y]"" $S($D(DXS(19,Y)):DXS(19,Y),1:Y)
59 D N:$X>68 Q:'DN W ?68 W "Screening Date: "
60 S Y=$P(X,U,24) S Y(0)=Y D DATEOT^ONCOPCE W $E(Y,1,30)
61 D N:$X>1 Q:'DN W ?1 W "Presentation at Cancer Conference: "
62 S X=$G(^ONCO(165.5,D0,0)) S Y=$P(X,U,26) W:Y]"" $S($D(DXS(20,Y)):DXS(20,Y),1:Y)
63 D N:$X>65 Q:'DN W ?65 W "Date of Cancer Conference: "
64 S Y=$P(X,U,27) S Y(0)=Y D DATEOT^ONCOPCE W $E(Y,1,30)
65 D N:$X>1 Q:'DN W ?1 W "Referral to Support Services: "
66 S X=$G(^ONCO(165.5,D0,0)) W ?34 S Y=$P(X,U,28) W:Y]"" $S($D(DXS(21,Y)):DXS(21,Y),1:Y)
67 D T Q:'DN D N D N:$X>14 Q:'DN W ?14 W "Site/Gp: "
68 X DXS(15,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
69 W " Primary Sequence No: "
70 S X=$G(^ONCO(165.5,D0,0)) W ?0,$E($P(X,U,6),1,2)
71 D N:$X>4 Q:'DN W ?4 W "Text-Primary Site Title: "
72 X DXS(16,9) K DIP K:DN Y W X
73 D N:$X>6 Q:'DN W ?6 W " "
74 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-PE: "
75 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=10,J(1)=165.5104 F D1=0:0 Q:$O(^ONCO(165.5,D0,10,D1))'>0 S D1=$O(^(D1)) D:$X>23 T Q:'DN D A1
76 G A1R
77A1 ;
78 S X=$G(^ONCO(165.5,D0,10,D1,0)) S DIWL=24,DIWR=130 D ^DIWP
79 Q
80A1R ;
81 D 0^DIWW
82 D ^DIWW
83 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-X-ray/scan: "
84 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=11,J(1)=165.5105 F D1=0:0 Q:$O(^ONCO(165.5,D0,11,D1))'>0 S D1=$O(^(D1)) D:$X>31 T Q:'DN D B1
85 G B1R
86B1 ;
87 S X=$G(^ONCO(165.5,D0,11,D1,0)) S DIWL=32,DIWR=130 D ^DIWP
88 Q
89B1R ;
90 D 0^DIWW
91 D ^DIWW
92 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-Op: "
93 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=9,J(1)=165.5103 F D1=0:0 Q:$O(^ONCO(165.5,D0,9,D1))'>0 S D1=$O(^(D1)) D:$X>23 T Q:'DN D C1
94 G C1R
95C1 ;
96 S X=$G(^ONCO(165.5,D0,9,D1,0)) S DIWL=24,DIWR=130 D ^DIWP
97 Q
98C1R ;
99 D 0^DIWW
100 D ^DIWW
101 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-Lab Tests: "
102 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=22,J(1)=165.5116 F D1=0:0 Q:$O(^ONCO(165.5,D0,22,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D D1
103 G D1R
104D1 ;
105 S X=$G(^ONCO(165.5,D0,22,D1,0)) S DIWL=31,DIWR=130 D ^DIWP
106 Q
107D1R ;
108 D 0^DIWW
109 D ^DIWW
110 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-Scopes: "
111 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=12,J(1)=165.5106 F D1=0:0 Q:$O(^ONCO(165.5,D0,12,D1))'>0 S D1=$O(^(D1)) D:$X>27 T Q:'DN D E1
112 G E1R
113E1 ;
114 S X=$G(^ONCO(165.5,D0,12,D1,0)) S DIWL=28,DIWR=130 D ^DIWP
115 Q
116E1R ;
117 D 0^DIWW
118 D ^DIWW
119 D N:$X>4 Q:'DN W ?4 W "Text-Dx Proc-Path: "
120 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=13,J(1)=165.5107 F D1=0:0 Q:$O(^ONCO(165.5,D0,13,D1))'>0 S D1=$O(^(D1)) D:$X>25 T Q:'DN D F1
121 G F1R
122F1 ;
123 S X=$G(^ONCO(165.5,D0,13,D1,0)) S DIWL=26,DIWR=130 D ^DIWP
124 Q
125F1R ;
126 D 0^DIWW
127 D ^DIWW
128 D T Q:'DN D N W ?0 X DXS(17,9) K DIP K:DN Y W X
129 D T Q:'DN D N W ?0 S X="" D SDP^ONCOCOM W $E(X,1,80) K Y(165.5,48)
130 K Y K DIWF
131 Q
132HEAD ;
133 W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.