source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCCPC3.m@ 1195

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

initial load of WorldVistAEHR

File size: 3.5 KB
RevLine 
[613]1ONCCPC3 ;HIRMFO/GWB - PCE Study of Colorectal Cancer - Table III;2/20/97
2 ;;2.11;ONCOLOGY;**11**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("SIZE OF TUMOR (mm)")="SOT"
5 S TABLE("REGIONAL NODES EXAMINED")="RNE"
6 S TABLE("REGIONAL NODES POSITIVE")="RNP"
7 S TABLE("AJCC CLINICAL STAGE (cTNM)")="ACS"
8 S TABLE("AJCC PATHOLOGIC STAGE (pTNM)")="APS"
9 S TABLE("CLINICAL STAGED BY")="CSB"
10 S TABLE("PATHOLOGIC STAGED BY")="PSB"
11 S TABLE("MARGIN OF RESECTION")="MOR"
12 S TABLE("DISTANCE TO CLOSEST MUCOSAL MARGIN")="DTCMM"
13 S TABLE("DISTANCE TO CLOSEST RADIAL MARGIN")="DTCRM"
14 S TABLE("BLOOD VESSEL OR LYMPHATIC INVASION")="BVOLI"
15 S TABLE("EXTRAMURAL VENOUS INVASION")="EVI"
16 S TABLE("PROMINENT LYMPHOID INFILTRATE")="PLI"
17 S HTABLE(1)="SIZE OF TUMOR (mm)"
18 S HTABLE(2)="REGIONAL NODES EXAMINED"
19 S HTABLE(3)="REGIONAL NODES POSITIVE"
20 S HTABLE(4)="AJCC CLINICAL STAGE (cTNM)"
21 S HTABLE(5)="AJCC PATHOLOGIC STAGE (pTNM)"
22 S HTABLE(6)="CLINICAL STAGED BY"
23 S HTABLE(7)="PATHOLOGIC STAGED BY"
24 S HTABLE(8)="MARGIN OF RESECTION"
25 S HTABLE(9)="DISTANCE TO CLOSEST MUCOSAL MARGIN"
26 S HTABLE(10)="DISTANCE TO CLOSEST RADIAL MARGIN"
27 S HTABLE(11)="BLOOD VESSEL OR LYMPHATIC INVASION"
28 S HTABLE(12)="EXTRAMURAL VENOUS INVASION"
29 S HTABLE(13)="PROMINENT LYMPHOID INFILTRATE"
30 S CHOICES=13
31 W @IOF D HEAD^ONCCPC0
32 W !?18,"TABLE III- EXTENT OF DISEASE AND AJCC STAGE"
33 W !?18,"-------------------------------------------"
34 S DIE="^ONCO(165.5,",DA=ONCONUM
35SOT S DR="29SIZE OF TUMOR (mm)............." D ^DIE G:$D(Y) JUMP
36RNE S DR="33REGIONAL NODES EXAMINED........" D ^DIE G:$D(Y) JUMP
37RNP S DR="32REGIONAL NODES POSITIVE........" D ^DIE G:$D(Y) JUMP
38ACS W !!,"AJCC CLINICAL STAGE (cTNM):",!
39CTCODE S DR="37.1 T-CODE......................." D ^DIE G:$D(Y) JUMP
40 D CN1^ONCOTN,CN2^ONCOTN
41CNCODE S DR="37.2 N-CODE......................." D ^DIE G:$D(Y) JUMP
42CMCODE S DR="37.3 M-CODE......................." D ^DIE G:$D(Y) JUMP
43 I '$D(SKAJCC) D CN1^ONCOTN
44 S STGIND="C" D ES^ONCOTN
45CSTAGE ;W ! S DR="38 AJCC STAGE..................." D ^DIE G:$D(Y) JUMP
46CSB S DR="19 CLINICAL STAGED BY..........." D ^DIE G:$D(Y) JUMP
47APS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",!
48PTCODE S DR="85 T-CODE......................." D ^DIE G:$D(Y) JUMP
49 D CN3^ONCOTN,CN4^ONCOTN
50PNCODE S DR="86 N-CODE......................." D ^DIE G:$D(Y) JUMP
51PMCODE S DR="87 M-CODE......................." D ^DIE G:$D(Y) JUMP
52 I '$D(SKAJCC) D CN3^ONCOTN
53 S STGIND="P" D ES^ONCOTN
54PSTAGE ;W ! S DR="88 AJCC STAGE..................." D ^DIE G:$D(Y) JUMP
55PSB S DR="89 PATHOLOGIC STAGED BY........." D ^DIE G:$D(Y) JUMP
56MOR W !!,"MARGIN OF RESECTION:",!
57 S DR="754 PROXIMAL MARGIN.............." D ^DIE G:$D(Y) JUMP
58 S DR="755 DISTAL MARGIN................" D ^DIE G:$D(Y) JUMP
59 S DR="756 RADIAL MARGIN................" D ^DIE G:$D(Y) JUMP
60 W !
61DTCMM S DR="757DISTANCE TO MUCOSAL MARGIN....." D ^DIE G:$D(Y) JUMP
62DTCRM S DR="758DISTANCE TO RADIAL MARGIN......" D ^DIE G:$D(Y) JUMP
63BVOLI S DR="759BLOOD VESSEL/LYMPHATIC INVASION" D ^DIE G:$D(Y) JUMP
64EVI S DR="760EXTRAMURAL VENOUS INVASION....." D ^DIE G:$D(Y) JUMP
65PLI S DR="761PROMINENT LYMPHOID INFILTRATE.." D ^DIE G:$D(Y) JUMP
66 W ! K DIR S DIR(0)="E" D ^DIR
67 G EXIT
68JUMP ;Jump to prompts
69 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
70 I X["?" D G JUMP
71 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
72 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
73 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
74 S X=TABLE(X)
75 G @X
76EXIT K HTABLE,TABLE,CHOICES
77 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
78 Q
Note: See TracBrowser for help on using the repository browser.