ONCPPC2 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table II;7/22/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("METHOD OF DIAGNOSIS")="MOD"
S TABLE("DATE OF INITIAL DIAGNOSIS")="DATEDX"
S TABLE("DIAGNOSITC INFORMATION")="DI"
S TABLE("HISTOLOGY (ICD-O)")="HIST"
S TABLE("DIFFERENTIATION/GRADE")="GRADE"
S TABLE("GLEASON'S SCORE")="GS"
S HTABLE(1)="METHOD OF DIAGNOSIS"
S HTABLE(2)="DATE OF INITIAL DIAGNOSIS"
S HTABLE(3)="DIAGNOSTIC INFORMATION"
S HTABLE(4)="HISTOLOGY (ICD-O)"
S HTABLE(5)="DIFFERENTIATION/GRADE"
S HTABLE(6)="GLEASON'S SCORE"
S CHOICES=6
S DIE="^ONCO(165.5,",DA=ONCONUM
W @IOF D HEAD^ONCPPC0 W !?26,"TABLE II - INITIAL DIAGNOSIS",!
MOD W !,"METHOD OF DIAGNOSIS:",!
S DR="600 CLINICAL DX WITH BONE LESION" D ^DIE G:$D(Y) JUMP
S DR="601 CLINICAL DX BY RECTAL EXAM.." D ^DIE G:$D(Y) JUMP
S DR="602 CYTOLOGY...................." D ^DIE G:$D(Y) JUMP
S DR="603 INCIDENTAL FINDING IN TURP.." D ^DIE G:$D(Y) JUMP
S DR="604 NEEDLE ASPIRATION BIOPSY...." D ^DIE G:$D(Y) JUMP
S DR="605 NEEDLE BIOPSY, NOS.........." D ^DIE G:$D(Y) JUMP
S DR="606 PERINEAL BIOPSY............." D ^DIE G:$D(Y) JUMP
S DR="607 TRANSRECTAL BIOPSY.........." D ^DIE G:$D(Y) JUMP
S DR="608 TRUS GUIDED BIOPSY.........." D ^DIE G:$D(Y) JUMP
S DR="609 TRANSURETHRAL RESECTION, NOS" D ^DIE G:$D(Y) JUMP
S DR="610 OTHER......................." D ^DIE G:$D(Y) JUMP
DATEDX S DOID=$E(DATEDX,4,5)_"/"_$E(DATEDX,6,7)_"/"_(1700+$E(DATEDX,1,3))
W !!,"DATE OF INITIAL DIAGNOSIS.....: ",DOID
DI W !!,"DIAGNOSTIC INFORMATION:",!
S DR="611 BONE MARROW ASPIRATION......" D ^DIE G:$D(Y) JUMP
S DR="612 BONE SCAN..................." D ^DIE G:$D(Y) JUMP
S DR="613 BONE X-RAY.................." D ^DIE G:$D(Y) JUMP
S DR="614 CHEST X-RAY................." D ^DIE G:$D(Y) JUMP
S DR="615 CT SCAN OF PRIMARY SITE....." D ^DIE G:$D(Y) JUMP
S DR="616 IVP........................." D ^DIE G:$D(Y) JUMP
S DR="617 LIVER SCAN.................." D ^DIE G:$D(Y) JUMP
S DR="618 MRI........................." D ^DIE G:$D(Y) JUMP
S DR="619 PELVIC LYMPH NODE DISSECTION" D ^DIE G:$D(Y) JUMP
S DR="620 PAP........................." D ^DIE G:$D(Y) JUMP
S DR="621 PSA........................." D ^DIE G:$D(Y) JUMP
S DR="622 OTHER......................." D ^DIE G:$D(Y) JUMP
W !
HIST S DR="22HISTOLOGY (ICD-O)............." D ^DIE G:$D(Y) JUMP
GRADE S DR="24DIFFERENTIATION/GRADE........." D ^DIE G:$D(Y) JUMP
GS S DR="623GLEASON'S SCORE..............." 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 CHOICES,HTABLE,TABLE
K DOID
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCPPC2 3015 printed Dec 13, 2024@02:27:14 Page 2
ONCPPC2 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table II;7/22/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("METHOD OF DIAGNOSIS")="MOD"
+4 SET TABLE("DATE OF INITIAL DIAGNOSIS")="DATEDX"
+5 SET TABLE("DIAGNOSITC INFORMATION")="DI"
+6 SET TABLE("HISTOLOGY (ICD-O)")="HIST"
+7 SET TABLE("DIFFERENTIATION/GRADE")="GRADE"
+8 SET TABLE("GLEASON'S SCORE")="GS"
+9 SET HTABLE(1)="METHOD OF DIAGNOSIS"
+10 SET HTABLE(2)="DATE OF INITIAL DIAGNOSIS"
+11 SET HTABLE(3)="DIAGNOSTIC INFORMATION"
+12 SET HTABLE(4)="HISTOLOGY (ICD-O)"
+13 SET HTABLE(5)="DIFFERENTIATION/GRADE"
+14 SET HTABLE(6)="GLEASON'S SCORE"
+15 SET CHOICES=6
+16 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+17 WRITE @IOF
DO HEAD^ONCPPC0
WRITE !?26,"TABLE II - INITIAL DIAGNOSIS",!
MOD WRITE !,"METHOD OF DIAGNOSIS:",!
+1 SET DR="600 CLINICAL DX WITH BONE LESION"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="601 CLINICAL DX BY RECTAL EXAM.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="602 CYTOLOGY...................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="603 INCIDENTAL FINDING IN TURP.."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="604 NEEDLE ASPIRATION BIOPSY...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="605 NEEDLE BIOPSY, NOS.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="606 PERINEAL BIOPSY............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="607 TRANSRECTAL BIOPSY.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="608 TRUS GUIDED BIOPSY.........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="609 TRANSURETHRAL RESECTION, NOS"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="610 OTHER......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
DATEDX SET DOID=$EXTRACT(DATEDX,4,5)_"/"_$EXTRACT(DATEDX,6,7)_"/"_(1700+$EXTRACT(DATEDX,1,3))
+1 WRITE !!,"DATE OF INITIAL DIAGNOSIS.....: ",DOID
DI WRITE !!,"DIAGNOSTIC INFORMATION:",!
+1 SET DR="611 BONE MARROW ASPIRATION......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 SET DR="612 BONE SCAN..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="613 BONE X-RAY.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="614 CHEST X-RAY................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="615 CT SCAN OF PRIMARY SITE....."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="616 IVP........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="617 LIVER SCAN.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="618 MRI........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="619 PELVIC LYMPH NODE DISSECTION"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="620 PAP........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="621 PSA........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+12 SET DR="622 OTHER......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+13 WRITE !
HIST SET DR="22HISTOLOGY (ICD-O)............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
GRADE SET DR="24DIFFERENTIATION/GRADE........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
GS SET DR="623GLEASON'S SCORE..............."
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 CHOICES,HTABLE,TABLE
+1 KILL DOID
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT