ONCHPC5 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/12/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Recurrence
K TABLE,HTABLE
S TABLE("55. DATE OF FIRST RECURRENCE")="DFR"
S TABLE("56. TYPE OF FIRST RECURRENCE")="TFR"
S HTABLE(1)="55. TYPE OF FIRST RECURRENCE"
S HTABLE(2)="56. DATE OF FIRST RECURRENCE"
S CHOICES=2
W @IOF D HEAD^ONCHPC0
W !," RECURRENCE"
W !," ----------"
S DIE="^ONCO(165.5,",DA=ONCONUM,DR=70
DFR S DR="70 55. DATE OF FIRST RECURRENCE" D ^DIE G:$D(Y) JUMP
TFR S DR="71 56. TYPE OF FIRST 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,PIECE,TABLE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCHPC5 1097 printed Dec 13, 2024@02:23:11 Page 2
ONCHPC5 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/12/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Recurrence
+3 KILL TABLE,HTABLE
+4 SET TABLE("55. DATE OF FIRST RECURRENCE")="DFR"
+5 SET TABLE("56. TYPE OF FIRST RECURRENCE")="TFR"
+6 SET HTABLE(1)="55. TYPE OF FIRST RECURRENCE"
+7 SET HTABLE(2)="56. DATE OF FIRST RECURRENCE"
+8 SET CHOICES=2
+9 WRITE @IOF
DO HEAD^ONCHPC0
+10 WRITE !," RECURRENCE"
+11 WRITE !," ----------"
+12 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
SET DR=70
DFR SET DR="70 55. DATE OF FIRST RECURRENCE"
DO ^DIE
if $DATA(Y)
GOTO JUMP
TFR SET DR="71 56. TYPE OF FIRST 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
+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 CHOICES,HTABLE,PIECE,TABLE
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT