ONCIPC1 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;01/06/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Patient Information
K TABLE,HTABLE
S TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
S TABLE("2. ACCESSION NUMBER")="ACC"
S TABLE("3. SEQUENCE NUMBER")="SEQ"
S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
S TABLE("5. DATE OF BIRTH")="DOB"
S TABLE("6. RACE")="RACE"
S TABLE("7. SPANISH ORIGIN")="SO"
S TABLE("8. SEX")="SEX"
S TABLE("9. HANDEDNESS")="HAND"
S TABLE("10. PRIOR EXPOSURE TO RADIATION")="PER"
S TABLE("11. PRIMARY PAYER AT DIAGNOSIS")="PPD"
S TABLE("12. PRIOR MEDICAL CONDITIONS")="PMC"
S TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHC"
S TABLE("14. GENETIC PREDISPOSITION")="GP"
S TABLE("15. USUAL OCCUPATION")="UO"
S TABLE("16. USUAL INDUSTRY")="UI"
S HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
S HTABLE(2)=" 2. ACCESSION NUMBER"
S HTABLE(3)=" 3. SEQUENCE NUMBER"
S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
S HTABLE(5)=" 5. DATE OF BIRTH"
S HTABLE(6)=" 6. RACE"
S HTABLE(7)=" 7. SPANISH ORIGIN"
S HTABLE(8)=" 8. SEX"
S HTABLE(9)=" 9. HANDEDNESS"
S HTABLE(10)="10. PRIOR EXPOSURE TO RADIATION"
S HTABLE(11)="11. PRIMARY PAYER AT DIAGNOSIS"
S HTABLE(12)="12. PRIOR MEDICAL CONDITIONS"
S HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
S HTABLE(14)="14. GENETIC PREDISPOSITION"
S HTABLE(15)="15. USUAL OCCUPATION"
S HTABLE(16)="16. USUAL INDUSTRY"
S CHOICES=16
S IE=ONCONUM
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
W @IOF D HEAD^ONCIPC0
W !," PATIENT INFORMATION"
W !," -------------------"
FIN W !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
ACC W !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
SEQ W !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
PCD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="9 4. POSTAL CODE AT DIAGNOSIS......" D ^DIE G:$D(Y) JUMP
DOB W !," 5. DATE OF BIRTH.................: ",DOB
RACE S DIE="^ONCO(160,",DA=ONCOPA
S DR="8 6. RACE.........................." D ^DIE G:$D(Y) JUMP
SO S DIE="^ONCO(160,",DA=ONCOPA
S DR="9 7. SPANISH ORIGIN................" D ^DIE G:$D(Y) JUMP
SEX S DIE="^ONCO(160,",DA=ONCOPA
S DR="10 8. SEX..........................." D ^DIE G:$D(Y) JUMP
HAND S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="1200 9. HANDEDNESS...................." D ^DIE G:$D(Y) JUMP
PER S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="403 10. PRIOR EXPOSURE TO RADIATION..." D ^DIE G:$D(Y) JUMP
PPD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="18 11. PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
PMC W !!," 12. PRIOR MEDICAL CONDITIONS:"
S DR="1201 HYPERTENSION................." D ^DIE G:$D(Y) JUMP
S DR="1202 MULTIPLE SCLEROSIS (MS)......" D ^DIE G:$D(Y) JUMP
S DR="1203 DIABETES....................." D ^DIE G:$D(Y) JUMP
S DR="354 MYOCARDIAL INFARCTION (MI)..." D ^DIE G:$D(Y) JUMP
S DR="1204 CEREBROVASCULAR DISEASE......" D ^DIE G:$D(Y) JUMP
PHC W !!," 13. PERSONAL HISTORY OF OTHER CANCER:"
S DR="1205 BRAIN........................" D ^DIE G:$D(Y) JUMP
S DR="1206 BREAST......................." D ^DIE G:$D(Y) JUMP
S DR="1207 PROSTATE....................." D ^DIE G:$D(Y) JUMP
S DR="1208 MALIGNANT MELANOMA..........." D ^DIE G:$D(Y) JUMP
S DR="1209 OTHER SKIN CANCER............" D ^DIE G:$D(Y) JUMP
S DR="1210 LEUKEMIA....................." D ^DIE G:$D(Y) JUMP
S DR="1211 COLON OR OTHER GI CANCERS...." D ^DIE G:$D(Y) JUMP
S DR="1212 OTHER........................" D ^DIE G:$D(Y) JUMP
GP W !!," 14. GENETIC PREDISPOSITION:"
S DR="1213 NEUROFIBROMATOSIS............" D ^DIE G:$D(Y) JUMP
S DR="1214 VON HIPPEL-LINDAU DISEASE...." D ^DIE G:$D(Y) JUMP
S DR="1215 TUBEROUS SCLEROSIS..........." D ^DIE G:$D(Y) JUMP
S DR="1216 TURCOT SYNDROME.............." D ^DIE G:$D(Y) JUMP
S DR="1217 LI-FRAUMENI SYNDROME........." D ^DIE G:$D(Y) JUMP
S DR="1218 KOWDEN DISEASE..............." D ^DIE G:$D(Y) JUMP
S DR="1219 NEVOID BASAL CELL CARCINOMA.." D ^DIE G:$D(Y) JUMP
UO W !!," 15. USUAL OCCUPATION..............: ",$$OCCUP^ONCACDU1(ONCOPA)
UI W !," 16. USUAL INDUSTRY................: ",$$IND^ONCACDU1(ONCOPA)
W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
G EXIT
JUMP ;Jump to prompts
S XX="" R !!," GO TO ITEM NUMBER: ",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:X?1.2N X=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 DOB,CHOICES,HTABLE,IE,TABLE
K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCIPC1 4776 printed Dec 13, 2024@02:23:17 Page 2
ONCIPC1 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;01/06/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Patient Information
+3 KILL TABLE,HTABLE
+4 SET TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
+5 SET TABLE("2. ACCESSION NUMBER")="ACC"
+6 SET TABLE("3. SEQUENCE NUMBER")="SEQ"
+7 SET TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
+8 SET TABLE("5. DATE OF BIRTH")="DOB"
+9 SET TABLE("6. RACE")="RACE"
+10 SET TABLE("7. SPANISH ORIGIN")="SO"
+11 SET TABLE("8. SEX")="SEX"
+12 SET TABLE("9. HANDEDNESS")="HAND"
+13 SET TABLE("10. PRIOR EXPOSURE TO RADIATION")="PER"
+14 SET TABLE("11. PRIMARY PAYER AT DIAGNOSIS")="PPD"
+15 SET TABLE("12. PRIOR MEDICAL CONDITIONS")="PMC"
+16 SET TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHC"
+17 SET TABLE("14. GENETIC PREDISPOSITION")="GP"
+18 SET TABLE("15. USUAL OCCUPATION")="UO"
+19 SET TABLE("16. USUAL INDUSTRY")="UI"
+20 SET HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
+21 SET HTABLE(2)=" 2. ACCESSION NUMBER"
+22 SET HTABLE(3)=" 3. SEQUENCE NUMBER"
+23 SET HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
+24 SET HTABLE(5)=" 5. DATE OF BIRTH"
+25 SET HTABLE(6)=" 6. RACE"
+26 SET HTABLE(7)=" 7. SPANISH ORIGIN"
+27 SET HTABLE(8)=" 8. SEX"
+28 SET HTABLE(9)=" 9. HANDEDNESS"
+29 SET HTABLE(10)="10. PRIOR EXPOSURE TO RADIATION"
+30 SET HTABLE(11)="11. PRIMARY PAYER AT DIAGNOSIS"
+31 SET HTABLE(12)="12. PRIOR MEDICAL CONDITIONS"
+32 SET HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
+33 SET HTABLE(14)="14. GENETIC PREDISPOSITION"
+34 SET HTABLE(15)="15. USUAL OCCUPATION"
+35 SET HTABLE(16)="16. USUAL INDUSTRY"
+36 SET CHOICES=16
+37 SET IE=ONCONUM
+38 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+39 WRITE @IOF
DO HEAD^ONCIPC0
+40 WRITE !," PATIENT INFORMATION"
+41 WRITE !," -------------------"
FIN WRITE !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
ACC WRITE !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
SEQ WRITE !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
PCD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="9 4. POSTAL CODE AT DIAGNOSIS......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOB WRITE !," 5. DATE OF BIRTH.................: ",DOB
RACE SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="8 6. RACE.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SO SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="9 7. SPANISH ORIGIN................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
SEX SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="10 8. SEX..........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
HAND SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="1200 9. HANDEDNESS...................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PER SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="403 10. PRIOR EXPOSURE TO RADIATION..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PPD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18 11. PRIMARY PAYER AT DIAGNOSIS...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PMC WRITE !!," 12. PRIOR MEDICAL CONDITIONS:"
+1 SET DR="1201 HYPERTENSION................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="1202 MULTIPLE SCLEROSIS (MS)......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="1203 DIABETES....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="354 MYOCARDIAL INFARCTION (MI)..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="1204 CEREBROVASCULAR DISEASE......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PHC WRITE !!," 13. PERSONAL HISTORY OF OTHER CANCER:"
+1 SET DR="1205 BRAIN........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="1206 BREAST......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="1207 PROSTATE....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="1208 MALIGNANT MELANOMA..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="1209 OTHER SKIN CANCER............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="1210 LEUKEMIA....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="1211 COLON OR OTHER GI CANCERS...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="1212 OTHER........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
GP WRITE !!," 14. GENETIC PREDISPOSITION:"
+1 SET DR="1213 NEUROFIBROMATOSIS............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="1214 VON HIPPEL-LINDAU DISEASE...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="1215 TUBEROUS SCLEROSIS..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="1216 TURCOT SYNDROME.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="1217 LI-FRAUMENI SYNDROME........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="1218 KOWDEN DISEASE..............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="1219 NEVOID BASAL CELL CARCINOMA.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
UO WRITE !!," 15. USUAL OCCUPATION..............: ",$$OCCUP^ONCACDU1(ONCOPA)
UI WRITE !," 16. USUAL INDUSTRY................: ",$$IND^ONCACDU1(ONCOPA)
+1 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+2 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!," GO TO ITEM NUMBER: ",X:DTIME
+2 IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+3 IF X["?"
Begin DoDot:1
+4 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+5 IF '$DATA(TABLE(X))
if X?1.2N
SET X=X_"."
SET XX=X
SET X=$ORDER(TABLE(X))
IF ($PIECE(X,XX,1)'="")!(X="")
WRITE *7,"??"
Begin DoDot:1
+6 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+7 SET X=TABLE(X)
+8 GOTO @X
EXIT KILL DOB,CHOICES,HTABLE,IE,TABLE
+1 KILL DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
+2 QUIT