source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCHPC3.m@ 789

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1ONCHPC3 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/10/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;Stage of Disease at Diagnosis
4 K TABLE,HTABLE
5 S TABLE("23. SIZE OF TUMOR")="ST"
6 S TABLE("24. REGIONAL NODES EXAMINED")="RNE"
7 S TABLE("25. REGIONAL NODES POSITIVE")="RNP"
8 S TABLE("26. AJCC CLINICAL STAGE (cTNM)")="ACS"
9 S TABLE("27. AJCC PATHOLOGIC STAGE (pTNM)")="APS"
10 S TABLE("28. STAGED BY")="SB"
11 S HTABLE(1)="23. SIZE OF TUMOR"
12 S HTABLE(2)="24. REGIONAL NODES EXAMINED"
13 S HTABLE(3)="25. REGIONAL NODES POSITIVE"
14 S HTABLE(4)="26. AJCC CLINICAL STAGE (cTNM)"
15 S HTABLE(5)="27. AJCC PATHOLOGIC STAGE (pTNM)"
16 S HTABLE(6)="28. STAGED BY"
17 S CHOICES=6
18 W @IOF D HEAD^ONCHPC0
19 W !," STAGE OF DISEASE AT DIAGNOSIS"
20 W !," -----------------------------"
21 S DIE="^ONCO(165.5,",DA=ONCONUM
22ST S DR="29 23. SIZE OF TUMOR ................" D ^DIE G:$D(Y) JUMP
23RNE S DR="33 24. REGIONAL NODES EXAMINED......." D ^DIE G:$D(Y) JUMP
24RNP S DR="32 25. REGIONAL NODES POSITIVE......." D ^DIE G:$D(Y) JUMP
25ACS W !!," 26. AJCC CLINICAL STAGE (cTNM):"
26 S DR="37.1 AJCC CLINICAL T.............." D ^DIE G:$D(Y) JUMP
27 D CN1^ONCOTN,CN2^ONCOTN
28 S DR="37.2 AJCC CLINICAL N.............." D ^DIE G:$D(Y) JUMP
29 S DR="37.3 AJCC CLINICAL M.............." D ^DIE G:$D(Y) JUMP
30 I '$D(SKAJCC) D CN1^ONCOTN
31 S STGIND="C" D ES^ONCOTN
32APS W !," 27. AJCC PATHOLOGIC STAGE (pTNM):",!
33 S DR="85 AJCC PATHOLOGIC T............" D ^DIE G:$D(Y) JUMP
34 D CN3^ONCOTN,CN4^ONCOTN
35 S DR="86 AJCC PATHOLOGIC N............" D ^DIE G:$D(Y) JUMP
36 S DR="87 AJCC PATHOLOGIC M............" D ^DIE G:$D(Y) JUMP
37 I '$D(SKAJCC) D CN3^ONCOTN
38 S STGIND="P" D ES^ONCOTN
39SB W !," 28. STAGED BY:"
40 S DR="19 CLINICALLY STAGED BY........." D ^DIE G:$D(Y) JUMP
41 S DR="89 PATHOLOGICALLY STAGED BY....." D ^DIE G:$D(Y) JUMP
42 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
43 G EXIT
44JUMP ;Jump to prompts
45 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
46 I (X="")!(X[U) S OUT="Y" G EXIT
47 I X["?" D G JUMP
48 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
49 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
50 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
51 S X=TABLE(X)
52 G @X
53EXIT K HTABLE,TABLE,CHOICES
54 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
55 Q
Note: See TracBrowser for help on using the repository browser.