source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBPC6.m@ 1361

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

initial load of WorldVistAEHR

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