source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCCPC1.m@ 1416

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

initial load of FOIAVistA 6/30/08 version

File size: 4.2 KB
Line 
1ONCCPC1 ;Hines OIFO/GWB - PCE Study of Colorectal Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**11,26**;Mar 07, 1995
3 ;Table I
4 K TABLE,HTABLE
5 S TABLE("ACCESSION NUMBER")="AN"
6 S TABLE("SEQUENCE NUMBER")="SN"
7 S TABLE("POSTAL CODE AT DIAGNOSIS")="PCAD"
8 S TABLE("DATE OF BIRTH")="DOB"
9 S TABLE("RACE")="R"
10 S TABLE("SPANISH ORIGIN")="SO"
11 S TABLE("SEX")="S"
12 S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
13 S TABLE("FAMILY HISTORY OF COLORECTAL CANCER")="FHOCC"
14 S TABLE("PERSONAL HISTORY OF COLORECTAL CANCER")="PHOCC"
15 S TABLE("MULTIPLE COLON/RECTUM PRIMARIES 1997")="MPWCR"
16 S TABLE("PERSONAL HISTORY OF NON-COLORECTAL CANCER")="PHONC"
17 S TABLE("PREVIOUS TAH/BSO")="PTAHBSO"
18 S TABLE("OTHER PRIOR CONDITIONS")="OPC"
19 S HTABLE(1)="ACCESSION NUMBER"
20 S HTABLE(2)="SEQUENCE NUMBER"
21 S HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
22 S HTABLE(4)="DATE OF BIRTH"
23 S HTABLE(5)="RACE"
24 S HTABLE(6)="SPANISH ORIGIN"
25 S HTABLE(7)="SEX"
26 S HTABLE(8)="PRIMARY PAYER AT DIAGNOSIS"
27 S HTABLE(9)="FAMILY HISTORY OF COLORECTAL CANCER"
28 S HTABLE(10)="PERSONAL HISTORY OF COLORECTAL CANCER"
29 S HTABLE(11)="MULTIPLE COLON/RECTUM PRIMARIES 1997"
30 S HTABLE(12)="PERSONAL HISTORY OF NON-COLORECTAL CANCER"
31 S HTABLE(13)="PREVIOUS TAH/BSO"
32 S HTABLE(14)="OTHER PRIOR CONDITIONS"
33 S CHOICES=14
34 K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
35 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
36 W @IOF D HEAD^ONCCPC0
37 W !?25,"TABLE I - GENERAL INFORMATION"
38 W !?25,"-----------------------------"
39AN W !,"ACCESSION NUMBER.....................: ",ONC(165.5,ONCONUM,.05)
40SN W !,"SEQUENCE NUMBER......................: ",ONC(165.5,ONCONUM,.06)
41PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
42 S DR="9POSTAL CODE AT DIAGNOSIS............." D ^DIE G:$D(Y) JUMP
43DOB W !,"DATE OF BIRTH........................: ",DOB
44R S DIE="^ONCO(160,",DA=ONCOPA
45 S DR="8RACE................................." D ^DIE G:$D(Y) JUMP
46SO S DIE="^ONCO(160,",DA=ONCOPA
47 S DR="9SPANISH ORIGIN......................." D ^DIE G:$D(Y) JUMP
48S S DIE="^ONCO(160,",DA=ONCOPA
49 S DR="10SEX.................................." D ^DIE G:$D(Y) JUMP
50PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
51 S DR="18PRIMARY PAYER AT DIAGNOSIS..........." D ^DIE G:$D(Y) JUMP
52FHOCC S DIE="^ONCO(165.5,",DA=ONCONUM
53 S DR="700FAMILY HISTORY OF COLORECTAL CANCER.." D ^DIE G:$D(Y) JUMP
54PHOCC S DIE="^ONCO(165.5,",DA=ONCONUM
55 S DR="701PERSONAL HISTORY OF COLORECTAL CANCER" D ^DIE G:$D(Y) JUMP
56MPWCR S DIE="^ONCO(165.5,",DA=ONCONUM
57 S DR="702MULTIPLE COLON/RECTUM PRIMARIES 1997." D ^DIE G:$D(Y) JUMP
58PHONC W !!,"PERSONAL HISTORY OF NON-COLORECTAL CANCER:",!
59 S DIE="^ONCO(165.5,",DA=ONCONUM
60 S DR="703 BREAST............................." D ^DIE G:$D(Y) JUMP
61 S DR="302 CERVIX............................." D ^DIE G:$D(Y) JUMP
62 S DR="704 LUNG..............................." D ^DIE G:$D(Y) JUMP
63 S DR="705 OVARY.............................." D ^DIE G:$D(Y) JUMP
64 S DR="706 OVARIAN CARCINOMA, PERITONEAL SITE." D ^DIE G:$D(Y) JUMP
65 S DR="307 PROSTATE..........................." D ^DIE G:$D(Y) JUMP
66 S DR="707 STOMACH............................" D ^DIE G:$D(Y) JUMP
67 S DR="708 THYROID............................" D ^DIE G:$D(Y) JUMP
68 S DR="709 UTERUS............................." D ^DIE G:$D(Y) JUMP
69 S DR="308 OTHER.............................." D ^DIE G:$D(Y) JUMP
70 W !
71PTAHBSO S DIE="^ONCO(165.5,",DA=ONCONUM
72 S DR="710PREVIOUS TAH/BSO....................." D ^DIE G:$D(Y) JUMP
73OPC W !!,"OTHER PRIOR CONDITIONS:",!
74 S DIE="^ONCO(165.5,",DA=ONCONUM
75 S DR="711 FAP................................" D ^DIE G:$D(Y) JUMP
76 S DR="712 HNPCC.............................." D ^DIE G:$D(Y) JUMP
77 S DR="713 IBD................................" D ^DIE G:$D(Y) JUMP
78 S DR="714 PRIOR POLYPS......................." D ^DIE G:$D(Y) JUMP
79 S DR="715 POLYPS............................." D ^DIE G:$D(Y) JUMP
80 W ! K DIR S DIR(0)="E" D ^DIR
81 G EXIT
82JUMP ;Jump to prompts
83 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
84 I X["?" D G JUMP
85 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
86 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
87 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
88 S X=TABLE(X)
89 G @X
90EXIT K HTABLE,TABLE,CHOICES
91 K DOB
92 K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
93 Q
Note: See TracBrowser for help on using the repository browser.