ONCPPC4 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table IV;7/22/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("SURGERY")="SUR"
S TABLE("RADIATION THERAPY")="RAD"
S TABLE("HORMONE THERAPY")="HOR"
S HTABLE(1)="SURGERY"
S HTABLE(2)="RADIATON THERAPY"
S HTABLE(3)="HORMONE THERAPY"
S CHOICES=3
W @IOF D HEAD^ONCPPC0 W !?22,"TABLE IV - FIRST COURSE OF TREATMENT",!
K ONC S DIC="^ONCO(165.5,",DR="50;51;54;58.1;58.2;58.3;58;74"
S DA=ONCONUM,DIQ="ONC" D EN^DIQ1
S DIE="^ONCO(165.5,",DA=ONCONUM
SUR W !,"SURGERY:",!
S NCDS=$E(ONC(165.5,ONCONUM,58.1),1,2),NCDSOT=ONC(165.5,ONCONUM,58.1)
S CDS=$E(ONC(165.5,ONCONUM,58.2),1,2),CDSOT=ONC(165.5,ONCONUM,58.2)
I (CDS="")!(CDS="00") D
.S SURG=NCDSOT,SURGDT=ONC(165.5,ONCONUM,58.3)
I ((CDS'="")&(CDS'="00"))!(NCDS="") D
.S SURG=CDSOT,SURGDT=ONC(165.5,ONCONUM,50)
S (SURG1,SURG2)=""
S LOS=$L(SURG) I LOS<56 S SURG1=SURG G TOS
S NOP=$L($E(SURG,1,42)," ")
S SURG1=$P(SURG," ",1,NOP-1),SURG2=$P(SURG," ",NOP,999)
TOS W !," TYPE OF SURGERY................: ",SURG1
W:SURG2'="" !,?38,SURG2
I (SURG1="")!($E(SURG1,1,2)="00") S SURGDT="88/88"
W !," DATE OF SURGERY................: ",SURGDT
W !," REASON FOR NO SURGERY..........: ",ONC(165.5,ONCONUM,58)
W !," SURGICAL APPROACH..............: ",ONC(165.5,ONCONUM,74)
S DR="624 RESEARCH PROTOCOL.............." D ^DIE G:$D(Y) JUMP
RAD W !!,"RADIATION THERAPY:",!
S DR="625 RADIATION THERAPY.............." D ^DIE G:$D(Y) JUMP
I (X=2)!(X=3)!(X=4) D G HOR
.F PIECE=27:1:42 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
W !," DATE RADIATION THERAPY BEGAN...: ",ONC(165.5,ONCONUM,51)
S DR="626 INTERSTITIAL RADIATION........." D ^DIE G:$D(Y) JUMP
I (X=2)!(X=3)!(X=4) D G EXTRAD
.F PIECE=28:1:32 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
W !!," INTERSTITIAL RADIATION ADMINISTERED:",!
S DR="627 IODINE 125..................." D ^DIE G:$D(Y) JUMP
S DR="628 GOLD 198....................." D ^DIE G:$D(Y) JUMP
S DR="629 PALLADIUM 103................" D ^DIE G:$D(Y) JUMP
S DR="630 IRIDIUM 192.................." D ^DIE G:$D(Y) JUMP
S DR="631 OTHER INTERSTITIAL, NOS......" D ^DIE G:$D(Y) JUMP
I (X=2)!(X=3)!(X=4) D G HOR
.F PIECE=34:1:42 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
W !!," EXTERNAL RADIATION ADMINISTERED:",!
S DR="633 PROSTATE REGION ONLY........." D ^DIE G:$D(Y) JUMP
S DR="634 PROSTATE/PELVIC NODES........" D ^DIE G:$D(Y) JUMP
S DR="635 PARA-AORTIC NODES............" D ^DIE G:$D(Y) JUMP
S DR="636 DISTANT METASTATIC SITES....." D ^DIE G:$D(Y) JUMP
S DR="637 OTHER EXTERNAL SITES, NOS...." D ^DIE G:$D(Y) JUMP
W !!," TOTAL RAD DOSE:",!
S DR="638 PROSTATE....................." D ^DIE G:$D(Y) JUMP
S DR="639 PELVIC NODES................." D ^DIE G:$D(Y) JUMP
S DR="640 PARA-AORTIC NODES............" D ^DIE G:$D(Y) JUMP
W !
S DR="641 RESEARCH PROTOCOL.............." D ^DIE G:$D(Y) JUMP
HOR W !!,"HORMONE THERAPY:",!
S DR="642 HORMONE THERAPY................" D ^DIE G:$D(Y) JUMP
I (X=2)!(X=3)!(X=4) D G EXIT
.F PIECE=44:1:49 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
W !," DATE HORMONE THERAPY BEGAN.....: ",ONC(165.5,ONCONUM,54)
W !!," HORMONES ADMINISTERED:",!
S DR="643 ESTROGENS...................." D ^DIE G:$D(Y) JUMP
S DR="644 ANTIANDROGENS................" D ^DIE G:$D(Y) JUMP
S DR="645 PROGESTATIONAL AGENTS........" D ^DIE G:$D(Y) JUMP
S DR="646 LUTEINIZING HORMONE-RELEASING" D ^DIE G:$D(Y) JUMP
S DR="647 ORCHIECTOMY.................." D ^DIE G:$D(Y) JUMP
S DR="648 OTHER........................" 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,PIECE,HTABLE,TABLE
K CDS,CDSOT,LOS,NCDS,NCDSOT,NOP,SURG,SURG1,SURG2,SURGDT
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCPPC4 4234 printed Oct 16, 2024@18:27:56 Page 2
ONCPPC4 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table IV;7/22/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("SURGERY")="SUR"
+4 SET TABLE("RADIATION THERAPY")="RAD"
+5 SET TABLE("HORMONE THERAPY")="HOR"
+6 SET HTABLE(1)="SURGERY"
+7 SET HTABLE(2)="RADIATON THERAPY"
+8 SET HTABLE(3)="HORMONE THERAPY"
+9 SET CHOICES=3
+10 WRITE @IOF
DO HEAD^ONCPPC0
WRITE !?22,"TABLE IV - FIRST COURSE OF TREATMENT",!
+11 KILL ONC
SET DIC="^ONCO(165.5,"
SET DR="50;51;54;58.1;58.2;58.3;58;74"
+12 SET DA=ONCONUM
SET DIQ="ONC"
DO EN^DIQ1
+13 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
SUR WRITE !,"SURGERY:",!
+1 SET NCDS=$EXTRACT(ONC(165.5,ONCONUM,58.1),1,2)
SET NCDSOT=ONC(165.5,ONCONUM,58.1)
+2 SET CDS=$EXTRACT(ONC(165.5,ONCONUM,58.2),1,2)
SET CDSOT=ONC(165.5,ONCONUM,58.2)
+3 IF (CDS="")!(CDS="00")
Begin DoDot:1
+4 SET SURG=NCDSOT
SET SURGDT=ONC(165.5,ONCONUM,58.3)
End DoDot:1
+5 IF ((CDS'="")&(CDS'="00"))!(NCDS="")
Begin DoDot:1
+6 SET SURG=CDSOT
SET SURGDT=ONC(165.5,ONCONUM,50)
End DoDot:1
+7 SET (SURG1,SURG2)=""
+8 SET LOS=$LENGTH(SURG)
IF LOS<56
SET SURG1=SURG
GOTO TOS
+9 SET NOP=$LENGTH($EXTRACT(SURG,1,42)," ")
+10 SET SURG1=$PIECE(SURG," ",1,NOP-1)
SET SURG2=$PIECE(SURG," ",NOP,999)
TOS WRITE !," TYPE OF SURGERY................: ",SURG1
+1 if SURG2'=""
WRITE !,?38,SURG2
+2 IF (SURG1="")!($EXTRACT(SURG1,1,2)="00")
SET SURGDT="88/88"
+3 WRITE !," DATE OF SURGERY................: ",SURGDT
+4 WRITE !," REASON FOR NO SURGERY..........: ",ONC(165.5,ONCONUM,58)
+5 WRITE !," SURGICAL APPROACH..............: ",ONC(165.5,ONCONUM,74)
+6 SET DR="624 RESEARCH PROTOCOL.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
RAD WRITE !!,"RADIATION THERAPY:",!
+1 SET DR="625 RADIATION THERAPY.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 IF (X=2)!(X=3)!(X=4)
Begin DoDot:1
+3 FOR PIECE=27:1:42
SET $PIECE(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
End DoDot:1
GOTO HOR
+4 WRITE !," DATE RADIATION THERAPY BEGAN...: ",ONC(165.5,ONCONUM,51)
+5 SET DR="626 INTERSTITIAL RADIATION........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 IF (X=2)!(X=3)!(X=4)
Begin DoDot:1
+7 FOR PIECE=28:1:32
SET $PIECE(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
End DoDot:1
GOTO EXTRAD
+8 WRITE !!," INTERSTITIAL RADIATION ADMINISTERED:",!
+9 SET DR="627 IODINE 125..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="628 GOLD 198....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="629 PALLADIUM 103................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+12 SET DR="630 IRIDIUM 192.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+13 SET DR="631 OTHER INTERSTITIAL, NOS......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
SET DR="632 EXTERNAL RADIATION............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 IF (X=2)!(X=3)!(X=4)
Begin DoDot:1
+2 FOR PIECE=34:1:42
SET $PIECE(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
End DoDot:1
GOTO HOR
+3 WRITE !!," EXTERNAL RADIATION ADMINISTERED:",!
+4 SET DR="633 PROSTATE REGION ONLY........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="634 PROSTATE/PELVIC NODES........"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="635 PARA-AORTIC NODES............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="636 DISTANT METASTATIC SITES....."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="637 OTHER EXTERNAL SITES, NOS...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 WRITE !!," TOTAL RAD DOSE:",!
+10 SET DR="638 PROSTATE....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="639 PELVIC NODES................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+12 SET DR="640 PARA-AORTIC NODES............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+13 WRITE !
+14 SET DR="641 RESEARCH PROTOCOL.............."
DO ^DIE
if $DATA(Y)
GOTO JUMP
HOR WRITE !!,"HORMONE THERAPY:",!
+1 SET DR="642 HORMONE THERAPY................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 IF (X=2)!(X=3)!(X=4)
Begin DoDot:1
+3 FOR PIECE=44:1:49
SET $PIECE(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
End DoDot:1
GOTO EXIT
+4 WRITE !," DATE HORMONE THERAPY BEGAN.....: ",ONC(165.5,ONCONUM,54)
+5 WRITE !!," HORMONES ADMINISTERED:",!
+6 SET DR="643 ESTROGENS...................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="644 ANTIANDROGENS................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="645 PROGESTATIONAL AGENTS........"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="646 LUTEINIZING HORMONE-RELEASING"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="647 ORCHIECTOMY.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 SET DR="648 OTHER........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+12 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+13 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,PIECE,HTABLE,TABLE
+1 KILL CDS,CDSOT,LOS,NCDS,NCDSOT,NOP,SURG,SURG1,SURG2,SURGDT
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT