source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCBRP2.m@ 1071

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

initial load of FOIAVistA 6/30/08 version

File size: 8.7 KB
Line 
1ONCBRP2 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table II ;6/1/98
2 ;;2.11;ONCOLOGY;**18,25**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("16. CLASS OF CASE")="COC"
5 S TABLE("17. DIAGNOSTIC EVALUATION")="DE"
6 S TABLE("18. (F) TYPE OF MAMMOGRAM")="TM"
7 S TABLE("19. (F) PRESENTATION OF MOST DEFINITIVE MAMMOGRAM")="PMDM"
8 S TABLE("20. DATE OF INITIAL DIAGNOSIS")="DID"
9 S TABLE("21. DATE OF PATHOLOGIC DIAGNOSIS")="DPD"
10 S TABLE("22. PRIMARY SITE (ICD-O-2)")="PS"
11 S TABLE("23. HISTOLOGY (ICD-O-2)")="HIST"
12 S TABLE("24. BEHAVIOR CODE(ICD-O-2)")="BC"
13 S TABLE("25. IF INVASIVE DUCTAL CARCINOMA REPORTED, IS DCIS ALSO PRESENT")="IDCR"
14 S TABLE("26. GRADE")="GRADE"
15 S TABLE("27. ARCHITECTURE PATTERN IF DCIS IS PRESENT")="APIDIP"
16 S TABLE("28. NUCLEAR GRADE IF DCIS IS PRESENT")="NGIDIP"
17 S TABLE("29. DIAGNOSTIC CONFIRMATION")="DC"
18 S TABLE("30. (M) LEVEL OF INVOLVEMENT")="LI"
19 S TABLE("31. BIOPSY PROCEDURE")="BP"
20 S TABLE("32. GUIDANCE")="G"
21 S TABLE("33. PALPABILITY OF PRIMARY")="PP"
22 S TABLE("34. FIRST DETECTED BY")="FDB"
23 S HTABLE(1)="16. CLASS OF CASE"
24 S HTABLE(2)="17. DIAGNOSTIC EVALUATION"
25 S HTABLE(3)="18. (F) TYPE OF MAMMOGRAM"
26 S HTABLE(4)="19. (F) PRESENTATION OF MOST DEFINITIVE MAMMOGRAM"
27 S HTABLE(5)="20. DATE OF INITIAL DIAGNOSIS"
28 S HTABLE(6)="21. DATE OF PATHOLOGIC DIAGNOSIS"
29 S HTABLE(7)="22. PRIMARY SITE (ICD-O-2)"
30 S HTABLE(8)="23. HISTOLOGY (ICD-O-2)"
31 S HTABLE(9)="24. BEHAVIOR CODE (ICD-O-2)"
32 S HTABLE(10)="25. IF INVASIVE DUCTAL CARCINOMA REPORTED, IS DCIS ALSO PRESENT"
33 S HTABLE(11)="26. GRADE"
34 S HTABLE(12)="27. ARCHITECTURE PATTERN IF DCIS IS PRESENT"
35 S HTABLE(13)="28. NUCLEAR GRADE IF DCIS IS PRESENT"
36 S HTABLE(14)="29. DIAGNOSTIC CONFIRMATION"
37 S HTABLE(15)="30. (M) LEVEL OF INVOLVEMENT"
38 S HTABLE(16)="31. BIOPSY PROCEDURE"
39 S HTABLE(17)="32. GUIDANCE"
40 S HTABLE(18)="33. PALPABILITY OF PRIMARY"
41 S HTABLE(19)="34. FIRST DETECTED BY"
42 S CHOICES=19
43 K DIQ S DIC="^ONCO(165.5,",DR=".04;20.1;22;26",DA=ONCONUM,DIQ="ONC"
44 S DIQ(0)="IE" D EN^DIQ1
45 S DIE="^ONCO(165.5,",DA=ONCONUM
46 W @IOF D HEAD^ONCBRP0
47 W !," TABLE II - INITIAL DIAGNOSIS"
48 W !," ----------------------------"
49COC W !," 16. CLASS OF CASE.................: ",ONC(165.5,ONCONUM,.04,"E")
50DE W !!," 17. DIAGNOSTIC EVALUATION:",!
51 I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D G U
52 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,27)=""
53 .W !," MAMMOGRAM (M).................: (Data Item for Males Only)"
54 S DR="926 MAMMOGRAM (M)................." D ^DIE G:$D(Y) JUMP
55U S DR="927 ULTRASOUND (M)(F)............." D ^DIE G:$D(Y) JUMP
56 W !
57TM W !," 18. (F) TYPE OF MAMMOGRAM:",!
58 I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D W ! G PMDM
59 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,19)=""
60 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,20)=""
61 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,21)=""
62 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,22)=""
63 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,23)=""
64 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,24)=""
65 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,25)=""
66 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,26)=""
67 .W !," A. MAMMOGRAM GIVEN, TYPE UNKNOWN.: (Data Item for Females Only)"
68 .W !," DATE..........................:"
69 .W !," B. SCREENING MAMMOGRAM...........: (Data Item for Females Only)"
70 .W !," DATE..........................:"
71 .W !," C. DIAGNOSTIC MAMMOGRAM..........: (Data Item for Females Only)"
72 .W !," DATE..........................:"
73 .W !," D. MAGNIFICATION MAMMOGRAM.......: (Data Item for Females Only)"
74 .W !," DATE..........................:"
75 S DR="918 A. MAMMOGRAM GIVEN, TYPE UNKNOWN." D ^DIE G:$D(Y) JUMP
76 I $G(X)="" D G SM
77 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,20)=""
78 .W !," DATE..........................:"
79 I $G(X)=0 D G SM
80 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,20)="0000000"
81 .W !," DATE..........................: 00/00/0000"
82 I $G(X)=9 D G SM
83 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,20)=9999999
84 .W !," DATE..........................: 99/99/9999"
85 S DR="919 DATE.........................." D ^DIE G:$D(Y) JUMP
86SM S DR="920 B. SCREENING MAMMOGRAM..........." D ^DIE G:$D(Y) JUMP
87 I $G(X)="" D G DM
88 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,22)=""
89 .W !," DATE..........................:"
90 I $G(X)=0 D G DM
91 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,22)="0000000"
92 .W !," DATE..........................: 00/00/0000"
93 I $G(X)=9 D G DM
94 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,22)=9999999
95 .W !," DATE..........................: 99/99/9999"
96 S DR="921 DATE.........................." D ^DIE G:$D(Y) JUMP
97DM S DR="922 C. DIAGNOSTIC MAMMOGRAM.........." D ^DIE G:$D(Y) JUMP
98 I $G(X)="" D G MM
99 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,24)=""
100 .W !," DATE..........................:"
101 I $G(X)=0 D G MM
102 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,24)="0000000"
103 .W !," DATE..........................: 00/00/0000"
104 I $G(X)=9 D G MM
105 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,24)=9999999
106 .W !," DATE..........................: 99/99/9999"
107 S DR="923 DATE.........................." D ^DIE G:$D(Y) JUMP
108MM S DR="924 D. MAGNIFICATION MAMMOGRAM......." D ^DIE G:$D(Y) JUMP
109 I $G(X)="" D W ! G PMDM
110 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,26)=""
111 .W !," DATE..........................:"
112 I $G(X)=0 D W ! G PMDM
113 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,26)="0000000"
114 .W !," DATE..........................: 00/00/0000"
115 I $G(X)=9 D W ! G PMDM
116 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,26)=9999999
117 .W !," DATE..........................: 99/99/9999"
118 S DR="925 DATE.........................." D ^DIE G:$D(Y) JUMP
119 W !
120PMDM I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D W ! G DID
121 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,29)=""
122 .W !," 19. (F) PRESENTATION OF MOST"
123 .W !," DEFINITIVE MAMMOGRAM..........: (Data Item for Females Only)"
124 S DR="928 19. (F) PRESENTATION OF MOST DEFINITIVE MAMMOGRAM.........." D ^DIE G:$D(Y) JUMP
125DID S DID=$E(DATEDX,4,5)_"/"_$E(DATEDX,6,7)_"/"_(1700+$E(DATEDX,1,3))
126 W !," 20. DATE OF INITIAL DIAGNOSIS.....: ",DID
127DPD S DR="929 21. DATE OF PATHOLOGIC DIAGNOSIS.." D ^DIE G:$D(Y) JUMP
128PS W !," 22. PRIMARY SITE (ICD-O-2)........: ",ONC(165.5,ONCONUM,20.1,"E")
129HIST W !," 23. HISTOLOGY (ICD-O-2)...........: ",$E(ONC(165.5,ONCONUM,22,"I"),1,4)
130BC W !," 24. BEHAVIOR CODE (ICD-O-2).......: ",$E(ONC(165.5,ONCONUM,22,"I"),5)
131IDCR I IDC=0 D G GRADE
132 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,31)=8
133 .W !," 25. IF INVASIVE DUCTAL CARCINOMA"
134 .W !," REPORTED, IS DCIS ALSO PRESENT: NA, reported tumor not invasive DC"
135 S DR="930 25. IF INVASIVE DUCTAL CARCINOMA REPORTED, IS DCIS ALSO PRESENT" D ^DIE G:$D(Y) JUMP
136GRADE S DR="24 26. GRADE........................." D ^DIE G:$D(Y) JUMP
137APIDIP S DR="931 27. ARCHITECTURE PATTERN IF DCIS IS PRESENT...................." D ^DIE G:$D(Y) JUMP
138NGIDIP S DR="932 28. NUCLEAR GRADE IF DCIS IS PRESENT......................." D ^DIE G:$D(Y) JUMP
139DC W !," 26. DIAGNOSTIC CONFIRMATION.......: ",ONC(165.5,ONCONUM,26,"E")
140LI W !!," 30. (M) LEVEL OF INVOLVEMENT:",!
141 I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D W ! G BP
142 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,34)=""
143 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,35)=""
144 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,36)=""
145 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,37)=""
146 .W !," SKIN..........................: (Data Item for Males Only)"
147 .W !," CHEST WALL....................: (Data Item for Males Only)"
148 .W !," PECTORAL MUSCLES..............: (Data Item for Males Only)"
149 .W !," DERMAL/LYMPHATIC..............: (Data Item for Males Only)"
150 S DR="933 SKIN.........................." D ^DIE G:$D(Y) JUMP
151 S DR="934 CHEST WALL...................." D ^DIE G:$D(Y) JUMP
152 S DR="935 PECTORAL MUSCLES.............." D ^DIE G:$D(Y) JUMP
153 S DR="936 DERMAL/LYMPHATIC.............." D ^DIE G:$D(Y) JUMP
154 W !
155BP W !," DIAGNOSTIC AND STAGING PROCEDURES",!
156 S DR="141 31. BIOSPY PROCEDURE.............." D ^DIE G:$D(Y) JUMP
157 I $G(X)=1 D G PP
158 .S $P(^ONCO(165.5,ONCONUM,2.1),U,15)=1
159 .W !," 32. GUIDANCE......................: Not guided, no biopsy"
160 I $G(X)=6 D G PP
161 .S $P(^ONCO(165.5,ONCONUM,2.1),U,15)=9
162 .W !," 32. GUIDANCE......................: Unknown/death cert only"
163GOBTP S DR="142 32. GUIDANCE......................" D ^DIE G:$D(Y) JUMP
164PP S DR="143 33. PALPABILITY OF PRIMARY........" D ^DIE G:$D(Y) JUMP
165FDB S DR="144 34. FIRST DETECTED BY............." D ^DIE G:$D(Y) JUMP
166PRTC W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
167 G EXIT
168JUMP ;Jump to prompts
169 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
170 I X["?" D G JUMP
171 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
172 I '$D(TABLE(X)) S:X?1.2N X=X_"." S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
173 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
174 S X=TABLE(X)
175 G @X
176EXIT K CHOICES,HTABLE,TABLE
177 K DID,NCDS,CDS,PP,LP,GS,PIECE
178 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
179 Q
Note: See TracBrowser for help on using the repository browser.