source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCTPC1.m@ 1661

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

initial load of WorldVistAEHR

File size: 3.5 KB
RevLine 
[613]1ONCTPC1 ;Hines OIFO/GWB - PCE Study of Thyroid Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**6,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 THYROID CANCER")="FHOTC"
14 S TABLE("PERSONAL HISTORY OF NON-THYROID CANCER")="PHONC"
15 S TABLE("PRIOR EXPOSURE TO RADIATION")="PETR"
16 S TABLE("PERSONAL HISTORY OF GOITER")="PHOG"
17 S TABLE("FAMILY HISTORY OF THYROID DISEASE")="FHOGOOT"
18 S TABLE("PERSONAL HISTORY OF GRAVES DISEASE")="PHOGD"
19 S TABLE("PERSONAL HISTORY OF THYROIDITIS")="PHOT"
20 S HTABLE(1)="ACCESSION NUMBER"
21 S HTABLE(2)="SEQUENCE NUMBER"
22 S HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
23 S HTABLE(4)="DATE OF BIRTH"
24 S HTABLE(5)="RACE"
25 S HTABLE(6)="SPANISH ORIGIN"
26 S HTABLE(7)="SEX"
27 S HTABLE(8)="PRIMARY PAYER AT DIAGNOSIS"
28 S HTABLE(9)="FAMILY HISTORY OF THYROID CANCER"
29 S HTABLE(10)="PERSONAL HISTORY OF NON-THYROID CANCER"
30 S HTABLE(11)="PRIOR EXPOSURE TO RADIATION"
31 S HTABLE(12)="PERSONAL HISTORY OF GOITER"
32 S HTABLE(13)="FAMILY HISTORY OF GOITER OR OTHER THYROID DISEASE"
33 S HTABLE(14)="PERSONAL HISTORY OF GRAVES DISEASE"
34 S HTABLE(15)="PERSONAL HISTORY OF THYROIDITIS"
35 S CHOICES=15
36 K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
37 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
38 W @IOF D HEAD^ONCTPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
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
52FHOTC S DIE="^ONCO(165.5,",DA=ONCONUM
53 S DR="400FAMILY HISTORY OF THYROID CANCER.." D ^DIE G:$D(Y) JUMP
54PHONC W !!,"PERSONAL HISTORY OF NON-THYROID CANCER:",!
55 S DIE="^ONCO(165.5,",DA=ONCONUM
56 S DR="401 LYMPHOMA........................" D ^DIE G:$D(Y) JUMP
57 S DR="402 CHILDHOOD MALIGNANCY............" D ^DIE G:$D(Y) JUMP
58 S DR="308 OTHER..........................." D ^DIE G:$D(Y) JUMP
59 W !
60PETR S DIE="^ONCO(165.5,",DA=ONCONUM
61 S DR="403PRIOR EXPOSURE TO RADIATION......." D ^DIE G:$D(Y) JUMP
62PHOG S DIE="^ONCO(165.5,",DA=ONCONUM
63 S DR="404PERSONAL HISTORY OF GOITER........" D ^DIE G:$D(Y) JUMP
64FHOGOOT S DIE="^ONCO(165.5,",DA=ONCONUM
65 S DR="405FAMILY HISTORY THYROID DISEASE...." D ^DIE G:$D(Y) JUMP
66PHOGD S DIE="^ONCO(165.5,",DA=ONCONUM
67 S DR="406PERSONAL HISTORY OF GRAVES DISEASE" D ^DIE G:$D(Y) JUMP
68PHOT S DIE="^ONCO(165.5,",DA=ONCONUM
69 S DR="407PERSONAL HISTORY OF THYROIDITIS..." D ^DIE G:$D(Y) JUMP
70 W ! K DIR S DIR(0)="E" D ^DIR
71 G EXIT
72JUMP ;Jump to prompts
73 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
74 I X["?" D G JUMP
75 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
76 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
77 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
78 S X=TABLE(X)
79 G @X
80EXIT K HTABLE,TABLE,CHOICES
81 K DOB
82 K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
83 Q
Note: See TracBrowser for help on using the repository browser.