ONCBPC2 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder Table II;6/19/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("CLINICAL DETECTION")="CLI"
S TABLE("ONSET OF SYMPTOMS")="ONS"
S TABLE("DURATION OF SYMPTOMS BEFORE DIAGNOSIS")="DUR"
S TABLE("DIAGNOSTIC PROCEDURES")="DIA"
S TABLE("DATE OF INITIAL DIAGNOSIS")="DAT"
S TABLE("SPECIALTY MAKING DIAGNOSIS")="SPE"
S TABLE("PRIMARY SITE (ICD-O-2)")="PRI"
S TABLE("HISTOLOGY (ICD-O-2)")="HIS"
S TABLE("GRADE")="GRA"
S HTABLE(1)="CLINICAL DETECTION"
S HTABLE(2)="ONSET OF SYMPTOMS"
S HTABLE(3)="DURATION OF SYMPTOMS BEFORE DIAGNOSIS"
S HTABLE(4)="DIAGNOSTIC PROCEDURES"
S HTABLE(5)="DATE OF INITIAL DIAGNOSIS"
S HTABLE(6)="SPECIALTY MAKING DIAGNOSIS"
S HTABLE(7)="PRIMARY SITE (ICD-O-2)"
S HTABLE(8)="HISTOLOGY (ICD-O-2)"
S HTABLE(9)="GRADE"
S CHOICES=9
S PRINODE0=^ONCO(165.5,ONCONUM,0)
S PRINODE2=$G(^ONCO(165.5,ONCONUM,2))
S DATEDIA=$P(PRINODE0,U,16),Y=DATEDIA D DATEOT^ONCOPCE S DATEDIA=Y
S TOPOG=$P(PRINODE2,U,1),(TOPCD,SITE)=""
I TOPOG'="" S TOPCD=$P(^ONCO(164,TOPOG,0),U,2),SITE=$P(^ONCO(164,TOPOG,0),U,1)
S HST=$P(PRINODE2,U,3),(HSTCD,HSTNAM)=""
I HST'="" S HSTCD=$P(^ONCO(164.1,HST,0),U,2),HSTNAM=$P(^ONCO(164.1,HST,0),U,1)
W @IOF D HEAD^ONCBPC0 W !?24,"TABLE II- DIAGNOSTIC INFORMATION",!
CLI W !,"CLINICAL DETECTION:",!
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="317 GROSS HEMATURIA................" D ^DIE G:$D(Y) JUMP
S DR="318 MICROSCOPIC HEMATURIA.........." D ^DIE G:$D(Y) JUMP
S DR="319 URINARY FREQUENCY.............." D ^DIE G:$D(Y) JUMP
S DR="320 BLADDER IRRITABILITY..........." D ^DIE G:$D(Y) JUMP
S DR="321 DYSURIA........................" D ^DIE G:$D(Y) JUMP
S DR="322 OTHER.........................." D ^DIE G:$D(Y) JUMP
W !
ONS S DR="323ONSET OF SYMPTOMS................" D ^DIE G:$D(Y) JUMP
DUR W !!,"DURATION OF SYMPTOMS (months) BEFORE DIAGNOSIS:",!
S DR="324 GROSS HEMATURIA................" D ^DIE G:$D(Y) JUMP
S DR="325 DYSURIA........................" D ^DIE G:$D(Y) JUMP
DIA W !!,"DIAGNOSTIC PROCEDURES:",!
S DR="326 BIMANUAL EXAMINATION OF BLADDER" D ^DIE G:$D(Y) JUMP
S DR="327 CYSTOSCOPY WITH BIOPSY........." D ^DIE G:$D(Y) JUMP
S DR="328 CYSTOSCOPY WITHOUT BIOPSY......" D ^DIE G:$D(Y) JUMP
S DR="329 FLOW CYTOMETRY................." D ^DIE G:$D(Y) JUMP
S DR="330 INTRAVENOUS PYELOGRAM.........." D ^DIE G:$D(Y) JUMP
S DR="331 URINE CYTOLOGY................." D ^DIE G:$D(Y) JUMP
S DR="332 URINALYSIS....................." D ^DIE G:$D(Y) JUMP
S DR="333 OTHER.........................." D ^DIE G:$D(Y) JUMP
W !
DAT W !,"DATE OF INITIAL DIAGNOSIS........: ",DATEDIA
SPE S DR="334SPECIALTY MAKING DIAGNOSIS......." D ^DIE G:$D(Y) JUMP
PRI W !,"PRIMARY SITE (ICD-O-2)...........: ",TOPCD," ",SITE
HIS W !,"HISTOLOGY (ICD-O-2)..............: ",HSTCD," ",HSTNAM
GRA S DR="24GRADE............................" 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 DATEDIA,HST,HSTCD,HSTNAM,PRINODE0,PRINODE2,TOPOG,TOPCD,SITE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBPC2 3469 printed Dec 13, 2024@02:22:08 Page 2
ONCBPC2 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder Table II;6/19/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("CLINICAL DETECTION")="CLI"
+4 SET TABLE("ONSET OF SYMPTOMS")="ONS"
+5 SET TABLE("DURATION OF SYMPTOMS BEFORE DIAGNOSIS")="DUR"
+6 SET TABLE("DIAGNOSTIC PROCEDURES")="DIA"
+7 SET TABLE("DATE OF INITIAL DIAGNOSIS")="DAT"
+8 SET TABLE("SPECIALTY MAKING DIAGNOSIS")="SPE"
+9 SET TABLE("PRIMARY SITE (ICD-O-2)")="PRI"
+10 SET TABLE("HISTOLOGY (ICD-O-2)")="HIS"
+11 SET TABLE("GRADE")="GRA"
+12 SET HTABLE(1)="CLINICAL DETECTION"
+13 SET HTABLE(2)="ONSET OF SYMPTOMS"
+14 SET HTABLE(3)="DURATION OF SYMPTOMS BEFORE DIAGNOSIS"
+15 SET HTABLE(4)="DIAGNOSTIC PROCEDURES"
+16 SET HTABLE(5)="DATE OF INITIAL DIAGNOSIS"
+17 SET HTABLE(6)="SPECIALTY MAKING DIAGNOSIS"
+18 SET HTABLE(7)="PRIMARY SITE (ICD-O-2)"
+19 SET HTABLE(8)="HISTOLOGY (ICD-O-2)"
+20 SET HTABLE(9)="GRADE"
+21 SET CHOICES=9
+22 SET PRINODE0=^ONCO(165.5,ONCONUM,0)
+23 SET PRINODE2=$GET(^ONCO(165.5,ONCONUM,2))
+24 SET DATEDIA=$PIECE(PRINODE0,U,16)
SET Y=DATEDIA
DO DATEOT^ONCOPCE
SET DATEDIA=Y
+25 SET TOPOG=$PIECE(PRINODE2,U,1)
SET (TOPCD,SITE)=""
+26 IF TOPOG'=""
SET TOPCD=$PIECE(^ONCO(164,TOPOG,0),U,2)
SET SITE=$PIECE(^ONCO(164,TOPOG,0),U,1)
+27 SET HST=$PIECE(PRINODE2,U,3)
SET (HSTCD,HSTNAM)=""
+28 IF HST'=""
SET HSTCD=$PIECE(^ONCO(164.1,HST,0),U,2)
SET HSTNAM=$PIECE(^ONCO(164.1,HST,0),U,1)
+29 WRITE @IOF
DO HEAD^ONCBPC0
WRITE !?24,"TABLE II- DIAGNOSTIC INFORMATION",!
CLI WRITE !,"CLINICAL DETECTION:",!
+1 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+2 SET DR="317 GROSS HEMATURIA................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="318 MICROSCOPIC HEMATURIA.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="319 URINARY FREQUENCY.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="320 BLADDER IRRITABILITY..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="321 DYSURIA........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="322 OTHER.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 WRITE !
ONS SET DR="323ONSET OF SYMPTOMS................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
DUR WRITE !!,"DURATION OF SYMPTOMS (months) BEFORE DIAGNOSIS:",!
+1 SET DR="324 GROSS HEMATURIA................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="325 DYSURIA........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
DIA WRITE !!,"DIAGNOSTIC PROCEDURES:",!
+1 SET DR="326 BIMANUAL EXAMINATION OF BLADDER"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="327 CYSTOSCOPY WITH BIOPSY........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="328 CYSTOSCOPY WITHOUT BIOPSY......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="329 FLOW CYTOMETRY................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="330 INTRAVENOUS PYELOGRAM.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="331 URINE CYTOLOGY................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="332 URINALYSIS....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="333 OTHER.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 WRITE !
DAT WRITE !,"DATE OF INITIAL DIAGNOSIS........: ",DATEDIA
SPE SET DR="334SPECIALTY MAKING DIAGNOSIS......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PRI WRITE !,"PRIMARY SITE (ICD-O-2)...........: ",TOPCD," ",SITE
HIS WRITE !,"HISTOLOGY (ICD-O-2)..............: ",HSTCD," ",HSTNAM
GRA SET DR="24GRADE............................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+2 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 DATEDIA,HST,HSTCD,HSTNAM,PRINODE0,PRINODE2,TOPOG,TOPCD,SITE
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT