1 | ONCP2P6 ;HINES CIOFO/GWB - 1998 Prostate Cancer Study - Table VI ;6/1/98
|
---|
2 | ;;2.11;ONCOLOGY;**18,22,24**;Mar 07, 1995
|
---|
3 | K TABLE,HTABLE
|
---|
4 | S TABLE("66. DATE OF LAST CONTACT OR DEATH")="DLCOD"
|
---|
5 | S TABLE("67. VITAL STATUS")="VS"
|
---|
6 | S TABLE("68. CANCER STATUS")="CS"
|
---|
7 | S TABLE("69. COMPLETED BY")="CB"
|
---|
8 | S TABLE("70. CLINICAL REVIEW BY CA COMMITTEE")="CRBCC"
|
---|
9 | S HTABLE(1)="66. DATE OF LAST CONTACT OR DEATH"
|
---|
10 | S HTABLE(2)="67. VITAL STATUS"
|
---|
11 | S HTABLE(3)="68. CANCER STATUS"
|
---|
12 | S HTABLE(4)="69. COMPLETED BY"
|
---|
13 | S HTABLE(5)="70. CLINICAL REVIEW BY CA COMMITTEE"
|
---|
14 | S CHOICES=5
|
---|
15 | W @IOF D HEAD^ONCP2P0
|
---|
16 | W !," TABLE VI - STATUS AT LAST CONTACT"
|
---|
17 | W !," ---------------------------------"
|
---|
18 | DLCOD S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
|
---|
19 | I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
|
---|
20 | W !," 66. DATE OF LAST CONTACT OR DEATH..: ",DLC
|
---|
21 | VS S DIE="^ONCO(160,",DA=ONCONUM
|
---|
22 | S DR="15 67. VITAL STATUS..................." D ^DIE G:$D(Y) JUMP
|
---|
23 | I X=1 S $P(^ONCO(165.5,ONCONUM,7),U,14)=0
|
---|
24 | CS S CS="" I $D(^ONCO(165.5,ONCONUM,"TS","AA")) D
|
---|
25 | .S CSDAT=$O(^ONCO(165.5,ONCONUM,"TS","AA",""))
|
---|
26 | .S CSIEN=$O(^ONCO(165.5,ONCONUM,"TS","AA",CSDAT,""))
|
---|
27 | .S CSPNT=$P(^ONCO(165.5,ONCONUM,"TS",CSIEN,0),U,2)
|
---|
28 | .S:CSPNT'="" CS=$P(^ONCO(164.42,CSPNT,0),U,1)
|
---|
29 | W !," 68. CANCER STATUS..................: ",CS
|
---|
30 | CB S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
31 | S DR="81 69. COMPLETED BY..................." D ^DIE G:$D(Y) JUMP
|
---|
32 | CRBCC S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
33 | S DR="82 70. CLINICAL REVIEW BY CA COMMITTEE" D ^DIE G:$D(Y) JUMP
|
---|
34 | W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
|
---|
35 | G EXIT
|
---|
36 | JUMP ;Jump to prompts
|
---|
37 | S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
|
---|
38 | I X["?" D G JUMP
|
---|
39 | .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
40 | 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
|
---|
41 | .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
42 | S X=TABLE(X)
|
---|
43 | G @X
|
---|
44 | EXIT K CHOICES,HTABLE,TABLE
|
---|
45 | K CS,CSDAT,CSIEN,CSPNT,DLC
|
---|
46 | K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
|
---|
47 | Q
|
---|