source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCTPC5.m@ 1036

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

initial load of WorldVistAEHR

File size: 2.9 KB
Line 
1ONCTPC5 ;HIRMFO/GWB - PCE Study of Thyroid Cancer - Table V;7/22/96
2 ;;2.11;ONCOLOGY;**6**;Mar 07, 1995
3 K TABLE,HTABLE S OUT=""
4 S TABLE("DATE OF FIRST RECURRENCE")="DOFR"
5 S TABLE("TYPE OF FIRST RECURRENCE")="TOFR"
6 S TABLE("OTHER TYPE OF FIRST RECURRENCE")="OTOFR"
7 S TABLE("SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION")="STFROP"
8 S TABLE("DISTANT SITE(S) OF FIRST RECURRENCE")="DSOFR"
9 S HTABLE(1)="DATE OF FIRST RECURRENCE"
10 S HTABLE(2)="TYPE OF FIRST RECURRENCE"
11 S HTABLE(3)="OTHER TYPE OF FIRST RECURRENCE"
12 S HTABLE(4)="SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION"
13 S HTABLE(5)="DISTANT SITE(S) OF FIRST RECURRENCE"
14 S CHOICES=5
15 W @IOF D HEAD^ONCTPC0 W !?15,"TABLE V - FIRST RECURRENCE AND SUBSEQUENT TREATMENT",!
16DOFR S DIE="^ONCO(165.5,",DA=ONCONUM
17 S DR="70DATE OF FIRST RECURRENCE......" D ^DIE G:$D(Y) JUMP
18TOFR S DIE="^ONCO(165.5,",DA=ONCONUM
19 S DR="71TYPE OF FIRST RECURRENCE......" D ^DIE G:$D(Y) JUMP
20OTOFR S DIE="^ONCO(165.5,",DA=ONCONUM
21 S DR="71.4OTHER TYPE OF FIRST RECURRENCE" D ^DIE G:$D(Y) JUMP
22STFROP W !!,"SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION:"
23 I '$D(^ONCO(165.5,ONCONUM,4,0)) W !!,"NO SUBSEQUENT TREATMENT" G DSOFR
24 I $O(^ONCO(165.5,ONCONUM,4,0))="" W !!,"NO SUBSEQUENT TREATMENT" G DSOFR
25 I $D(^ONCO(165.5,ONCONUM,4,0)) S SCTIEN=0 F CRSE=1:1 S SCTIEN=$O(^ONCO(165.5,ONCONUM,4,SCTIEN)) Q:(SCTIEN'>0)!(CRSE=4)!(OUT="Y") D SS Q:$D(Y)
26 G:OUT="Y" EXIT G DSOFR
27SS S ID=$P(^ONCO(165.5,ONCONUM,4,SCTIEN,0),U,1)
28 S Y=ID D DATEOT^ONCOPCE S ID=Y
29 S COURSE=$S(CRSE=1:"SECOND",CRSE=2:"THIRD",CRSE=3:"FOURTH",1:"")
30 W !!," ",COURSE," COURSE:",!
31 W !," DATE...........: ",ID
32 S DIE="^ONCO(165.5,"_ONCONUM_",4,",DA(1)=ONCONUM,DA=SCTIEN
33 S DR=".04 SURGERY........" D ^DIE G:$D(Y) JUMP
34 S DR=".05 RADIATION......" D ^DIE G:$D(Y) JUMP
35 S DR=".06 CHEMOTHERAPY..." D ^DIE G:$D(Y) JUMP
36 S DR=".07 HORMONE THERAPY" D ^DIE G:$D(Y) JUMP
37 S DR=".09 OTHER.........." D ^DIE G:$D(Y) JUMP
38 Q
39DSOFR S DIE="^ONCO(165.5,",DA=ONCONUM
40 W !!,"DISTANT SITE(S) OF RECURRENCE:",!
41 S DR="71.1 RECURRENCE SITE 1..........." D ^DIE G:$D(Y) JUMP
42 I X=0 D G PRTC
43 .S $P(^ONCO(165.5,ONCONUM,5),U,4)=0
44 .W !," RECURRENCE SITE 2...........: None"
45 .S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
46 .W !," RECURRENCE SITE 3...........: None"
47 S DR="71.2 RECURRENCE SITE 2..........." D ^DIE G:$D(Y) JUMP
48 I X=0 D G PRTC
49 .S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
50 .W !," RECURRENCE SITE 3...........: None"
51 S DR="71.3 RECURRENCE SITE 3..........." D ^DIE G:$D(Y) JUMP
52PRTC W ! K DIR S DIR(0)="E" D ^DIR
53 G EXIT
54JUMP ;Jump to prompts
55 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
56 I X["?" D G JUMP
57 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
58 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
59 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
60 S X=TABLE(X)
61 G @X
62EXIT K CHOICES,HTABLE,TABLE
63 K ID
64 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
65 Q
Note: See TracBrowser for help on using the repository browser.