source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCP2P3.m@ 642

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

initial load of WorldVistAEHR

File size: 2.2 KB
Line 
1ONCP2P3 ;HINES CIOFO/GWB - 1998 Prostate Cancer Study - Table III ;6/1/98
2 ;;2.11;ONCOLOGY;**18**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("27. SIZE OF TUMOR (mm)")="SOT"
5 S TABLE("28. REGIONAL NODES EXAMINED")="RNE"
6 S TABLE("29. REGIONAL NODES POSITIVE")="RNP"
7 S TABLE("30. AJCC CLINICAL STAGE (cTNM)")="ACS"
8 S TABLE("31. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
9 S TABLE("32. STAGED BY")="SB"
10 S HTABLE(1)="27. SIZE OF TUMOR (mm)"
11 S HTABLE(2)="28. REGIONAL NODES EXAMINED"
12 S HTABLE(3)="29. REGIONAL NODES POSITIVE"
13 S HTABLE(4)="30. AJCC CLINICAL STAGE (cTNM)"
14 S HTABLE(5)="31. AJCC PATHOLOGIC STAGE (pTNM)"
15 S HTABLE(6)="32. STAGED BY"
16 S CHOICES=6
17 W @IOF D HEAD^ONCP2P0
18 W !," TABLE III - EXTENT AND STAGE OF DISEASE"
19 W !," ---------------------------------------"
20 S DIE="^ONCO(165.5,",DA=ONCONUM
21SOT S DR="29 27. SIZE OF TUMOR (mm)....." D ^DIE G:$D(Y) JUMP
22RNE S DR="33 28. REGIONAL NODES EXAMINED" D ^DIE G:$D(Y) JUMP
23RNP S DR="32 29. REGIONAL NODES POSITIVE" D ^DIE G:$D(Y) JUMP
24ACS W !!," 30. AJCC CLINICAL STAGE (cTNM):",!
25CTCODE S DR="37.1 T-CODE................." D ^DIE G:$D(Y) JUMP
26 D CN1^ONCOTN,CN2^ONCOTN
27CNCODE S DR="37.2 N-CODE................." D ^DIE G:$D(Y) JUMP
28CMCODE S DR="37.3 M-CODE................." D ^DIE G:$D(Y) JUMP
29 I '$D(SKAJCC) D CN1^ONCOTN
30 S STGIND="C" D ES^ONCOTN
31APS W !," 31. AJCC PATHOLOGIC STAGE (pTNM):",!
32PTCODE S DR="85 T-CODE................." D ^DIE G:$D(Y) JUMP
33 D CN3^ONCOTN,CN4^ONCOTN
34PNCODE S DR="86 N-CODE................." D ^DIE G:$D(Y) JUMP
35PMCODE S DR="87 M-CODE................." D ^DIE G:$D(Y) JUMP
36 I '$D(SKAJCC) D CN3^ONCOTN
37 S STGIND="P" D ES^ONCOTN
38SB W !," 32. STAGED BY:",!
39CSB S DR="19 CLINICAL STAGE........." D ^DIE G:$D(Y) JUMP
40PSB S DR="89 PATHOLOGIC STAGE......." D ^DIE G:$D(Y) JUMP
41 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
42 G EXIT
43JUMP ;Jump to prompts
44 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
45 I X["?" D G JUMP
46 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
47 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
48 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
49 S X=TABLE(X)
50 G @X
51EXIT K HTABLE,TABLE,CHOICES
52 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
53 Q
Note: See TracBrowser for help on using the repository browser.