source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCTPC6.m@ 1607

Last change on this file since 1607 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1ONCTPC6 ;HIRMFO/GWB - PCE Study of Thyroid Cancer - Table VI;7/22/96
2 ;;2.11;ONCOLOGY;**6,24**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("DATE OF LAST CONTACT OR DEATH")="DLC"
5 S TABLE("VITAL STATUS")="VS"
6 S TABLE("CANCER STATUS")="CS"
7 S TABLE("AUTOPSY")="A"
8 S TABLE("COMPLETED BY")="CB"
9 S TABLE("REVIEWED BY CANCER COMMITTEE")="RBCC"
10 S HTABLE(1)="DATE OF LAST CONTACT OR DEATH"
11 S HTABLE(2)="VITAL STATUS"
12 S HTABLE(3)="CANCER STATUS"
13 S HTABLE(4)="AUTOPSY"
14 S HTABLE(5)="COMPLETED BY"
15 S HTABLE(6)="REVIEWED BY CANCER COMMITTEE"
16 S CHOICES=6
17 W @IOF D HEAD^ONCTPC0 W !?23,"TABLE VI - STATUS AT LAST CONTACT",!
18DLC 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 !,"DATE OF LAST CONTACT OR DEATH: ",DLC
21VS S DIE="^ONCO(160,",DA=ONCONUM
22 S DR="15VITAL STATUS................." D ^DIE G:$D(Y) JUMP
23 I X=1 S $P(^ONCO(165.5,ONCONUM,7),U,14)=0
24CS 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 CS=$P(^ONCO(164.42,CSPNT,0),U,1)
29 W !,"CANCER STATUS................: ",CS
30A S DIE="^ONCO(160,",DA=ONCONUM
31 S DR="22.9AUTOPSY......................" D ^DIE G:$D(Y) JUMP
32CB S DIE="^ONCO(165.5,",DA=ONCONUM
33 S DR="81COMPLETED BY................." D ^DIE G:$D(Y) JUMP
34RBCC S DIE="^ONCO(165.5,",DA=ONCONUM
35 S DR="82REVIEWED BY CANCER COMMITTEE." D ^DIE G:$D(Y) JUMP
36 W ! K DIR S DIR(0)="E" D ^DIR
37 G EXIT
38JUMP ;Jump to prompts
39 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
40 I X["?" D G JUMP
41 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
42 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
43 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
44 S X=TABLE(X)
45 G @X
46EXIT K CHOICES,HTABLE,TABLE
47 K CS,CSDAT,CSIEN,CSPNT,DLC
48 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
49 Q
Note: See TracBrowser for help on using the repository browser.