ONCPPC5 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table V;7/22/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("TYPE OF FIRST RECURRENCE")="TOFR"
S TABLE("DATE OF FIRST RECURRENCE")="DOFR"
S TABLE("METHODS USED TO DIAGNOSE FIRST RECURRENCE")="MUTDFR"
S HTABLE(1)="TYPE OF FIRST RECURRENCE"
S HTABLE(2)="DATE OF FIRST RECURRENCE"
S HTABLE(3)="METHODS USED TO DIAGNOSE FIRST RECURRENCE"
S CHOICES=3
W @IOF D HEAD^ONCPPC0 W !?27,"TABLE V - FIRST RECURRENCE",!
S DIC="^ONCO(165.5,",DR="70",DA=ONCONUM,DIQ="ONCO" D EN^DIQ1
S TOFR=""
TOFR S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="71TYPE OF FIRST RECURRENCE........" D ^DIE G:$D(Y) JUMP
S TOFR=X
DOFR S DR="70DATE OF FIRST RECURRENCE........" D ^DIE G:$D(Y) JUMP
I (TOFR=4)!(TOFR=5)!(TOFR=9) D G PRTC
.F PIECE=50:1:56 S $P(^ONCO(165.5,ONCONUM,"PRO1"),U,PIECE)=""
MUTDFR W !!,"METHODS USED TO DIAGNOSE FIRST RECURRENCE:",!
S DR="649 BACKACHE......................" D ^DIE G:$D(Y) JUMP
S DR="650 BONE SCAN....................." D ^DIE G:$D(Y) JUMP
S DR="651 LETHARGY......................" D ^DIE G:$D(Y) JUMP
S DR="652 RECTAL EXAM WITH NEEDLE BIOSPY" D ^DIE G:$D(Y) JUMP
S DR="653 TUMOR MARKER ELEVATION........" D ^DIE G:$D(Y) JUMP
S DR="654 WEIGHT LOSS..................." D ^DIE G:$D(Y) JUMP
S DR="655 OTHER........................." 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,TABLE
K PIECE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCPPC5 1843 printed Oct 16, 2024@18:27:57 Page 2
ONCPPC5 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table V;7/22/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("TYPE OF FIRST RECURRENCE")="TOFR"
+4 SET TABLE("DATE OF FIRST RECURRENCE")="DOFR"
+5 SET TABLE("METHODS USED TO DIAGNOSE FIRST RECURRENCE")="MUTDFR"
+6 SET HTABLE(1)="TYPE OF FIRST RECURRENCE"
+7 SET HTABLE(2)="DATE OF FIRST RECURRENCE"
+8 SET HTABLE(3)="METHODS USED TO DIAGNOSE FIRST RECURRENCE"
+9 SET CHOICES=3
+10 WRITE @IOF
DO HEAD^ONCPPC0
WRITE !?27,"TABLE V - FIRST RECURRENCE",!
+11 SET DIC="^ONCO(165.5,"
SET DR="70"
SET DA=ONCONUM
SET DIQ="ONCO"
DO EN^DIQ1
+12 SET TOFR=""
TOFR SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="71TYPE OF FIRST RECURRENCE........"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET TOFR=X
DOFR SET DR="70DATE OF FIRST RECURRENCE........"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 IF (TOFR=4)!(TOFR=5)!(TOFR=9)
Begin DoDot:1
+2 FOR PIECE=50:1:56
SET $PIECE(^ONCO(165.5,ONCONUM,"PRO1"),U,PIECE)=""
End DoDot:1
GOTO PRTC
MUTDFR WRITE !!,"METHODS USED TO DIAGNOSE FIRST RECURRENCE:",!
+1 SET DR="649 BACKACHE......................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="650 BONE SCAN....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="651 LETHARGY......................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="652 RECTAL EXAM WITH NEEDLE BIOSPY"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="653 TUMOR MARKER ELEVATION........"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="654 WEIGHT LOSS..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="655 OTHER........................."
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,TABLE
+1 KILL PIECE
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT