ONCIPC6 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;04/28/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Status at Last Contact
K TABLE,HTABLE
S TABLE("82. DATE OF LAST CONTACT OR DEATH")="DLCOD"
S TABLE("83. VITAL STATUS")="VS"
S TABLE("84. CANCER STATUS")="CS"
S HTABLE(1)="82. DATE OF LAST CONTACT OR DEATH"
S HTABLE(2)="83. VITAL STATUS"
S HTABLE(3)="84. CANCER STATUS"
S CHOICES=3
S IE=ONCONUM
W @IOF D HEAD^ONCIPC0
W !," STATUS AT LAST CONTACT"
W !," ----------------------"
DLCOD S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
W !," 82. DATE OF LAST CONTACT OR DEATH..: ",DLC
VS S DIE="^ONCO(160,",DA=ONCONUM
S DR="15 83. VITAL STATUS..................." D ^DIE G:$D(Y) JUMP
I X=1 S $P(^ONCO(165.5,IE,7),U,14)=0
CS S CS="" I $D(^ONCO(165.5,IE,"TS","AA")) D
.S CSDAT=$O(^ONCO(165.5,IE,"TS","AA",""))
.S CSIEN=$O(^ONCO(165.5,IE,"TS","AA",CSDAT,""))
.S CSPNT=$P(^ONCO(165.5,IE,"TS",CSIEN,0),U,2)
.S CS=$P(^ONCO(164.42,CSPNT,0),U,1)
W !," 84. CANCER STATUS..................: ",CS
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 CS,CSDAT,CSIEN,CSPNT,DLC
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCIPC6 1662 printed Dec 13, 2024@02:23:25 Page 2
ONCIPC6 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;04/28/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Status at Last Contact
+3 KILL TABLE,HTABLE
+4 SET TABLE("82. DATE OF LAST CONTACT OR DEATH")="DLCOD"
+5 SET TABLE("83. VITAL STATUS")="VS"
+6 SET TABLE("84. CANCER STATUS")="CS"
+7 SET HTABLE(1)="82. DATE OF LAST CONTACT OR DEATH"
+8 SET HTABLE(2)="83. VITAL STATUS"
+9 SET HTABLE(3)="84. CANCER STATUS"
+10 SET CHOICES=3
+11 SET IE=ONCONUM
+12 WRITE @IOF
DO HEAD^ONCIPC0
+13 WRITE !," STATUS AT LAST CONTACT"
+14 WRITE !," ----------------------"
DLCOD SET DLC=""
IF $DATA(^ONCO(160,ONCOPA,"F","B"))
SET DLC=$ORDER(^ONCO(160,ONCOPA,"F","B",""),-1)
+1 IF DLC'=""
SET Y=DLC
DO DATEOT^ONCOPCE
SET DLC=Y
+2 WRITE !," 82. DATE OF LAST CONTACT OR DEATH..: ",DLC
VS SET DIE="^ONCO(160,"
SET DA=ONCONUM
+1 SET DR="15 83. VITAL STATUS..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 IF X=1
SET $PIECE(^ONCO(165.5,IE,7),U,14)=0
CS SET CS=""
IF $DATA(^ONCO(165.5,IE,"TS","AA"))
Begin DoDot:1
+1 SET CSDAT=$ORDER(^ONCO(165.5,IE,"TS","AA",""))
+2 SET CSIEN=$ORDER(^ONCO(165.5,IE,"TS","AA",CSDAT,""))
+3 SET CSPNT=$PIECE(^ONCO(165.5,IE,"TS",CSIEN,0),U,2)
+4 SET CS=$PIECE(^ONCO(164.42,CSPNT,0),U,1)
End DoDot:1
+5 WRITE !," 84. CANCER STATUS..................: ",CS
+6 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+7 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,TABLE
+1 KILL CS,CSDAT,CSIEN,CSPNT,DLC
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT