source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCCPC2.m@ 899

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

initial load of FOIAVistA 6/30/08 version

File size: 5.0 KB
Line 
1ONCCPC2 ;HIRMFO/GWB - PCE Study of Colorectal Cancer - Table II;2/12/97
2 ;;2.11;ONCOLOGY;**11**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("CLASS OF CASE")="COC"
5 S TABLE("DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months)")="DOS"
6 S TABLE("INITIAL METHODS OF DIAGNOSIS")="IMOD"
7 S TABLE("REASON LEADING TO EVENTUAL DX")="RLTED"
8 S TABLE("DIAGNOSTIC EVALUATION")="DE"
9 S TABLE("LEVEL OF TUMOR BY ENDOSCOPIC EXAM")="LOTBEE"
10 S TABLE("LEVEL OF RECTAL TUMOR")="LORT"
11 S TABLE("DATE OF INITIAL DIAGNOSIS")="DOID"
12 S TABLE("PRIMARY SITE")="PS"
13 S TABLE("HISTOLOGY/BEHAVIOR CODE")="H"
14 S TABLE("GRADE")="G"
15 S TABLE("DIAGNOSTIC CONFIRMATION")="DC"
16 S HTABLE(1)="CLASS OF CASE"
17 S HTABLE(2)="DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months)"
18 S HTABLE(3)="INITIAL METHODS OF DIAGNOSIS"
19 S HTABLE(4)="REASON LEADING TO EVENTUAL DX"
20 S HTABLE(5)="DIAGNOSTIC EVALUATION"
21 S HTABLE(6)="LEVEL OF TUMOR BY ENDOSCOPIC EXAM"
22 S HTABLE(7)="LEVEL OF RECTAL TUMOR"
23 S HTABLE(8)="DATE OF INITIAL DIAGNOSIS"
24 S HTABLE(9)="PRIMARY SITE"
25 S HTABLE(10)="HISTOLOGY/BEHAVIOR CODE"
26 S HTABLE(11)="GRADE"
27 S HTABLE(12)="DIAGNOSTIC CONFIRMATION"
28 S CHOICES=12
29 K DIQ S DIC="^ONCO(165.5,",DR=".04;22;24;26",DA=ONCONUM,DIQ="ONC"
30 D EN^DIQ1
31 S Y=$P(^ONCO(165.5,ONCONUM,0),U,16) D DATEOT^ONCOPCE S DOID=Y
32 W @IOF D HEAD^ONCCPC0
33 W !?26,"TABLE II- INITIAL DIAGNOSIS"
34 W !?26,"---------------------------"
35 S DIE="^ONCO(165.5,",DA=ONCONUM
36COC W !,"CLASS OF CLASS...................: ",ONC(165.5,ONCONUM,.04)
37DOS W !!,"DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months):",!
38 S DR="716 ANEMIA........................." D ^DIE G:$D(Y) JUMP
39 S DR="717 BOWEL OBSTRUCTION.............." D ^DIE G:$D(Y) JUMP
40 S DR="718 CHANGE IN BOWEL HABIT.........." D ^DIE G:$D(Y) JUMP
41 S DR="719 EMER PRESENTATION-OBSTRUCTION.." D ^DIE G:$D(Y) JUMP
42 S DR="720 JAUNDICE......................." D ^DIE G:$D(Y) JUMP
43 S DR="721 MALAISE........................" D ^DIE G:$D(Y) JUMP
44 S DR="722 OCCULT BLOOD ONLY IN STOOL....." D ^DIE G:$D(Y) JUMP
45 S DR="723 PAIN (ABDOMINAL)..............." D ^DIE G:$D(Y) JUMP
46 S DR="724 PAIN (PELVIC).................." D ^DIE G:$D(Y) JUMP
47 S DR="725 RECTAL BLEEDING (MELENA)......." D ^DIE G:$D(Y) JUMP
48 S DR="726 OTHER.........................." D ^DIE G:$D(Y) JUMP
49IMOD W !!,"INITIAL METHODS OF DIAGNOSIS:",!
50 S DR="727 ENDOSCOPIC....................." D ^DIE G:$D(Y) JUMP
51 S DR="728 RADIOGRAPHIC..................." D ^DIE G:$D(Y) JUMP
52 S DR="729 SCREENING DIGITAL RECTAL EXAM.." D ^DIE G:$D(Y) JUMP
53 S DR="730 SCREENING PHYSICAL EXAM........" D ^DIE G:$D(Y) JUMP
54 S DR="731 OTHER.........................." D ^DIE G:$D(Y) JUMP
55RLTED W !
56 S DR="732REASON LEADING TO EVENTUAL DX...." D ^DIE G:$D(Y) JUMP
57DE W !!,"DIAGNOSTIC EVALUATION:",!
58 S DR="733 BARIUM ENEMA, DOUBLE CONTRAST.." D ^DIE G:$D(Y) JUMP
59 S DR="734 BARIUM ENEMA, SINGLE CONTRAST.." D ^DIE G:$D(Y) JUMP
60 S DR="735 BARIUM ENEMA, NOS.............." D ^DIE G:$D(Y) JUMP
61 S DR="736 BIOPSY OF PRIMARY SITE........." D ^DIE G:$D(Y) JUMP
62 S DR="737 BIOPSY OF METASTATIC SITE......" D ^DIE G:$D(Y) JUMP
63 S DR="421 CT SCAN OF CHEST..............." D ^DIE G:$D(Y) JUMP
64 S DR="738 CT SCAN OF LIVER..............." D ^DIE G:$D(Y) JUMP
65 S DR="739 CT SCAN OF PRIMARY SITE........" D ^DIE G:$D(Y) JUMP
66 S DR="740 CEA (PREOPERATIVE)............." D ^DIE G:$D(Y) JUMP
67 S DR="741 CHEST ROENTGENOGRAM............" D ^DIE G:$D(Y) JUMP
68 S DR="742 COLONOSCOPY...................." D ^DIE G:$D(Y) JUMP
69 S DR="743 DIGITAL RECTAL EXAM............" D ^DIE G:$D(Y) JUMP
70 S DR="744 FLEXIBLE SIGMOIDOSCOPY........." D ^DIE G:$D(Y) JUMP
71 S DR="745 INTRAVENOUS PYELOGRAM (IVP)...." D ^DIE G:$D(Y) JUMP
72 S DR="746 SERUM-LIVER FUNCTION TEST......" D ^DIE G:$D(Y) JUMP
73 S DR="747 MRI............................" D ^DIE G:$D(Y) JUMP
74 S DR="748 PROCTOSCOPY (RIGID)............" D ^DIE G:$D(Y) JUMP
75 S DR="749 STOOL GUAIAC (OCCULT BLOOD)...." D ^DIE G:$D(Y) JUMP
76 S DR="750 ULTRASOUND, LIVER, ABDOMEN....." D ^DIE G:$D(Y) JUMP
77 S DR="751 ULTRASOUND, ENDORECTAL........." D ^DIE G:$D(Y) JUMP
78 S DR="430 OTHER.........................." D ^DIE G:$D(Y) JUMP
79 W !
80LOTBEE S DR="752LEVEL OF TUMOR BY ENDOSCOPIC EXAM" D ^DIE G:$D(Y) JUMP
81LORT S DR="753LEVEL OF RECTAL TUMOR............" D ^DIE G:$D(Y) JUMP
82DOID W !,"DATE OF INITIAL DIAGNOSIS........: ",DOID
83PS W !,"PRIMARY SITE.....................: ",TOPCOD
84H W !,"HISTOLOGY/BEHAVIOR CODE..........: ",ONC(165.5,ONCONUM,22)
85G S DR="24GRADE............................" D ^DIE G:$D(Y) JUMP
86DC S DR="26DIAGNOSTIC CONFIRMATION.........." D ^DIE G:$D(Y) JUMP
87 W ! K DIR S DIR(0)="E" D ^DIR
88 G EXIT
89JUMP ;Jump to prompts
90 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
91 I X["?" D G JUMP
92 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
93 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
94 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
95 S X=TABLE(X)
96 G @X
97EXIT K HTABLE,TABLE,CHOICES
98 K DOID,HST,HSTCD,HSTNAM,PRINODE0,PRINODE2,TOPOG,TOPCD,SITE
99 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
100 Q
Note: See TracBrowser for help on using the repository browser.