ONCBPC5 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder - Table V;7/22/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K ONC,TABLE,HTABLE
S TABLE("TYPE OF FIRST RECURRENCE")="TOFR"
S TABLE("DATE OF FIRST RECURRENCE")="DOFR"
S TABLE("DISTANT SITE(S) OF FIRST RECURRENCE")="DSOFR"
S HTABLE(1)="TYPE OF FIRST RECURRENCE"
S HTABLE(2)="DATE OF FIRST RECURRENCE"
S HTABLE(3)="DISTANT SITE(S) OF FIRST RECURRENCE"
S CHOICES=3
W @IOF D HEAD^ONCBPC0 W !?27,"TABLE V - FIRST RECURRENCE",!
S DIC="^ONCO(165.5,",DR="70",DA=ONCONUM,DIQ="ONC",DIQ(0)="IE" D EN^DIQ1
TOFR S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="387TYPE OF FIRST RECURRENCE/BLADDER.." D ^DIE G:$D(Y) JUMP
;W !,"DATE OF FIRST RECURRENCE..........: ",ONC(165.5,ONCONUM,70,"E")
DOFR S DR="70DATE OF FIRST RECURRENCE......... " D ^DIE G:$D(Y) JUMP
DSOFR S DIE="^ONCO(165.5,",DA=ONCONUM
W !!,"DISTANT SITE(S) OF RECURRENCE:",!
S DR="71.1 RECURRENCE SITE 1..........." D ^DIE G:$D(Y) JUMP
I X=0 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,5),U,4)=0
.W !," RECURRENCE SITE 2...........: None"
.S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
.W !," RECURRENCE SITE 3...........: None"
S DR="71.2 RECURRENCE SITE 2..........." D ^DIE G:$D(Y) JUMP
I X=0 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
.W !," RECURRENCE SITE 3...........: None"
S DR="71.3 RECURRENCE SITE 3..........." D ^DIE G:$D(Y) JUMP
PRTC 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,ONC,TABLE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBPC5 1847 printed Nov 22, 2024@17:32:15 Page 2
ONCBPC5 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder - Table V;7/22/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL ONC,TABLE,HTABLE
+3 SET TABLE("TYPE OF FIRST RECURRENCE")="TOFR"
+4 SET TABLE("DATE OF FIRST RECURRENCE")="DOFR"
+5 SET TABLE("DISTANT SITE(S) OF FIRST RECURRENCE")="DSOFR"
+6 SET HTABLE(1)="TYPE OF FIRST RECURRENCE"
+7 SET HTABLE(2)="DATE OF FIRST RECURRENCE"
+8 SET HTABLE(3)="DISTANT SITE(S) OF FIRST RECURRENCE"
+9 SET CHOICES=3
+10 WRITE @IOF
DO HEAD^ONCBPC0
WRITE !?27,"TABLE V - FIRST RECURRENCE",!
+11 SET DIC="^ONCO(165.5,"
SET DR="70"
SET DA=ONCONUM
SET DIQ="ONC"
SET DIQ(0)="IE"
DO EN^DIQ1
TOFR SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="387TYPE OF FIRST RECURRENCE/BLADDER.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 ;W !,"DATE OF FIRST RECURRENCE..........: ",ONC(165.5,ONCONUM,70,"E")
DOFR SET DR="70DATE OF FIRST RECURRENCE......... "
DO ^DIE
if $DATA(Y)
GOTO JUMP
DSOFR SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 WRITE !!,"DISTANT SITE(S) OF RECURRENCE:",!
+2 SET DR="71.1 RECURRENCE SITE 1..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 IF X=0
Begin DoDot:1
+4 SET $PIECE(^ONCO(165.5,ONCONUM,5),U,4)=0
+5 WRITE !," RECURRENCE SITE 2...........: None"
+6 SET $PIECE(^ONCO(165.5,ONCONUM,5),U,5)=0
+7 WRITE !," RECURRENCE SITE 3...........: None"
End DoDot:1
GOTO PRTC
+8 SET DR="71.2 RECURRENCE SITE 2..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 IF X=0
Begin DoDot:1
+10 SET $PIECE(^ONCO(165.5,ONCONUM,5),U,5)=0
+11 WRITE !," RECURRENCE SITE 3...........: None"
End DoDot:1
GOTO PRTC
+12 SET DR="71.3 RECURRENCE SITE 3..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PRTC WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+1 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,ONC,TABLE
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT