source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCSPC5.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: 2.8 KB
Line 
1ONCSPC5 ;HIRMFO/GWB - PCE Study of Soft Tissue Sarcoma - 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("DISTANT SITE(S) OF RECURRENCE")="DSOFR"
8 S TABLE("SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION")="STFROP"
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)="DISTANT SITE(S) OF RECURRENCE"
13 S HTABLE(5)="SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION"
14 S CHOICES=5
15 W @IOF D HEAD^ONCSPC0 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
22DSOFR S DIE="^ONCO(165.5,",DA=ONCONUM
23 W !!,"DISTANT SITE(S) OF RECURRENCE:",!
24 S DR="71.1 RECURRENCE SITE 1..........." D ^DIE G:$D(Y) JUMP
25 I X=0 D G STFROP
26 .S $P(^ONCO(165.5,ONCONUM,5),U,4)=0
27 .W !," RECURRENCE SITE 2...........: None"
28 .S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
29 .W !," RECURRENCE SITE 3...........: None"
30 S DR="71.2 RECURRENCE SITE 2..........." D ^DIE G:$D(Y) JUMP
31 I X=0 D G STFROP
32 .S $P(^ONCO(165.5,ONCONUM,5),U,5)=0
33 .W !," RECURRENCE SITE 3...........: None"
34 S DR="71.3 RECURRENCE SITE 3..........." D ^DIE G:$D(Y) JUMP
35STFROP W !!,"SUBSEQUENT TREATMENT FOR RECURRENCE OR PROGRESSION:"
36 I '$D(^ONCO(165.5,ONCONUM,4,0)) W !!,"NO SUBSEQUENT TREATMENT" G DIR
37 I $O(^ONCO(165.5,ONCONUM,4,0))="" W !!,"NO SUBSEQUENT TREATMENT" G DIR
38 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)
39 G:OUT="Y" EXIT G DIR
40SS S ID=$P(^ONCO(165.5,ONCONUM,4,SCTIEN,0),U,1)
41 S Y=ID D DATEOT^ONCOPCE S ID=Y
42 S COURSE=$S(CRSE=1:"SECOND",CRSE=2:"THIRD",CRSE=3:"FOURTH",1:"")
43 W !!," ",COURSE," COURSE:",!
44 W !," DATE...........: ",ID
45 S DIE="^ONCO(165.5,"_ONCONUM_",4,",DA(1)=ONCONUM,DA=SCTIEN
46 S DR=".04 SURGERY........" D ^DIE G:$D(Y) JUMP
47 S DR=".05 RADIATION......" D ^DIE G:$D(Y) JUMP
48 S DR=".06 CHEMOTHERAPY..." D ^DIE G:$D(Y) JUMP
49 S DR=".07 HORMONE THERAPY" D ^DIE G:$D(Y) JUMP
50 S DR=".09 OTHER.........." D ^DIE G:$D(Y) JUMP
51 Q
52DIR 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.