source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBRP4.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.1 KB
Line 
1ONCBRP4 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table IV ;6/1/98
2 ;;2.11;ONCOLOGY;**18**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("40. SIZE OF TUMOR (mm)")="ST"
5 S TABLE("41. SIZE OF DCIS TUMOR (mm)")="SDCIST"
6 S TABLE("42. REGIONAL NODES EXAMINED")="RNE"
7 S TABLE("43. REGIONAL NODES POSITIVE")="RNP"
8 S TABLE("44. SENTINEL NODE BIOSPY")="SNB"
9 S TABLE("45. NUMBER OF SENTINEL NODES EXAMINED")="NSNE"
10 S TABLE("46. NUMBER OF SENTINEL NODES POSITIVE")="NSNP"
11 S TABLE("47. SENTINEL NODE DETECTED BY")="NSDB"
12 S TABLE("48. AJCC CLINICAL STAGE (cTNM)")="ACS"
13 S TABLE("49. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
14 S TABLE("50. STAGED BY")="SB"
15 S HTABLE(1)="40. SIZE OF TUMOR (mm)"
16 S HTABLE(2)="41. SIZE OF DCIS TUMOR (mm)"
17 S HTABLE(3)="42. REGIONAL NODES EXAMINED"
18 S HTABLE(4)="43. REGIONAL NODES POSITIVE"
19 S HTABLE(5)="44. SENTINEL NODE BIOSPY"
20 S HTABLE(6)="45. NUMBER OF SENTINEL NODES EXAMINED"
21 S HTABLE(7)="46. NUMBER OF SENTINEL NODES POSITIVE"
22 S HTABLE(8)="47. SENTINEL NODE DETECTED BY"
23 S HTABLE(9)="48. AJCC CLINICAL STAGE (cTNM)"
24 S HTABLE(10)="49. AJCC PATHOLOGIC STAGE (pTNM)"
25 S HTABLE(11)="50. STAGED BY"
26 S CHOICES=11
27 W @IOF D HEAD^ONCBRP0
28 W !," TABLE IV - EXTENT OF DISEASE AND AJCC STAGE"
29 W !," -------------------------------------------"
30 S DIE="^ONCO(165.5,",DA=ONCONUM
31ST S DR="29 40. SIZE OF TUMOR (mm)......." D ^DIE G:$D(Y) JUMP
32SDCIST I IDC=0 D W ! G RNE
33 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,43)=888
34 .W !," 41. SIZE OF DCIS TUMOR (mm)..: NA, reported tumor not invasive DC"
35 S DR="942 41. SIZE OF DCIS TUMOR (mm).." D ^DIE G:$D(Y) JUMP
36RNE S DR="33 42. REGIONAL NODES EXAMINED.." D ^DIE G:$D(Y) JUMP
37RNP S DR="32 43. REGIONAL NODES POSITIVE.." D ^DIE G:$D(Y) JUMP
38SNB W !!," SENTINEL NODES",!
39 S DR="943 44. SENTINEL NODE BIOPSY....." D ^DIE G:$D(Y) JUMP
40 I $G(X)=0 D G ACS
41 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=0
42 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=7
43 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=8
44 .W !," 45. NUMBER OF SENTINEL NODES"
45 .W !," EXAMINED.................: None"
46 .W !," 46. NUMBER OF SENTINEL NODES"
47 .W !," POSITIVE.................: None examined"
48 .W !," 47. SENTINEL NODE DETECTED BY: NA, not done"
49 I $G(X)=9 D G ACS
50 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=9
51 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=9
52 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=9
53 .W !," 45. NUMBER OF SENTINEL NODES"
54 .W !," EXAMINED.................: Unknown if examined"
55 .W !," 46. NUMBER OF SENTINEL NODES"
56 .W !," POSITIVE.................: Unknown if positive"
57 .W !," 47. SENTINEL NODE DETECTED BY: Method unknown"
58NSNE S DR="944 45. NUMBER OF SENTINEL NODES EXAMINED................." D ^DIE G:$D(Y) JUMP
59NSNP S DR="945 46. NUMBER OF SENTINEL NODES POSITIVE................." D ^DIE G:$D(Y) JUMP
60 S DR="946 47. SENTINEL NODE DETECTED BY" D ^DIE G:$D(Y) JUMP
61ACS W !!," 48. AJCC CLINICAL STAGE (cTNM):",!
62CTCODE S DR="37.1 T-CODE..................." D ^DIE G:$D(Y) JUMP
63 D CN1^ONCOTN,CN2^ONCOTN
64CNCODE S DR="37.2 N-CODE..................." D ^DIE G:$D(Y) JUMP
65CMCODE S DR="37.3 M-CODE..................." D ^DIE G:$D(Y) JUMP
66 I '$D(SKAJCC) D CN1^ONCOTN
67 S STGIND="C" D ES^ONCOTN
68APS W !," 49. AJCC PATHOLOGIC STAGE (pTNM):",!
69PTCODE S DR="85 T-CODE..................." D ^DIE G:$D(Y) JUMP
70 D CN3^ONCOTN,CN4^ONCOTN
71PNCODE S DR="86 N-CODE..................." D ^DIE G:$D(Y) JUMP
72PMCODE S DR="87 M-CODE..................." D ^DIE G:$D(Y) JUMP
73 I '$D(SKAJCC) D CN3^ONCOTN
74 S STGIND="P" D ES^ONCOTN
75SB W !," 50. STAGED BY:",!
76CSB S DR="19 CLINICAL STAGE..........." D ^DIE G:$D(Y) JUMP
77PSB S DR="89 PATHOLOGIC STAGE........." D ^DIE G:$D(Y) JUMP
78 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
79 G EXIT
80JUMP ;Jump to prompts
81 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
82 I X["?" D G JUMP
83 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
84 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
85 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
86 S X=TABLE(X)
87 G @X
88EXIT K HTABLE,TABLE,CHOICES
89 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
90 Q
Note: See TracBrowser for help on using the repository browser.