source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCIPC1.m@ 1162

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

initial load of FOIAVistA 6/30/08 version

File size: 4.6 KB
Line 
1ONCIPC1 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;01/06/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;Patient Information
4 K TABLE,HTABLE
5 S TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
6 S TABLE("2. ACCESSION NUMBER")="ACC"
7 S TABLE("3. SEQUENCE NUMBER")="SEQ"
8 S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
9 S TABLE("5. DATE OF BIRTH")="DOB"
10 S TABLE("6. RACE")="RACE"
11 S TABLE("7. SPANISH ORIGIN")="SO"
12 S TABLE("8. SEX")="SEX"
13 S TABLE("9. HANDEDNESS")="HAND"
14 S TABLE("10. PRIOR EXPOSURE TO RADIATION")="PER"
15 S TABLE("11. PRIMARY PAYER AT DIAGNOSIS")="PPD"
16 S TABLE("12. PRIOR MEDICAL CONDITIONS")="PMC"
17 S TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHC"
18 S TABLE("14. GENETIC PREDISPOSITION")="GP"
19 S TABLE("15. USUAL OCCUPATION")="UO"
20 S TABLE("16. USUAL INDUSTRY")="UI"
21 S HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
22 S HTABLE(2)=" 2. ACCESSION NUMBER"
23 S HTABLE(3)=" 3. SEQUENCE NUMBER"
24 S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
25 S HTABLE(5)=" 5. DATE OF BIRTH"
26 S HTABLE(6)=" 6. RACE"
27 S HTABLE(7)=" 7. SPANISH ORIGIN"
28 S HTABLE(8)=" 8. SEX"
29 S HTABLE(9)=" 9. HANDEDNESS"
30 S HTABLE(10)="10. PRIOR EXPOSURE TO RADIATION"
31 S HTABLE(11)="11. PRIMARY PAYER AT DIAGNOSIS"
32 S HTABLE(12)="12. PRIOR MEDICAL CONDITIONS"
33 S HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
34 S HTABLE(14)="14. GENETIC PREDISPOSITION"
35 S HTABLE(15)="15. USUAL OCCUPATION"
36 S HTABLE(16)="16. USUAL INDUSTRY"
37 S CHOICES=16
38 S IE=ONCONUM
39 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
40 W @IOF D HEAD^ONCIPC0
41 W !," PATIENT INFORMATION"
42 W !," -------------------"
43FIN W !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
44ACC W !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
45SEQ W !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
46PCD S DIE="^ONCO(165.5,",DA=ONCONUM
47 S DR="9 4. POSTAL CODE AT DIAGNOSIS......" D ^DIE G:$D(Y) JUMP
48DOB W !," 5. DATE OF BIRTH.................: ",DOB
49RACE S DIE="^ONCO(160,",DA=ONCOPA
50 S DR="8 6. RACE.........................." D ^DIE G:$D(Y) JUMP
51SO S DIE="^ONCO(160,",DA=ONCOPA
52 S DR="9 7. SPANISH ORIGIN................" D ^DIE G:$D(Y) JUMP
53SEX S DIE="^ONCO(160,",DA=ONCOPA
54 S DR="10 8. SEX..........................." D ^DIE G:$D(Y) JUMP
55HAND S DIE="^ONCO(165.5,",DA=ONCONUM
56 S DR="1200 9. HANDEDNESS...................." D ^DIE G:$D(Y) JUMP
57PER S DIE="^ONCO(165.5,",DA=ONCONUM
58 S DR="403 10. PRIOR EXPOSURE TO RADIATION..." D ^DIE G:$D(Y) JUMP
59PPD S DIE="^ONCO(165.5,",DA=ONCONUM
60 S DR="18 11. PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
61PMC W !!," 12. PRIOR MEDICAL CONDITIONS:"
62 S DR="1201 HYPERTENSION................." D ^DIE G:$D(Y) JUMP
63 S DR="1202 MULTIPLE SCLEROSIS (MS)......" D ^DIE G:$D(Y) JUMP
64 S DR="1203 DIABETES....................." D ^DIE G:$D(Y) JUMP
65 S DR="354 MYOCARDIAL INFARCTION (MI)..." D ^DIE G:$D(Y) JUMP
66 S DR="1204 CEREBROVASCULAR DISEASE......" D ^DIE G:$D(Y) JUMP
67PHC W !!," 13. PERSONAL HISTORY OF OTHER CANCER:"
68 S DR="1205 BRAIN........................" D ^DIE G:$D(Y) JUMP
69 S DR="1206 BREAST......................." D ^DIE G:$D(Y) JUMP
70 S DR="1207 PROSTATE....................." D ^DIE G:$D(Y) JUMP
71 S DR="1208 MALIGNANT MELANOMA..........." D ^DIE G:$D(Y) JUMP
72 S DR="1209 OTHER SKIN CANCER............" D ^DIE G:$D(Y) JUMP
73 S DR="1210 LEUKEMIA....................." D ^DIE G:$D(Y) JUMP
74 S DR="1211 COLON OR OTHER GI CANCERS...." D ^DIE G:$D(Y) JUMP
75 S DR="1212 OTHER........................" D ^DIE G:$D(Y) JUMP
76GP W !!," 14. GENETIC PREDISPOSITION:"
77 S DR="1213 NEUROFIBROMATOSIS............" D ^DIE G:$D(Y) JUMP
78 S DR="1214 VON HIPPEL-LINDAU DISEASE...." D ^DIE G:$D(Y) JUMP
79 S DR="1215 TUBEROUS SCLEROSIS..........." D ^DIE G:$D(Y) JUMP
80 S DR="1216 TURCOT SYNDROME.............." D ^DIE G:$D(Y) JUMP
81 S DR="1217 LI-FRAUMENI SYNDROME........." D ^DIE G:$D(Y) JUMP
82 S DR="1218 KOWDEN DISEASE..............." D ^DIE G:$D(Y) JUMP
83 S DR="1219 NEVOID BASAL CELL CARCINOMA.." D ^DIE G:$D(Y) JUMP
84UO W !!," 15. USUAL OCCUPATION..............: ",$$OCCUP^ONCACDU1(ONCOPA)
85UI W !," 16. USUAL INDUSTRY................: ",$$IND^ONCACDU1(ONCOPA)
86 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
87 G EXIT
88JUMP ;Jump to prompts
89 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
90 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:X?1.2N X=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 DOB,CHOICES,HTABLE,IE,TABLE
98 K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
99 Q
Note: See TracBrowser for help on using the repository browser.