ONCP2P1 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Table I
K TABLE,HTABLE
S TABLE("1. INSTITUTION ID NUMBER")="IIN"
S TABLE("2. ACCESSION NUMBER")="ACC"
S TABLE("3. SEQUENCE NUMBER")="SEQ"
S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCAD"
S TABLE("5. DATE OF BIRTH")="DOB"
S TABLE("6. RACE")="RACE"
S TABLE("7. SPANISH ORIGIN")="SO"
S TABLE("8. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
S TABLE("9. FAMILY HISTORY OF PROSTATE CANCER")="FHOPC"
S HTABLE(1)=" 1. INSTITUTION ID NUMBER"
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. PRIMARY PAYER AT DIAGNOSIS"
S HTABLE(9)=" 9. FAMILY HISTORY OF PROSTATE CANCER"
S CHOICES=9
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^ONCP2P0
IIN W !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC
W !!," TABLE I - GENERAL INFORMATION"
W !," -----------------------------"
ACC W !," 2. ACCESSION NUMBER.................: ",ONC(165.5,ONCONUM,.05)
SEQ W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,ONCONUM,.06)
PCAD 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
PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="18 8. PRIMARY PAYER AT DIAGNOSIS......." D ^DIE G:$D(Y) JUMP
FHOPC S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="657 9. FAMILY HISTORY OF PROSTATE CANCER" D ^DIE G:$D(Y) JUMP
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 TABLE,HTABLE,CHOICES,ONC
K DIQ,DIC,DR,DA,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,XX,X,Y
K DOB,OSP,IIN
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCP2P1 2445 printed Nov 22, 2024@17:36:53 Page 2
ONCP2P1 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Table I
+3 KILL TABLE,HTABLE
+4 SET TABLE("1. INSTITUTION ID NUMBER")="IIN"
+5 SET TABLE("2. ACCESSION NUMBER")="ACC"
+6 SET TABLE("3. SEQUENCE NUMBER")="SEQ"
+7 SET TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCAD"
+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. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
+12 SET TABLE("9. FAMILY HISTORY OF PROSTATE CANCER")="FHOPC"
+13 SET HTABLE(1)=" 1. INSTITUTION ID NUMBER"
+14 SET HTABLE(2)=" 2. ACCESSION NUMBER"
+15 SET HTABLE(3)=" 3. SEQUENCE NUMBER"
+16 SET HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
+17 SET HTABLE(5)=" 5. DATE OF BIRTH"
+18 SET HTABLE(6)=" 6. RACE"
+19 SET HTABLE(7)=" 7. SPANISH ORIGIN"
+20 SET HTABLE(8)=" 8. PRIMARY PAYER AT DIAGNOSIS"
+21 SET HTABLE(9)=" 9. FAMILY HISTORY OF PROSTATE CANCER"
+22 SET CHOICES=9
+23 KILL DIQ
SET DIC="^ONCO(165.5,"
SET DR=".05;.06"
SET DA=ONCONUM
SET DIQ="ONC"
DO EN^DIQ1
+24 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+25 WRITE @IOF
DO HEAD^ONCP2P0
IIN WRITE !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC
+1 WRITE !!," TABLE I - GENERAL INFORMATION"
+2 WRITE !," -----------------------------"
ACC WRITE !," 2. ACCESSION NUMBER.................: ",ONC(165.5,ONCONUM,.05)
SEQ WRITE !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,ONCONUM,.06)
PCAD 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
PPAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18 8. PRIMARY PAYER AT DIAGNOSIS......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
FHOPC SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="657 9. FAMILY HISTORY OF PROSTATE CANCER"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+3 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 TABLE,HTABLE,CHOICES,ONC
+1 KILL DIQ,DIC,DR,DA,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,XX,X,Y
+2 KILL DOB,OSP,IIN
+3 QUIT