source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCHPC6.m@ 1259

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

initial load of WorldVistAEHR

File size: 1.5 KB
RevLine 
[613]1ONCHPC6 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/12/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;Follow-Up
4 K TABLE,HTABLE
5 S TABLE("57. DATE OF LAST CONTACT OR DEATH")="DLCOD"
6 S TABLE("58. VITAL STATUS")="VS"
7 S TABLE("59. CANCER STATUS")="CS"
8 S HTABLE(1)="57. DATE OF LAST CONTACT OR DEATH"
9 S HTABLE(2)="58. VITAL STATUS"
10 S HTABLE(3)="59. CANCER STATUS"
11 S CHOICES=3
12 W @IOF D HEAD^ONCHPC0
13 W !," FOLLOW-UP"
14 W !," ---------"
15DLCOD S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
16 I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
17 W !," 57. DATE OF LAST CONTACT OR DEATH..: ",DLC
18VS S DIE="^ONCO(160,",DA=ONCONUM
19 S DR="15 58. VITAL STATUS..................." D ^DIE G:$D(Y) JUMP
20 I X=1 S $P(^ONCO(165.5,ONCONUM,7),U,14)=0
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 !," 59. CANCER STATUS..................: ",CS
27 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
28 G EXIT
29JUMP ;Jump to prompts
30 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
31 I (X="")!(X[U) S OUT="Y" G EXIT
32 I X["?" D G JUMP
33 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
34 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
35 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
36 S X=TABLE(X)
37 G @X
38EXIT K CHOICES,HTABLE,TABLE
39 K CS,CSDAT,CSIEN,CSPNT,DLC
40 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
41 Q
Note: See TracBrowser for help on using the repository browser.