1 | ONCPPC3 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table III;7/22/96
|
---|
2 | ;;2.11;ONCOLOGY;**6**;Mar 07, 1995
|
---|
3 | K TABLE,HTABLE
|
---|
4 | S TABLE("AJCC CLINICAL STAGE (cTNM)")="ACS"
|
---|
5 | S TABLE("CLINICAL STAGED BY")="CSB"
|
---|
6 | S TABLE("AJCC PATHOLOGIC STAGE (pTNM)")="APS"
|
---|
7 | S TABLE("PATHOLOGIC STAGED BY")="PSB"
|
---|
8 | S HTABLE(1)="AJCC CLINICAL STAGE (cTNM)"
|
---|
9 | S HTABLE(2)="CLINICAL STAGED BY"
|
---|
10 | S HTABLE(3)="AJCC PATHOLOGIC STAGE (pTNM)"
|
---|
11 | S HTABLE(4)="PATHOLOGIC STAGED BY"
|
---|
12 | S CHOICES=4
|
---|
13 | S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
14 | W @IOF D HEAD^ONCPPC0 W !?26,"TABLE III - STAGE OF DISEASE",!
|
---|
15 | ACS W !,"AJCC CLINICAL STAGE (cTNM):",!
|
---|
16 | CTCODE S DR="37.1 T-CODE............" D ^DIE G:$D(Y) JUMP
|
---|
17 | D CN1^ONCOTN,CN2^ONCOTN
|
---|
18 | CNCODE S DR="37.2 N-CODE............" D ^DIE G:$D(Y) JUMP
|
---|
19 | CMCODE S DR="37.3 M-CODE............" D ^DIE G:$D(Y) JUMP
|
---|
20 | I '$D(SKAJCC) D CN1^ONCOTN
|
---|
21 | S STGIND="C" D ES^ONCOTN
|
---|
22 | CSTAGE ;W ! S DR="38 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
|
---|
23 | CSB S DR="19 CLINICAL STAGED BY.." D ^DIE G:$D(Y) JUMP
|
---|
24 | APS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",!
|
---|
25 | PTCODE S DR="85 T-CODE.............." D ^DIE G:$D(Y) JUMP
|
---|
26 | D CN3^ONCOTN,CN4^ONCOTN
|
---|
27 | PNCODE S DR="86 N-CODE.............." D ^DIE G:$D(Y) JUMP
|
---|
28 | PMCODE S DR="87 M-CODE.............." D ^DIE G:$D(Y) JUMP
|
---|
29 | I '$D(SKAJCC) D CN3^ONCOTN
|
---|
30 | S STGIND="P" D ES^ONCOTN
|
---|
31 | PSTAGE ;W ! S DR="88 AJCC STAGE....." D ^DIE G:$D(Y) JUMP
|
---|
32 | PSB S DR="89 PATHOLOGIC STAGED BY" D ^DIE G:$D(Y) JUMP
|
---|
33 | W ! K DIR S DIR(0)="E" D ^DIR
|
---|
34 | G EXIT
|
---|
35 | JUMP ;Jump to prompts
|
---|
36 | S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
|
---|
37 | I X["?" D G JUMP
|
---|
38 | .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
39 | I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
|
---|
40 | .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
41 | S X=TABLE(X)
|
---|
42 | G @X
|
---|
43 | EXIT K CHOICES,HTABLE,TABLE
|
---|
44 | K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
|
---|
45 | Q
|
---|