ONCPPC3 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table III;7/22/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("AJCC CLINICAL STAGE (cTNM)")="ACS"
S TABLE("CLINICAL STAGED BY")="CSB"
S TABLE("AJCC PATHOLOGIC STAGE (pTNM)")="APS"
S TABLE("PATHOLOGIC STAGED BY")="PSB"
S HTABLE(1)="AJCC CLINICAL STAGE (cTNM)"
S HTABLE(2)="CLINICAL STAGED BY"
S HTABLE(3)="AJCC PATHOLOGIC STAGE (pTNM)"
S HTABLE(4)="PATHOLOGIC STAGED BY"
S CHOICES=4
S DIE="^ONCO(165.5,",DA=ONCONUM
W @IOF D HEAD^ONCPPC0 W !?26,"TABLE III - STAGE OF DISEASE",!
ACS W !,"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
CSTAGE ;W ! S DR="38 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
CSB S DR="19 CLINICAL STAGED BY.." D ^DIE G:$D(Y) JUMP
APS W !!,"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
PSTAGE ;W ! S DR="88 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
PSB S DR="89 PATHOLOGIC STAGED BY" D ^DIE G:$D(Y) JUMP
W ! K DIR S DIR(0)="E" D ^DIR
G EXIT
JUMP ;Jump to prompts
S XX="" R !!,"GO TO: ",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 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 CHOICES,HTABLE,TABLE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCPPC3 1872 printed Oct 16, 2024@18:27:55 Page 2
ONCPPC3 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table III;7/22/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("AJCC CLINICAL STAGE (cTNM)")="ACS"
+4 SET TABLE("CLINICAL STAGED BY")="CSB"
+5 SET TABLE("AJCC PATHOLOGIC STAGE (pTNM)")="APS"
+6 SET TABLE("PATHOLOGIC STAGED BY")="PSB"
+7 SET HTABLE(1)="AJCC CLINICAL STAGE (cTNM)"
+8 SET HTABLE(2)="CLINICAL STAGED BY"
+9 SET HTABLE(3)="AJCC PATHOLOGIC STAGE (pTNM)"
+10 SET HTABLE(4)="PATHOLOGIC STAGED BY"
+11 SET CHOICES=4
+12 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+13 WRITE @IOF
DO HEAD^ONCPPC0
WRITE !?26,"TABLE III - STAGE OF DISEASE",!
ACS WRITE !,"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
CSTAGE ;W ! S DR="38 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
CSB SET DR="19 CLINICAL STAGED BY.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
APS WRITE !!,"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
PSTAGE ;W ! S DR="88 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
PSB SET DR="89 PATHOLOGIC STAGED BY"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+2 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!,"GO TO: ",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))
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 CHOICES,HTABLE,TABLE
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT