source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCIPC6.m@ 1154

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1ONCIPC6 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;04/28/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;Status at Last Contact
4 K TABLE,HTABLE
5 S TABLE("82. DATE OF LAST CONTACT OR DEATH")="DLCOD"
6 S TABLE("83. VITAL STATUS")="VS"
7 S TABLE("84. CANCER STATUS")="CS"
8 S HTABLE(1)="82. DATE OF LAST CONTACT OR DEATH"
9 S HTABLE(2)="83. VITAL STATUS"
10 S HTABLE(3)="84. CANCER STATUS"
11 S CHOICES=3
12 S IE=ONCONUM
13 W @IOF D HEAD^ONCIPC0
14 W !," STATUS AT LAST CONTACT"
15 W !," ----------------------"
16DLCOD 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 !," 82. DATE OF LAST CONTACT OR DEATH..: ",DLC
19VS S DIE="^ONCO(160,",DA=ONCONUM
20 S DR="15 83. VITAL STATUS..................." D ^DIE G:$D(Y) JUMP
21 I X=1 S $P(^ONCO(165.5,IE,7),U,14)=0
22CS S CS="" I $D(^ONCO(165.5,IE,"TS","AA")) D
23 .S CSDAT=$O(^ONCO(165.5,IE,"TS","AA",""))
24 .S CSIEN=$O(^ONCO(165.5,IE,"TS","AA",CSDAT,""))
25 .S CSPNT=$P(^ONCO(165.5,IE,"TS",CSIEN,0),U,2)
26 .S CS=$P(^ONCO(164.42,CSPNT,0),U,1)
27 W !," 84. CANCER STATUS..................: ",CS
28 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
29 G EXIT
30JUMP ;Jump to prompts
31 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
32 I (X="")!(X[U) S OUT="Y" G EXIT
33 I X["?" D G JUMP
34 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
35 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
36 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
37 S X=TABLE(X)
38 G @X
39EXIT K CHOICES,HTABLE,TABLE
40 K CS,CSDAT,CSIEN,CSPNT,DLC
41 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
42 Q
Note: See TracBrowser for help on using the repository browser.