source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCSPC3.m@ 1211

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

initial load of WorldVistAEHR

File size: 3.5 KB
RevLine 
[613]1ONCSPC3 ;HIRMFO/GWB - PCE Study of Soft Tissue Sarcoma Table III;6/19/96
2 ;;2.11;ONCOLOGY;**6,11**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("PRETREATMENT TUMOR SIZE (mm)")="PTS"
5 S TABLE("PATHOLOGIC TUMOR SIZE (mm)")="SOT"
6 S TABLE("DEPTH OF TUMOR")="DOT"
7 S TABLE("MULTIFOCAL")="M"
8 S TABLE("REGIONAL NODES EXAMINED")="RNE"
9 S TABLE("REGIONAL NODES POSITIVE")="RNP"
10 S TABLE("SITES OF DISTANT METASTASIS")="SODM"
11 S TABLE("AJCC CLINICAL STAGE (cTNM)")="ACS"
12 S TABLE("AJCC PATHOLOGIC STAGE (pTNM)")="APS"
13 S TABLE("CLINICAL STAGED BY")="CSB"
14 S TABLE("PATHOLOGIC STAGED BY")="PSB"
15 S TABLE("CONSULTATIONS")="C"
16 S HTABLE(1)="PRETREATMENT TUMOR SIZE (mm)"
17 S HTABLE(2)="PATHOLOGIC TUMOR SIZE (mm)"
18 S HTABLE(3)="DEPTH OF TUMOR"
19 S HTABLE(4)="MULTIFOCAL"
20 S HTABLE(5)="REGIONAL NODES EXAMINED"
21 S HTABLE(6)="REGIONAL NODES POSITIVE"
22 S HTABLE(7)="SITES OF DISTANT METASTASIS"
23 S HTABLE(8)="AJCC CLINICAL STAGE (cTNM)"
24 S HTABLE(9)="AJCC PATHOLOGIC STAGE (pTNM)"
25 S HTABLE(10)="CLINICAL STAGED BY"
26 S HTABLE(11)="PATHOLOGIC STAGED BY"
27 S HTABLE(12)="CONSULTATIONS"
28 S CHOICES=12
29 W @IOF D HEAD^ONCSPC0
30 W !?18,"TABLE III- EXTENT OF DISEASE AND AJCC STAGE",!
31 S DIE="^ONCO(165.5,",DA=ONCONUM
32PTS S DR="29PRETREATMENT TUMOR SIZE (mm)..." D ^DIE G:$D(Y) JUMP
33SOT S DR="522PATHOLOGIC TUMOR SIZE (mm)....." D ^DIE G:$D(Y) JUMP
34DOT S DR="523DEPTH OF TUMOR................." D ^DIE G:$D(Y) JUMP
35M S DR="433MULTIFOCAL....................." 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
38SODM W !!,"SITES OF DISTANT METASTASIS:",!
39 S DR="34 SITE OF DISTANT METASTASIS #1" D ^DIE G:$D(Y) JUMP
40 I X=0 D G ACS
41 .S $P(^ONCO(165.5,ONCONUM,2),U,15)=0
42 .W !," SITE OF DISTANT METASTASIS #2: None"
43 .S $P(^ONCO(165.5,ONCONUM,2),U,16)=0
44 .W !," SITE OF DISTANT METASTASIS #3: None"
45 S DR="34.1 SITE OF DISTANT METASTASIS #2" D ^DIE G:$D(Y) JUMP
46 I X=0 D G ACS
47 .S $P(^ONCO(165.5,ONCONUM,2),U,16)=0
48 .W !," SITE OF DISTANT METASTASIS #3: None"
49 S DR="34.2 SITE OF DISTANT METASTASIS #3" D ^DIE G:$D(Y) JUMP
50ACS W !!,"AJCC CLINICAL STAGE (cTNM):",!
51CTCODE S DR="37.1 T-CODE......................." D ^DIE G:$D(Y) JUMP
52 D CN1^ONCOTN,CN2^ONCOTN
53CNCODE S DR="37.2 N-CODE......................." D ^DIE G:$D(Y) JUMP
54CMCODE S DR="37.3 M-CODE......................." D ^DIE G:$D(Y) JUMP
55 I '$D(SKAJCC) D CN1^ONCOTN
56 S STGIND="C" D ES^ONCOTN
57CSTAGE ;W ! S DR="38 AJCC STAGE..................." D ^DIE G:$D(Y) JUMP
58CSB S DR="19 CLINICAL STAGED BY..........." D ^DIE G:$D(Y) JUMP
59APS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",!
60PTCODE S DR="85 T-CODE......................." D ^DIE G:$D(Y) JUMP
61 D CN3^ONCOTN,CN4^ONCOTN
62PNCODE S DR="86 N-CODE......................." D ^DIE G:$D(Y) JUMP
63PMCODE S DR="87 M-CODE......................." D ^DIE G:$D(Y) JUMP
64 I '$D(SKAJCC) D CN3^ONCOTN
65 S STGIND="P" D ES^ONCOTN
66PSTAGE ;W ! S DR="88 AJCC STAGE..................." D ^DIE G:$D(Y) JUMP
67PSB S DR="89 PATHOLOGIC STAGED BY........." D ^DIE G:$D(Y) JUMP
68C W !!,"CONSULTATIONS:",!
69 S DR="524 MEDICAL ONCOLOGIST..........." D ^DIE G:$D(Y) JUMP
70 S DR="525 RADIATION ONCOLOGIST........." D ^DIE G:$D(Y) JUMP
71 W ! K DIR S DIR(0)="E" D ^DIR
72 G EXIT
73JUMP ;Jump to prompts
74 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
75 I X["?" D G JUMP
76 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
77 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
78 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
79 S X=TABLE(X)
80 G @X
81EXIT K HTABLE,TABLE,CHOICES
82 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
83 Q
Note: See TracBrowser for help on using the repository browser.