ONCMPC5 ;HINES CIOFO/GWB - 199 Melanoma Study - Table VI ; 01/27/99
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("77. DATE OF FIRST RECURRENCE")="DOFR"
S TABLE("78. TYPE OF FIRST RECURRENCE")="TOFR"
S TABLE("79. OTHER TYPE OF FIRST RECURRENCE")="OTOFR"
S HTABLE(1)="77. TYPE OF FIRST RECURRENCE"
S HTABLE(2)="78. DATE OF FIRST RECURRENCE"
S HTABLE(3)="79. OTHER TYPE OF FIRST RECURRENCE"
S CHOICES=3
W @IOF D HEAD^ONCMPC0
W !," TABLE V - FIRST RECURRENCE"
W !," --------------------------"
S DIC="^ONCO(165.5,",DR="70",DA=ONCONUM,DIQ="ONCO" D EN^DIQ1
S DIE="^ONCO(165.5,",DA=ONCONUM
DOFR S DR="70 77. DATE OF FIRST RECURRENCE......" D ^DIE G:$D(Y) JUMP
TOFR S DR="71 78. TYPE OF FIRST RECURRENCE......" D ^DIE G:$D(Y) JUMP
OTOFR S DR="71.4 79. OTHER TYPE OF 1ST RECURRENCE.." D ^DIE G:$D(Y) JUMP
PRTC 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 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[HONCMPC5 1364 printed Dec 13, 2024@02:23:48 Page 2
ONCMPC5 ;HINES CIOFO/GWB - 199 Melanoma Study - Table VI ; 01/27/99
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("77. DATE OF FIRST RECURRENCE")="DOFR"
+4 SET TABLE("78. TYPE OF FIRST RECURRENCE")="TOFR"
+5 SET TABLE("79. OTHER TYPE OF FIRST RECURRENCE")="OTOFR"
+6 SET HTABLE(1)="77. TYPE OF FIRST RECURRENCE"
+7 SET HTABLE(2)="78. DATE OF FIRST RECURRENCE"
+8 SET HTABLE(3)="79. OTHER TYPE OF FIRST RECURRENCE"
+9 SET CHOICES=3
+10 WRITE @IOF
DO HEAD^ONCMPC0
+11 WRITE !," TABLE V - FIRST RECURRENCE"
+12 WRITE !," --------------------------"
+13 SET DIC="^ONCO(165.5,"
SET DR="70"
SET DA=ONCONUM
SET DIQ="ONCO"
DO EN^DIQ1
+14 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
DOFR SET DR="70 77. DATE OF FIRST RECURRENCE......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
TOFR SET DR="71 78. TYPE OF FIRST RECURRENCE......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
OTOFR SET DR="71.4 79. OTHER TYPE OF 1ST RECURRENCE.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PRTC WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+1 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 CHOICES,HTABLE,TABLE
+1 KILL PIECE
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT