94 lines
4.2 KiB
Mathematica
94 lines
4.2 KiB
Mathematica
ONCCPC1 ;Hines OIFO/GWB - PCE Study of Colorectal Cancer ;05/30/00
|
|
;;2.11;ONCOLOGY;**11,26**;Mar 07, 1995
|
|
;Table I
|
|
K TABLE,HTABLE
|
|
S TABLE("ACCESSION NUMBER")="AN"
|
|
S TABLE("SEQUENCE NUMBER")="SN"
|
|
S TABLE("POSTAL CODE AT DIAGNOSIS")="PCAD"
|
|
S TABLE("DATE OF BIRTH")="DOB"
|
|
S TABLE("RACE")="R"
|
|
S TABLE("SPANISH ORIGIN")="SO"
|
|
S TABLE("SEX")="S"
|
|
S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
|
|
S TABLE("FAMILY HISTORY OF COLORECTAL CANCER")="FHOCC"
|
|
S TABLE("PERSONAL HISTORY OF COLORECTAL CANCER")="PHOCC"
|
|
S TABLE("MULTIPLE COLON/RECTUM PRIMARIES 1997")="MPWCR"
|
|
S TABLE("PERSONAL HISTORY OF NON-COLORECTAL CANCER")="PHONC"
|
|
S TABLE("PREVIOUS TAH/BSO")="PTAHBSO"
|
|
S TABLE("OTHER PRIOR CONDITIONS")="OPC"
|
|
S HTABLE(1)="ACCESSION NUMBER"
|
|
S HTABLE(2)="SEQUENCE NUMBER"
|
|
S HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
|
|
S HTABLE(4)="DATE OF BIRTH"
|
|
S HTABLE(5)="RACE"
|
|
S HTABLE(6)="SPANISH ORIGIN"
|
|
S HTABLE(7)="SEX"
|
|
S HTABLE(8)="PRIMARY PAYER AT DIAGNOSIS"
|
|
S HTABLE(9)="FAMILY HISTORY OF COLORECTAL CANCER"
|
|
S HTABLE(10)="PERSONAL HISTORY OF COLORECTAL CANCER"
|
|
S HTABLE(11)="MULTIPLE COLON/RECTUM PRIMARIES 1997"
|
|
S HTABLE(12)="PERSONAL HISTORY OF NON-COLORECTAL CANCER"
|
|
S HTABLE(13)="PREVIOUS TAH/BSO"
|
|
S HTABLE(14)="OTHER PRIOR CONDITIONS"
|
|
S CHOICES=14
|
|
K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
|
|
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
|
|
W @IOF D HEAD^ONCCPC0
|
|
W !?25,"TABLE I - GENERAL INFORMATION"
|
|
W !?25,"-----------------------------"
|
|
AN W !,"ACCESSION NUMBER.....................: ",ONC(165.5,ONCONUM,.05)
|
|
SN W !,"SEQUENCE NUMBER......................: ",ONC(165.5,ONCONUM,.06)
|
|
PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="9POSTAL CODE AT DIAGNOSIS............." D ^DIE G:$D(Y) JUMP
|
|
DOB W !,"DATE OF BIRTH........................: ",DOB
|
|
R S DIE="^ONCO(160,",DA=ONCOPA
|
|
S DR="8RACE................................." D ^DIE G:$D(Y) JUMP
|
|
SO S DIE="^ONCO(160,",DA=ONCOPA
|
|
S DR="9SPANISH ORIGIN......................." D ^DIE G:$D(Y) JUMP
|
|
S S DIE="^ONCO(160,",DA=ONCOPA
|
|
S DR="10SEX.................................." D ^DIE G:$D(Y) JUMP
|
|
PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="18PRIMARY PAYER AT DIAGNOSIS..........." D ^DIE G:$D(Y) JUMP
|
|
FHOCC S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="700FAMILY HISTORY OF COLORECTAL CANCER.." D ^DIE G:$D(Y) JUMP
|
|
PHOCC S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="701PERSONAL HISTORY OF COLORECTAL CANCER" D ^DIE G:$D(Y) JUMP
|
|
MPWCR S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="702MULTIPLE COLON/RECTUM PRIMARIES 1997." D ^DIE G:$D(Y) JUMP
|
|
PHONC W !!,"PERSONAL HISTORY OF NON-COLORECTAL CANCER:",!
|
|
S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="703 BREAST............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="302 CERVIX............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="704 LUNG..............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="705 OVARY.............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="706 OVARIAN CARCINOMA, PERITONEAL SITE." D ^DIE G:$D(Y) JUMP
|
|
S DR="307 PROSTATE..........................." D ^DIE G:$D(Y) JUMP
|
|
S DR="707 STOMACH............................" D ^DIE G:$D(Y) JUMP
|
|
S DR="708 THYROID............................" D ^DIE G:$D(Y) JUMP
|
|
S DR="709 UTERUS............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="308 OTHER.............................." D ^DIE G:$D(Y) JUMP
|
|
W !
|
|
PTAHBSO S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="710PREVIOUS TAH/BSO....................." D ^DIE G:$D(Y) JUMP
|
|
OPC W !!,"OTHER PRIOR CONDITIONS:",!
|
|
S DIE="^ONCO(165.5,",DA=ONCONUM
|
|
S DR="711 FAP................................" D ^DIE G:$D(Y) JUMP
|
|
S DR="712 HNPCC.............................." D ^DIE G:$D(Y) JUMP
|
|
S DR="713 IBD................................" D ^DIE G:$D(Y) JUMP
|
|
S DR="714 PRIOR POLYPS......................." D ^DIE G:$D(Y) JUMP
|
|
S DR="715 POLYPS............................." D ^DIE G:$D(Y) JUMP
|
|
W ! K DIR S DIR(0)="E" D ^DIR
|
|
G EXIT
|
|
JUMP ;Jump to prompts
|
|
S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
|
|
I X["?" D G JUMP
|
|
.W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
|
I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
|
|
.W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
|
S X=TABLE(X)
|
|
G @X
|
|
EXIT K HTABLE,TABLE,CHOICES
|
|
K DOB
|
|
K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
|
|
Q
|