source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCNPC1.m@ 1036

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

initial load of WorldVistAEHR

File size: 4.8 KB
Line 
1ONCNPC1 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/00
2 ;;2.11;ONCOLOGY;**11,13,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("AGE AT DIAGNOSIS")="AAD"
10 S TABLE("RACE")="R"
11 S TABLE("SPANISH ORIGIN")="SO"
12 S TABLE("SEX")="S"
13 S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
14 S TABLE("FAMILY HISTORY OF CANCER")="FHOC"
15 S TABLE("PERSONAL HISTORY OF ANY CANCER")="PHOAC"
16 S TABLE("PRE-EXISTING CONDITIONS")="PC"
17 S TABLE("PREVIOUS CHEMOTHERAPY/RADIATION THERAPY")="PCRT"
18 S TABLE("AIDS RISK CATEGORY")="ARC"
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)="AGE AT DIAGNOSIS"
24 S HTABLE(6)="RACE"
25 S HTABLE(7)="SPANISH ORIGIN"
26 S HTABLE(8)="SEX"
27 S HTABLE(9)="PRIMARY PAYER AT DIAGNOSIS"
28 S HTABLE(10)="FAMILY HISTORY OF CANCER"
29 S HTABLE(11)="PERSONAL HISTORY OF ANY CANCER"
30 S HTABLE(12)="PRE-EXISTING CONDITIONS"
31 S HTABLE(13)="PREVIOUS CHEMOTHERAPY/RADIATION THERAPY"
32 S HTABLE(14)="AIDS RISK CATEGOR"
33 S CHOICES=14
34 K DIQ S DIC="^ONCO(165.5,",DR=".05;.06;4",DA=ONCONUM
35 S DIQ="ONC" D EN^DIQ1
36 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
37 W @IOF D HEAD^ONCNPC0
38 W !?25,"TABLE I - GENERAL INFORMATION"
39 W !?25,"-----------------------------"
40AN W !,"ACCESSION NUMBER.....................: ",ONC(165.5,ONCONUM,.05)
41SN W !,"SEQUENCE NUMBER......................: ",ONC(165.5,ONCONUM,.06)
42PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
43 S DR="9POSTAL CODE AT DIAGNOSIS............." D ^DIE G:$D(Y) JUMP
44DOB W !,"DATE OF BIRTH........................: ",DOB
45AAD W !,"AGE AT DIAGNOSIS.....................: ",ONC(165.5,ONCONUM,4)
46R S DIE="^ONCO(160,",DA=ONCOPA
47 S DR="8RACE................................." D ^DIE G:$D(Y) JUMP
48SO S DIE="^ONCO(160,",DA=ONCOPA
49 S DR="9SPANISH ORIGIN......................." D ^DIE G:$D(Y) JUMP
50S S DIE="^ONCO(160,",DA=ONCOPA
51 S DR="10SEX.................................." D ^DIE G:$D(Y) JUMP
52PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
53 S DR="18PRIMARY PAYER AT DIAGNOSIS..........." D ^DIE G:$D(Y) JUMP
54FHOC W !!,"FAMILY HISTORY OF CANCER:",!
55 S DIE="^ONCO(165.5,",DA=ONCONUM
56 S DR="800 LEUKEMIA..........................." D ^DIE G:$D(Y) JUMP
57 S DR="801 NON-HODGKIN'S LYMPHOMA............." D ^DIE G:$D(Y) JUMP
58 S DR="802 HODGKIN'S LYMPHOMA................." D ^DIE G:$D(Y) JUMP
59 S DR="313 OTHER CANCER......................." D ^DIE G:$D(Y) JUMP
60PHOAC W !!,"PERSONAL HISTORY OF ANY CANCER:",!
61 D CHFPS^ONCOMNI
62 I X="" S DR="803 1ST PRIMARY SITE..................."
63 E S DR="803 1ST PRIMARY SITE...................//"_X
64 D ^DIE G:$D(Y) JUMP
65 D CHFPH^ONCOMNI
66 I X="" S DR="804 1ST PRIMARY HISTOLOGY.............."
67 E S DR="804 1ST PRIMARY HISTOLOGY..............//"_X
68 D ^DIE G:$D(Y) JUMP
69 D CHSPS^ONCOMNI
70 I X="" S DR="805 2ND PRIMARY SITE..................."
71 E S DR="805 2ND PRIMARY SITE...................//"_X
72 D ^DIE G:$D(Y) JUMP
73 D CHSPH^ONCOMNI
74 I X="" S DR="806 2ND PRIMARY HISTOLOGY.............."
75 E S DR="806 2ND PRIMARY HISTOLOGY..............//"_X
76 D ^DIE G:$D(Y) JUMP
77PC W !!,"PRE-EXISTING CONDITIONS:",!
78 S DIE="^ONCO(165.5,",DA=ONCONUM
79 S DR="807 ORGAN TRANSPLANT..................." D ^DIE G:$D(Y) JUMP
80 S DR="808 HIV POSITIVE......................." D ^DIE G:$D(Y) JUMP
81 S DR="809 CROHN'S DISEASE/ULCERATIVE COLITIS." D ^DIE G:$D(Y) JUMP
82 S DR="810 HASHIMOTO'S THYROIDITIS............" D ^DIE G:$D(Y) JUMP
83 S DR="811 SYSTEMIC LUPUS ERYTHEMATOSUS......." D ^DIE G:$D(Y) JUMP
84 S DR="812 RHEUMATOID ARTHRITIS/SJOGREN'S SYN." D ^DIE G:$D(Y) JUMP
85 S DR="813 PNEUMOCYSTIS CARINII..............." D ^DIE G:$D(Y) JUMP
86 S DR="814 CMV INFECTION......................" D ^DIE G:$D(Y) JUMP
87 S DR="815 TUBERCULOSIS......................." D ^DIE G:$D(Y) JUMP
88 S DR="816 MYCOBACTERIUM AVIUM................" D ^DIE G:$D(Y) JUMP
89 S DR="817 OTHER PARASITIC INFECTIONS........." D ^DIE G:$D(Y) JUMP
90 S DR="818 OTHER CONGENTIAL DISEASES.........." D ^DIE G:$D(Y) JUMP
91 S DR="819 OPPORTUNISTIC DISEASE (W/I 2 YEARS)" D ^DIE G:$D(Y) JUMP
92PCRT W !!,"PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:",!
93 S DIE="^ONCO(165.5,",DA=ONCONUM
94 S DR="820 CHEMOTHERAPY......................." D ^DIE G:$D(Y) JUMP
95 S DR="821 RADIATION THERAPY.................." D ^DIE G:$D(Y) JUMP
96ARC S DIE="^ONCO(165.5,",DA=ONCONUM W !
97 S DR="822AIDS RISK CATEGORY..................." D ^DIE G:$D(Y) JUMP
98 W ! K DIR S DIR(0)="E" D ^DIR
99 G EXIT
100JUMP ;Jump to prompts
101 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
102 I X["?" D G JUMP
103 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
104 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
105 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
106 S X=TABLE(X)
107 G @X
108EXIT K HTABLE,TABLE,CHOICES
109 K DOB
110 K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
111 Q
Note: See TracBrowser for help on using the repository browser.