1 | ONCBPC1 ;Hines OIFO/GWB - PCE Study of Cancers of the Urinary Bladder ;5/30/00
|
---|
2 | ;;2.11;ONCOLOGY;**6,26**;Mar 07, 1995
|
---|
3 | ;Table I
|
---|
4 | K TABLE,HTABLE
|
---|
5 | S TABLE("ACCESSION/SEQUENCE NUMBER")="ACC"
|
---|
6 | S TABLE("CLASS OF CASE")="CLA"
|
---|
7 | S TABLE("REFERRED FOR TREATMENT TO")="PATR"
|
---|
8 | S TABLE("ZIP AT DIAGNOSIS")="ZIP"
|
---|
9 | S TABLE("DATE OF BIRTH")="DAT"
|
---|
10 | S TABLE("RACE")="RAC"
|
---|
11 | S TABLE("SPANISH ORIGIN")="SPA"
|
---|
12 | S TABLE("SEX")="SEX"
|
---|
13 | S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PRI"
|
---|
14 | S TABLE("LENGTH OF STAY")="LEN"
|
---|
15 | S TABLE("PATIENT HISTORY OF OTHER CANCER")="PATH"
|
---|
16 | S TABLE("FAMILY HISTORY OF CANCER")="FAM"
|
---|
17 | S TABLE("SMOKING HISTORY")="SMO"
|
---|
18 | S TABLE("DURATION OF SMOKING HISTORY")="DOSH"
|
---|
19 | S TABLE("DURATION OF SMOKE-FREE HISTORY")="DOSFH"
|
---|
20 | S HTABLE(1)="ACCESSION/SEQUENCE NUMBER"
|
---|
21 | S HTABLE(2)="CLASS OF CASE"
|
---|
22 | S HTABLE(3)="REFERRED FOR TREATMENT TO"
|
---|
23 | S HTABLE(4)="ZIP AT DIAGNOSIS"
|
---|
24 | S HTABLE(5)="DATE OF BIRTH"
|
---|
25 | S HTABLE(6)="RACE"
|
---|
26 | S HTABLE(7)="SPANISH ORIGIN"
|
---|
27 | S HTABLE(8)="SEX"
|
---|
28 | S HTABLE(9)="PRIMARY PAYER AT DIAGNOSIS"
|
---|
29 | S HTABLE(10)="LENGTH OF STAY"
|
---|
30 | S HTABLE(11)="PATIENT HISTORY OF OTHER CANCER"
|
---|
31 | S HTABLE(12)="FAMILY HISTORY OF CANCER"
|
---|
32 | S HTABLE(13)="SMOKING HISTORY"
|
---|
33 | S HTABLE(14)="DURATION OF SMOKING HISTORY"
|
---|
34 | S HTABLE(15)="DURATION OF SMOKE-FREE HISTORY"
|
---|
35 | S CHOICES=15
|
---|
36 | S PRINODE0=^ONCO(165.5,ONCONUM,0)
|
---|
37 | S ACCSEQ=$P(PRINODE0,U,5)_"/"_$P(PRINODE0,U,6)
|
---|
38 | S COCIN=$P(PRINODE0,U,4),Y=COCIN,C=$P(^DD(165.5,.04,0),U,2) D Y^DIQ
|
---|
39 | S COCEX=Y
|
---|
40 | S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
|
---|
41 | W @IOF D HEAD^ONCBPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
|
---|
42 | ACC W !,"ACCESSION/SEQUENCE NUMBER.....: ",ACCSEQ
|
---|
43 | CLA W !,"CLASS OF CASE.................: ",COCEX
|
---|
44 | PATR S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
45 | S DR="300REFERRED FOR TREATMENT TO....." D ^DIE G:$D(Y) JUMP
|
---|
46 | ZIP S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
47 | S DR="9ZIP AT DIAGNOSIS.............." D ^DIE G:$D(Y) JUMP
|
---|
48 | DAT W !,"DATE OF BIRTH.................: ",DOB
|
---|
49 | RAC S DIE="^ONCO(160,",DA=ONCOPA
|
---|
50 | S DR="8RACE.........................." D ^DIE G:$D(Y) JUMP
|
---|
51 | SPA S DIE="^ONCO(160,",DA=ONCOPA
|
---|
52 | S DR="9SPANISH ORIGIN................" D ^DIE G:$D(Y) JUMP
|
---|
53 | SEX S DIE="^ONCO(160,",DA=ONCOPA
|
---|
54 | S DR="10SEX..........................." D ^DIE G:$D(Y) JUMP
|
---|
55 | PRI S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
56 | S DR="18PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
|
---|
57 | LEN S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
58 | S DR="301LENGTH OF STAY................" D ^DIE G:$D(Y) JUMP
|
---|
59 | PATH W !!,"PATIENT HISTORY OF OTHER CANCER:",!
|
---|
60 | S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
61 | S DR="302 CERVIX......................" D ^DIE G:$D(Y) JUMP
|
---|
62 | S DR="303 COLON......................." D ^DIE G:$D(Y) JUMP
|
---|
63 | S DR="304 BLADDER....................." D ^DIE G:$D(Y) JUMP
|
---|
64 | S DR="305 HEAD AND NECK..............." D ^DIE G:$D(Y) JUMP
|
---|
65 | S DR="306 KIDNEY......................" D ^DIE G:$D(Y) JUMP
|
---|
66 | S DR="307 PROSTATE...................." D ^DIE G:$D(Y) JUMP
|
---|
67 | S DR="308 OTHER......................." D ^DIE G:$D(Y) JUMP
|
---|
68 | FAM W !!,"FAMILY HISTORY OF CANCER:",!
|
---|
69 | S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
70 | S DR="309 BLADDER....................." D ^DIE G:$D(Y) JUMP
|
---|
71 | S DR="310 COLON......................." D ^DIE G:$D(Y) JUMP
|
---|
72 | S DR="311 LUNG........................" D ^DIE G:$D(Y) JUMP
|
---|
73 | S DR="312 PROSTATE...................." D ^DIE G:$D(Y) JUMP
|
---|
74 | S DR="313 OTHER......................." D ^DIE G:$D(Y) JUMP
|
---|
75 | W !
|
---|
76 | SMO S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
77 | S DR="314SMOKING HISTORY (PACKS/DAY)..." D ^DIE G:$D(Y) JUMP
|
---|
78 | DOSH S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
79 | S DR="315DURATION OF SMOKING HISTORY..." D ^DIE G:$D(Y) JUMP
|
---|
80 | DOSFH S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
81 | S DR="316DURATION OF SMOKE-FREE HISTORY" D ^DIE G:$D(Y) JUMP
|
---|
82 | W ! K DIR S DIR(0)="E" D ^DIR
|
---|
83 | G EXIT
|
---|
84 | JUMP ;Jump to prompts
|
---|
85 | S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
|
---|
86 | I X["?" D G JUMP
|
---|
87 | .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
88 | I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
|
---|
89 | .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
90 | S X=TABLE(X)
|
---|
91 | G @X
|
---|
92 | EXIT K HTABLE,TABLE,CHOICES
|
---|
93 | K ACCSEQ,COCIN,COCEX,C,DOB,PRINODE0
|
---|
94 | K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
|
---|
95 | Q
|
---|