ONCHPC3 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/10/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Stage of Disease at Diagnosis
K TABLE,HTABLE
S TABLE("23. SIZE OF TUMOR")="ST"
S TABLE("24. REGIONAL NODES EXAMINED")="RNE"
S TABLE("25. REGIONAL NODES POSITIVE")="RNP"
S TABLE("26. AJCC CLINICAL STAGE (cTNM)")="ACS"
S TABLE("27. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
S TABLE("28. STAGED BY")="SB"
S HTABLE(1)="23. SIZE OF TUMOR"
S HTABLE(2)="24. REGIONAL NODES EXAMINED"
S HTABLE(3)="25. REGIONAL NODES POSITIVE"
S HTABLE(4)="26. AJCC CLINICAL STAGE (cTNM)"
S HTABLE(5)="27. AJCC PATHOLOGIC STAGE (pTNM)"
S HTABLE(6)="28. STAGED BY"
S CHOICES=6
W @IOF D HEAD^ONCHPC0
W !," STAGE OF DISEASE AT DIAGNOSIS"
W !," -----------------------------"
S DIE="^ONCO(165.5,",DA=ONCONUM
ST S DR="29 23. SIZE OF TUMOR ................" D ^DIE G:$D(Y) JUMP
RNE S DR="33 24. REGIONAL NODES EXAMINED......." D ^DIE G:$D(Y) JUMP
RNP S DR="32 25. REGIONAL NODES POSITIVE......." D ^DIE G:$D(Y) JUMP
ACS W !!," 26. AJCC CLINICAL STAGE (cTNM):"
S DR="37.1 AJCC CLINICAL T.............." D ^DIE G:$D(Y) JUMP
D CN1^ONCOTN,CN2^ONCOTN
S DR="37.2 AJCC CLINICAL N.............." D ^DIE G:$D(Y) JUMP
S DR="37.3 AJCC CLINICAL M.............." D ^DIE G:$D(Y) JUMP
I '$D(SKAJCC) D CN1^ONCOTN
S STGIND="C" D ES^ONCOTN
APS W !," 27. AJCC PATHOLOGIC STAGE (pTNM):",!
S DR="85 AJCC PATHOLOGIC T............" D ^DIE G:$D(Y) JUMP
D CN3^ONCOTN,CN4^ONCOTN
S DR="86 AJCC PATHOLOGIC N............" D ^DIE G:$D(Y) JUMP
S DR="87 AJCC PATHOLOGIC M............" D ^DIE G:$D(Y) JUMP
I '$D(SKAJCC) D CN3^ONCOTN
S STGIND="P" D ES^ONCOTN
SB W !," 28. STAGED BY:"
S DR="19 CLINICALLY STAGED BY........." D ^DIE G:$D(Y) JUMP
S DR="89 PATHOLOGICALLY STAGED BY....." 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[HONCHPC3 2370 printed Oct 16, 2024@18:23:48 Page 2
ONCHPC3 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/10/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Stage of Disease at Diagnosis
+3 KILL TABLE,HTABLE
+4 SET TABLE("23. SIZE OF TUMOR")="ST"
+5 SET TABLE("24. REGIONAL NODES EXAMINED")="RNE"
+6 SET TABLE("25. REGIONAL NODES POSITIVE")="RNP"
+7 SET TABLE("26. AJCC CLINICAL STAGE (cTNM)")="ACS"
+8 SET TABLE("27. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
+9 SET TABLE("28. STAGED BY")="SB"
+10 SET HTABLE(1)="23. SIZE OF TUMOR"
+11 SET HTABLE(2)="24. REGIONAL NODES EXAMINED"
+12 SET HTABLE(3)="25. REGIONAL NODES POSITIVE"
+13 SET HTABLE(4)="26. AJCC CLINICAL STAGE (cTNM)"
+14 SET HTABLE(5)="27. AJCC PATHOLOGIC STAGE (pTNM)"
+15 SET HTABLE(6)="28. STAGED BY"
+16 SET CHOICES=6
+17 WRITE @IOF
DO HEAD^ONCHPC0
+18 WRITE !," STAGE OF DISEASE AT DIAGNOSIS"
+19 WRITE !," -----------------------------"
+20 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
ST SET DR="29 23. SIZE OF TUMOR ................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
RNE SET DR="33 24. REGIONAL NODES EXAMINED......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
RNP SET DR="32 25. REGIONAL NODES POSITIVE......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
ACS WRITE !!," 26. AJCC CLINICAL STAGE (cTNM):"
+1 SET DR="37.1 AJCC CLINICAL T.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 DO CN1^ONCOTN
DO CN2^ONCOTN
+3 SET DR="37.2 AJCC CLINICAL N.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="37.3 AJCC CLINICAL M.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 IF '$DATA(SKAJCC)
DO CN1^ONCOTN
+6 SET STGIND="C"
DO ES^ONCOTN
APS WRITE !," 27. AJCC PATHOLOGIC STAGE (pTNM):",!
+1 SET DR="85 AJCC PATHOLOGIC T............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 DO CN3^ONCOTN
DO CN4^ONCOTN
+3 SET DR="86 AJCC PATHOLOGIC N............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="87 AJCC PATHOLOGIC M............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 IF '$DATA(SKAJCC)
DO CN3^ONCOTN
+6 SET STGIND="P"
DO ES^ONCOTN
SB WRITE !," 28. STAGED BY:"
+1 SET DR="19 CLINICALLY STAGED BY........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="89 PATHOLOGICALLY STAGED BY....."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+4 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!," GO TO ITEM NUMBER: ",X:DTIME
+2 IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+3 IF X["?"
Begin DoDot:1
+4 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+5 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
+6 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+7 SET X=TABLE(X)
+8 GOTO @X
EXIT KILL HTABLE,TABLE,CHOICES
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT