source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCMPC6.m@ 1351

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

initial load of WorldVistAEHR

File size: 1.6 KB
RevLine 
[613]1ONCMPC6 ;HINES CIOFO/GWB - 1999 Melanoma Study - Table VI ;1/27/99
2 ;;2.11;ONCOLOGY;**22**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("80. DATE OF LAST CONTACT OR DEATH")="DOLCOD"
5 S TABLE("81. VITAL STATUS")="VS"
6 S TABLE("82. CANCER STATUS")="CS"
7 S HTABLE(1)="80. DATE OF LAST CONTACT OR DEATH"
8 S HTABLE(2)="81. VITAL STATUS"
9 S HTABLE(3)="82. CANCER STATUS"
10 S CHOICES=3
11 W @IOF D HEAD^ONCMPC0
12 W !," TABLE VI - STATUS AT LAST CONTACT"
13 W !," ---------------------------------"
14DOLCOD S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
15 I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
16 W !," 80. DATE OF LAST CONTACT OR DEATH.: ",DLC
17VS S DIE="^ONCO(160,",DA=ONCONUM
18 S DR="15 81. VITAL STATUS.................." D ^DIE G:$D(Y) JUMP
19 I X=1 S $P(^ONCO(165.5,ONCONUM,7),U,14)=0
20CS S CS="" I $D(^ONCO(165.5,ONCONUM,"TS","AA")) D
21 .S CSDAT=$O(^ONCO(165.5,ONCONUM,"TS","AA",""))
22 .S CSIEN=$O(^ONCO(165.5,ONCONUM,"TS","AA",CSDAT,""))
23 .S CSPNT=$P(^ONCO(165.5,ONCONUM,"TS",CSIEN,0),U,2)
24 .S:CSPNT'="" CS=$P(^ONCO(164.42,CSPNT,0),U,1)
25 W !," 82. CANCER STATUS.................: ",CS
26 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
27 G EXIT
28JUMP ;Jump to prompts
29 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
30 I X["?" D G JUMP
31 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
32 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
33 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
34 S X=TABLE(X)
35 G @X
36EXIT K CHOICES,HTABLE,TABLE
37 K CS,CSDAT,CSIEN,CSPNT,DLC
38 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
39 Q
Note: See TracBrowser for help on using the repository browser.