ONCBRP4 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table IV ;6/1/98
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("40. SIZE OF TUMOR (mm)")="ST"
S TABLE("41. SIZE OF DCIS TUMOR (mm)")="SDCIST"
S TABLE("42. REGIONAL NODES EXAMINED")="RNE"
S TABLE("43. REGIONAL NODES POSITIVE")="RNP"
S TABLE("44. SENTINEL NODE BIOSPY")="SNB"
S TABLE("45. NUMBER OF SENTINEL NODES EXAMINED")="NSNE"
S TABLE("46. NUMBER OF SENTINEL NODES POSITIVE")="NSNP"
S TABLE("47. SENTINEL NODE DETECTED BY")="NSDB"
S TABLE("48. AJCC CLINICAL STAGE (cTNM)")="ACS"
S TABLE("49. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
S TABLE("50. STAGED BY")="SB"
S HTABLE(1)="40. SIZE OF TUMOR (mm)"
S HTABLE(2)="41. SIZE OF DCIS TUMOR (mm)"
S HTABLE(3)="42. REGIONAL NODES EXAMINED"
S HTABLE(4)="43. REGIONAL NODES POSITIVE"
S HTABLE(5)="44. SENTINEL NODE BIOSPY"
S HTABLE(6)="45. NUMBER OF SENTINEL NODES EXAMINED"
S HTABLE(7)="46. NUMBER OF SENTINEL NODES POSITIVE"
S HTABLE(8)="47. SENTINEL NODE DETECTED BY"
S HTABLE(9)="48. AJCC CLINICAL STAGE (cTNM)"
S HTABLE(10)="49. AJCC PATHOLOGIC STAGE (pTNM)"
S HTABLE(11)="50. STAGED BY"
S CHOICES=11
W @IOF D HEAD^ONCBRP0
W !," TABLE IV - EXTENT OF DISEASE AND AJCC STAGE"
W !," -------------------------------------------"
S DIE="^ONCO(165.5,",DA=ONCONUM
ST S DR="29 40. SIZE OF TUMOR (mm)......." D ^DIE G:$D(Y) JUMP
SDCIST I IDC=0 D W ! G RNE
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,43)=888
.W !," 41. SIZE OF DCIS TUMOR (mm)..: NA, reported tumor not invasive DC"
S DR="942 41. SIZE OF DCIS TUMOR (mm).." D ^DIE G:$D(Y) JUMP
RNE S DR="33 42. REGIONAL NODES EXAMINED.." D ^DIE G:$D(Y) JUMP
RNP S DR="32 43. REGIONAL NODES POSITIVE.." D ^DIE G:$D(Y) JUMP
SNB W !!," SENTINEL NODES",!
S DR="943 44. SENTINEL NODE BIOPSY....." D ^DIE G:$D(Y) JUMP
I $G(X)=0 D G ACS
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=0
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=7
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=8
.W !," 45. NUMBER OF SENTINEL NODES"
.W !," EXAMINED.................: None"
.W !," 46. NUMBER OF SENTINEL NODES"
.W !," POSITIVE.................: None examined"
.W !," 47. SENTINEL NODE DETECTED BY: NA, not done"
I $G(X)=9 D G ACS
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=9
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=9
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=9
.W !," 45. NUMBER OF SENTINEL NODES"
.W !," EXAMINED.................: Unknown if examined"
.W !," 46. NUMBER OF SENTINEL NODES"
.W !," POSITIVE.................: Unknown if positive"
.W !," 47. SENTINEL NODE DETECTED BY: Method unknown"
NSNE S DR="944 45. NUMBER OF SENTINEL NODES EXAMINED................." D ^DIE G:$D(Y) JUMP
NSNP S DR="945 46. NUMBER OF SENTINEL NODES POSITIVE................." D ^DIE G:$D(Y) JUMP
S DR="946 47. SENTINEL NODE DETECTED BY" D ^DIE G:$D(Y) JUMP
ACS W !!," 48. AJCC CLINICAL STAGE (cTNM):",!
CTCODE S DR="37.1 T-CODE..................." D ^DIE G:$D(Y) JUMP
D CN1^ONCOTN,CN2^ONCOTN
CNCODE S DR="37.2 N-CODE..................." D ^DIE G:$D(Y) JUMP
CMCODE S DR="37.3 M-CODE..................." D ^DIE G:$D(Y) JUMP
I '$D(SKAJCC) D CN1^ONCOTN
S STGIND="C" D ES^ONCOTN
APS W !," 49. AJCC PATHOLOGIC STAGE (pTNM):",!
PTCODE S DR="85 T-CODE..................." D ^DIE G:$D(Y) JUMP
D CN3^ONCOTN,CN4^ONCOTN
PNCODE S DR="86 N-CODE..................." D ^DIE G:$D(Y) JUMP
PMCODE S DR="87 M-CODE..................." D ^DIE G:$D(Y) JUMP
I '$D(SKAJCC) D CN3^ONCOTN
S STGIND="P" D ES^ONCOTN
SB W !," 50. STAGED BY:",!
CSB S DR="19 CLINICAL STAGE..........." D ^DIE G:$D(Y) JUMP
PSB S DR="89 PATHOLOGIC STAGE........." D ^DIE G:$D(Y) JUMP
W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
G EXIT
JUMP ;Jump to prompts
S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
I X["?" D G JUMP
.W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
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
.W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
S X=TABLE(X)
G @X
EXIT K HTABLE,TABLE,CHOICES
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBRP4 4321 printed Oct 16, 2024@18:23:01 Page 2
ONCBRP4 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table IV ;6/1/98
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("40. SIZE OF TUMOR (mm)")="ST"
+4 SET TABLE("41. SIZE OF DCIS TUMOR (mm)")="SDCIST"
+5 SET TABLE("42. REGIONAL NODES EXAMINED")="RNE"
+6 SET TABLE("43. REGIONAL NODES POSITIVE")="RNP"
+7 SET TABLE("44. SENTINEL NODE BIOSPY")="SNB"
+8 SET TABLE("45. NUMBER OF SENTINEL NODES EXAMINED")="NSNE"
+9 SET TABLE("46. NUMBER OF SENTINEL NODES POSITIVE")="NSNP"
+10 SET TABLE("47. SENTINEL NODE DETECTED BY")="NSDB"
+11 SET TABLE("48. AJCC CLINICAL STAGE (cTNM)")="ACS"
+12 SET TABLE("49. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
+13 SET TABLE("50. STAGED BY")="SB"
+14 SET HTABLE(1)="40. SIZE OF TUMOR (mm)"
+15 SET HTABLE(2)="41. SIZE OF DCIS TUMOR (mm)"
+16 SET HTABLE(3)="42. REGIONAL NODES EXAMINED"
+17 SET HTABLE(4)="43. REGIONAL NODES POSITIVE"
+18 SET HTABLE(5)="44. SENTINEL NODE BIOSPY"
+19 SET HTABLE(6)="45. NUMBER OF SENTINEL NODES EXAMINED"
+20 SET HTABLE(7)="46. NUMBER OF SENTINEL NODES POSITIVE"
+21 SET HTABLE(8)="47. SENTINEL NODE DETECTED BY"
+22 SET HTABLE(9)="48. AJCC CLINICAL STAGE (cTNM)"
+23 SET HTABLE(10)="49. AJCC PATHOLOGIC STAGE (pTNM)"
+24 SET HTABLE(11)="50. STAGED BY"
+25 SET CHOICES=11
+26 WRITE @IOF
DO HEAD^ONCBRP0
+27 WRITE !," TABLE IV - EXTENT OF DISEASE AND AJCC STAGE"
+28 WRITE !," -------------------------------------------"
+29 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
ST SET DR="29 40. SIZE OF TUMOR (mm)......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SDCIST IF IDC=0
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,43)=888
+2 WRITE !," 41. SIZE OF DCIS TUMOR (mm)..: NA, reported tumor not invasive DC"
End DoDot:1
WRITE !
GOTO RNE
+3 SET DR="942 41. SIZE OF DCIS TUMOR (mm).."
DO ^DIE
if $DATA(Y)
GOTO JUMP
RNE SET DR="33 42. REGIONAL NODES EXAMINED.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
RNP SET DR="32 43. REGIONAL NODES POSITIVE.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SNB WRITE !!," SENTINEL NODES",!
+1 SET DR="943 44. SENTINEL NODE BIOPSY....."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 IF $GET(X)=0
Begin DoDot:1
+3 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=0
+4 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=7
+5 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=8
+6 WRITE !," 45. NUMBER OF SENTINEL NODES"
+7 WRITE !," EXAMINED.................: None"
+8 WRITE !," 46. NUMBER OF SENTINEL NODES"
+9 WRITE !," POSITIVE.................: None examined"
+10 WRITE !," 47. SENTINEL NODE DETECTED BY: NA, not done"
End DoDot:1
GOTO ACS
+11 IF $GET(X)=9
Begin DoDot:1
+12 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,45)=9
+13 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,46)=9
+14 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,47)=9
+15 WRITE !," 45. NUMBER OF SENTINEL NODES"
+16 WRITE !," EXAMINED.................: Unknown if examined"
+17 WRITE !," 46. NUMBER OF SENTINEL NODES"
+18 WRITE !," POSITIVE.................: Unknown if positive"
+19 WRITE !," 47. SENTINEL NODE DETECTED BY: Method unknown"
End DoDot:1
GOTO ACS
NSNE SET DR="944 45. NUMBER OF SENTINEL NODES EXAMINED................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
NSNP SET DR="945 46. NUMBER OF SENTINEL NODES POSITIVE................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 SET DR="946 47. SENTINEL NODE DETECTED BY"
DO ^DIE
if $DATA(Y)
GOTO JUMP
ACS WRITE !!," 48. AJCC CLINICAL STAGE (cTNM):",!
CTCODE SET DR="37.1 T-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 DO CN1^ONCOTN
DO CN2^ONCOTN
CNCODE SET DR="37.2 N-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
CMCODE SET DR="37.3 M-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 IF '$DATA(SKAJCC)
DO CN1^ONCOTN
+2 SET STGIND="C"
DO ES^ONCOTN
APS WRITE !," 49. AJCC PATHOLOGIC STAGE (pTNM):",!
PTCODE SET DR="85 T-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 DO CN3^ONCOTN
DO CN4^ONCOTN
PNCODE SET DR="86 N-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PMCODE SET DR="87 M-CODE..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 IF '$DATA(SKAJCC)
DO CN3^ONCOTN
+2 SET STGIND="P"
DO ES^ONCOTN
SB WRITE !," 50. STAGED BY:",!
CSB SET DR="19 CLINICAL STAGE..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PSB SET DR="89 PATHOLOGIC STAGE........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+2 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!," GO TO ITEM NUMBER: ",X:DTIME
IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+2 IF X["?"
Begin DoDot:1
+3 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+4 IF '$DATA(TABLE(X))
if X?1.2N
SET X=X_"."
SET XX=X
SET X=$ORDER(TABLE(X))
IF ($PIECE(X,XX,1)'="")!(X="")
WRITE *7,"??"
Begin DoDot:1
+5 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+6 SET X=TABLE(X)
+7 GOTO @X
EXIT KILL HTABLE,TABLE,CHOICES
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT