ONCNPC1 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;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("AGE AT DIAGNOSIS")="AAD"
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 CANCER")="FHOC"
S TABLE("PERSONAL HISTORY OF ANY CANCER")="PHOAC"
S TABLE("PRE-EXISTING CONDITIONS")="PC"
S TABLE("PREVIOUS CHEMOTHERAPY/RADIATION THERAPY")="PCRT"
S TABLE("AIDS RISK CATEGORY")="ARC"
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)="AGE AT DIAGNOSIS"
S HTABLE(6)="RACE"
S HTABLE(7)="SPANISH ORIGIN"
S HTABLE(8)="SEX"
S HTABLE(9)="PRIMARY PAYER AT DIAGNOSIS"
S HTABLE(10)="FAMILY HISTORY OF CANCER"
S HTABLE(11)="PERSONAL HISTORY OF ANY CANCER"
S HTABLE(12)="PRE-EXISTING CONDITIONS"
S HTABLE(13)="PREVIOUS CHEMOTHERAPY/RADIATION THERAPY"
S HTABLE(14)="AIDS RISK CATEGOR"
S CHOICES=14
K DIQ S DIC="^ONCO(165.5,",DR=".05;.06;4",DA=ONCONUM
S DIQ="ONC" D EN^DIQ1
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
W @IOF D HEAD^ONCNPC0
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
AAD W !,"AGE AT DIAGNOSIS.....................: ",ONC(165.5,ONCONUM,4)
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
FHOC W !!,"FAMILY HISTORY OF CANCER:",!
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="800 LEUKEMIA..........................." D ^DIE G:$D(Y) JUMP
S DR="801 NON-HODGKIN'S LYMPHOMA............." D ^DIE G:$D(Y) JUMP
S DR="802 HODGKIN'S LYMPHOMA................." D ^DIE G:$D(Y) JUMP
S DR="313 OTHER CANCER......................." D ^DIE G:$D(Y) JUMP
PHOAC W !!,"PERSONAL HISTORY OF ANY CANCER:",!
D CHFPS^ONCOMNI
I X="" S DR="803 1ST PRIMARY SITE..................."
E S DR="803 1ST PRIMARY SITE...................//"_X
D ^DIE G:$D(Y) JUMP
D CHFPH^ONCOMNI
I X="" S DR="804 1ST PRIMARY HISTOLOGY.............."
E S DR="804 1ST PRIMARY HISTOLOGY..............//"_X
D ^DIE G:$D(Y) JUMP
D CHSPS^ONCOMNI
I X="" S DR="805 2ND PRIMARY SITE..................."
E S DR="805 2ND PRIMARY SITE...................//"_X
D ^DIE G:$D(Y) JUMP
D CHSPH^ONCOMNI
I X="" S DR="806 2ND PRIMARY HISTOLOGY.............."
E S DR="806 2ND PRIMARY HISTOLOGY..............//"_X
D ^DIE G:$D(Y) JUMP
PC W !!,"PRE-EXISTING CONDITIONS:",!
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="807 ORGAN TRANSPLANT..................." D ^DIE G:$D(Y) JUMP
S DR="808 HIV POSITIVE......................." D ^DIE G:$D(Y) JUMP
S DR="809 CROHN'S DISEASE/ULCERATIVE COLITIS." D ^DIE G:$D(Y) JUMP
S DR="810 HASHIMOTO'S THYROIDITIS............" D ^DIE G:$D(Y) JUMP
S DR="811 SYSTEMIC LUPUS ERYTHEMATOSUS......." D ^DIE G:$D(Y) JUMP
S DR="812 RHEUMATOID ARTHRITIS/SJOGREN'S SYN." D ^DIE G:$D(Y) JUMP
S DR="813 PNEUMOCYSTIS CARINII..............." D ^DIE G:$D(Y) JUMP
S DR="814 CMV INFECTION......................" D ^DIE G:$D(Y) JUMP
S DR="815 TUBERCULOSIS......................." D ^DIE G:$D(Y) JUMP
S DR="816 MYCOBACTERIUM AVIUM................" D ^DIE G:$D(Y) JUMP
S DR="817 OTHER PARASITIC INFECTIONS........." D ^DIE G:$D(Y) JUMP
S DR="818 OTHER CONGENTIAL DISEASES.........." D ^DIE G:$D(Y) JUMP
S DR="819 OPPORTUNISTIC DISEASE (W/I 2 YEARS)" D ^DIE G:$D(Y) JUMP
PCRT W !!,"PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:",!
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="820 CHEMOTHERAPY......................." D ^DIE G:$D(Y) JUMP
S DR="821 RADIATION THERAPY.................." D ^DIE G:$D(Y) JUMP
ARC S DIE="^ONCO(165.5,",DA=ONCONUM W !
S DR="822AIDS RISK CATEGORY..................." 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
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCNPC1 5042 printed Oct 16, 2024@18:24:35 Page 2
ONCNPC1 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Table I
+3 KILL TABLE,HTABLE
+4 SET TABLE("ACCESSION NUMBER")="AN"
+5 SET TABLE("SEQUENCE NUMBER")="SN"
+6 SET TABLE("POSTAL CODE AT DIAGNOSIS")="PCAD"
+7 SET TABLE("DATE OF BIRTH")="DOB"
+8 SET TABLE("AGE AT DIAGNOSIS")="AAD"
+9 SET TABLE("RACE")="R"
+10 SET TABLE("SPANISH ORIGIN")="SO"
+11 SET TABLE("SEX")="S"
+12 SET TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
+13 SET TABLE("FAMILY HISTORY OF CANCER")="FHOC"
+14 SET TABLE("PERSONAL HISTORY OF ANY CANCER")="PHOAC"
+15 SET TABLE("PRE-EXISTING CONDITIONS")="PC"
+16 SET TABLE("PREVIOUS CHEMOTHERAPY/RADIATION THERAPY")="PCRT"
+17 SET TABLE("AIDS RISK CATEGORY")="ARC"
+18 SET HTABLE(1)="ACCESSION NUMBER"
+19 SET HTABLE(2)="SEQUENCE NUMBER"
+20 SET HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
+21 SET HTABLE(4)="DATE OF BIRTH"
+22 SET HTABLE(5)="AGE AT DIAGNOSIS"
+23 SET HTABLE(6)="RACE"
+24 SET HTABLE(7)="SPANISH ORIGIN"
+25 SET HTABLE(8)="SEX"
+26 SET HTABLE(9)="PRIMARY PAYER AT DIAGNOSIS"
+27 SET HTABLE(10)="FAMILY HISTORY OF CANCER"
+28 SET HTABLE(11)="PERSONAL HISTORY OF ANY CANCER"
+29 SET HTABLE(12)="PRE-EXISTING CONDITIONS"
+30 SET HTABLE(13)="PREVIOUS CHEMOTHERAPY/RADIATION THERAPY"
+31 SET HTABLE(14)="AIDS RISK CATEGOR"
+32 SET CHOICES=14
+33 KILL DIQ
SET DIC="^ONCO(165.5,"
SET DR=".05;.06;4"
SET DA=ONCONUM
+34 SET DIQ="ONC"
DO EN^DIQ1
+35 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+36 WRITE @IOF
DO HEAD^ONCNPC0
+37 WRITE !?25,"TABLE I - GENERAL INFORMATION"
+38 WRITE !?25,"-----------------------------"
AN WRITE !,"ACCESSION NUMBER.....................: ",ONC(165.5,ONCONUM,.05)
SN WRITE !,"SEQUENCE NUMBER......................: ",ONC(165.5,ONCONUM,.06)
PCAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="9POSTAL CODE AT DIAGNOSIS............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOB WRITE !,"DATE OF BIRTH........................: ",DOB
AAD WRITE !,"AGE AT DIAGNOSIS.....................: ",ONC(165.5,ONCONUM,4)
R SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="8RACE................................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SO SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="9SPANISH ORIGIN......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
S SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="10SEX.................................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PPAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18PRIMARY PAYER AT DIAGNOSIS..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
FHOC WRITE !!,"FAMILY HISTORY OF CANCER:",!
+1 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+2 SET DR="800 LEUKEMIA..........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="801 NON-HODGKIN'S LYMPHOMA............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="802 HODGKIN'S LYMPHOMA................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="313 OTHER CANCER......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PHOAC WRITE !!,"PERSONAL HISTORY OF ANY CANCER:",!
+1 DO CHFPS^ONCOMNI
+2 IF X=""
SET DR="803 1ST PRIMARY SITE..................."
+3 IF '$TEST
SET DR="803 1ST PRIMARY SITE...................//"_X
+4 DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 DO CHFPH^ONCOMNI
+6 IF X=""
SET DR="804 1ST PRIMARY HISTOLOGY.............."
+7 IF '$TEST
SET DR="804 1ST PRIMARY HISTOLOGY..............//"_X
+8 DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 DO CHSPS^ONCOMNI
+10 IF X=""
SET DR="805 2ND PRIMARY SITE..................."
+11 IF '$TEST
SET DR="805 2ND PRIMARY SITE...................//"_X
+12 DO ^DIE
if $DATA(Y)
GOTO JUMP
+13 DO CHSPH^ONCOMNI
+14 IF X=""
SET DR="806 2ND PRIMARY HISTOLOGY.............."
+15 IF '$TEST
SET DR="806 2ND PRIMARY HISTOLOGY..............//"_X
+16 DO ^DIE
if $DATA(Y)
GOTO JUMP
PC WRITE !!,"PRE-EXISTING CONDITIONS:",!
+1 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+2 SET DR="807 ORGAN TRANSPLANT..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="808 HIV POSITIVE......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="809 CROHN'S DISEASE/ULCERATIVE COLITIS."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="810 HASHIMOTO'S THYROIDITIS............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="811 SYSTEMIC LUPUS ERYTHEMATOSUS......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="812 RHEUMATOID ARTHRITIS/SJOGREN'S SYN."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="813 PNEUMOCYSTIS CARINII..............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="814 CMV INFECTION......................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="815 TUBERCULOSIS......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="816 MYCOBACTERIUM AVIUM................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+12 SET DR="817 OTHER PARASITIC INFECTIONS........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+13 SET DR="818 OTHER CONGENTIAL DISEASES.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+14 SET DR="819 OPPORTUNISTIC DISEASE (W/I 2 YEARS)"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PCRT WRITE !!,"PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:",!
+1 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+2 SET DR="820 CHEMOTHERAPY......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="821 RADIATION THERAPY.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
ARC SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
WRITE !
+1 SET DR="822AIDS RISK CATEGORY..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+3 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!,"GO TO: ",X:DTIME
IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+2 IF X["?"
Begin DoDot:1
+3 WRITE !,"CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+4 IF '$DATA(TABLE(X))
SET XX=X
SET X=$ORDER(TABLE(X))
IF ($PIECE(X,XX,1)'="")!(X="")
WRITE *7,"??"
Begin DoDot:1
+5 WRITE !,"CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+6 SET X=TABLE(X)
+7 GOTO @X
EXIT KILL HTABLE,TABLE,CHOICES
+1 KILL DOB
+2 KILL DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
+3 QUIT