source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCBRP7.m@ 1671

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1ONCBRP7 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table VII ;6/1/98
2 ;;2.11;ONCOLOGY;**18**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("83. DATE OF LAST CONTACT OR DEATH")="DLCOD"
5 S TABLE("84. VITAL STATUS")="VS"
6 S TABLE("85. CANCER STATUS")="CS"
7 S TABLE("86. COMPLETED BY")="CB"
8 S TABLE("87. REVIEWED BY CANCER COMMITTEE")="RBCC"
9 S HTABLE(1)="83. DATE OF LAST CONTACT OR DEATH"
10 S HTABLE(2)="84. VITAL STATUS"
11 S HTABLE(3)="85. CANCER STATUS"
12 S HTABLE(4)="86. COMPLETED BY"
13 S HTABLE(5)="87. REVIEWED BY CANCER COMMITTEE"
14 S CHOICES=5
15 W @IOF D HEAD^ONCBRP0
16 W !," TABLE VII - STATUS AT LAST CONTACT"
17 W !," ----------------------------------"
18DLCOD 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 !," 83. DATE OF LAST CONTACT OR DEATH..: ",DLC
21VS S DIE="^ONCO(160,",DA=ONCONUM
22 S DR="15 84. VITAL 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 !," 85. CANCER STATUS..................: ",CS
30CB S DIE="^ONCO(165.5,",DA=ONCONUM
31 S DR="81 86. COMPLETED BY..................." D ^DIE G:$D(Y) JUMP
32RBCC S DIE="^ONCO(165.5,",DA=ONCONUM
33 S DR="82 87. REVIEWED BY CANCER 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
36JUMP ;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
44EXIT 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
Note: See TracBrowser for help on using the repository browser.