ONCNPC4 ;HIRMFO/GWB - PCE Study of Non-Hodgkin's Lymphoma - Table IV;4/18/97
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K ONC,TABLE,HTABLE
S TABLE("DATE OF FIRST COURSE OF TREATMENT")="DOFCT^ONCNPC4"
S TABLE("SURGERY")="S^ONCNPC4"
S TABLE("RADIATION THERAPY")="R^ONCNPC4"
S TABLE("CHEMOTHERAPY")="C^ONCNPC4"
S TABLE("SYSTEMIC CHEMOTHERAPY")="SC^ONCNPC4A"
S TABLE("INTRATHECAL CHEMOTHERAPY")="IC^ONCNPC4A"
S TABLE("IMMUNOTHERAPY")="I^ONCNPC4A"
S HTABLE(1)="DATE OF FIRST COURSE OF TREATMENT"
S HTABLE(2)="SURGERY"
S HTABLE(3)="RADIATION THERAPY"
S HTABLE(4)="CHEMOTHERAPY"
S HTABLE(5)="SYSTEMIC CHEMOTHERAPY"
S HTABLE(6)="INTRATHECAL CHEMOTHERAPY"
S HTABLE(7)="IMMUNOTHERAPY"
S CHOICES=7
S D0=ONCONUM D DFC^ONCOCOM S DOFCT=Y
S DIC="^ONCO(165.5,",DR="50;51.2;53;53.2;58.2",DA=ONCONUM
S DIQ="ONC",DIQ(0)="IE" D EN^DIQ1
S CDS=ONC(165.5,ONCONUM,58.2,"E")
S RAD=ONC(165.5,ONCONUM,51.2,"I"),RADOT=ONC(165.5,ONCONUM,51.2,"E")
S CHEMO=ONC(165.5,ONCONUM,53.2,"I"),CHEMOT=ONC(165.5,ONCONUM,53.2,"E")
W @IOF D HEAD^ONCNPC0
W !?22,"TABLE IV - FIRST COURSE OF TREATMENT"
W !?22,"------------------------------------"
S DIE="^ONCO(165.5,",DA=ONCONUM
DOFCT W !,"DATE OF FIRST COURSE OF TREATMENT.: ",DOFCT
S W !!,"SURGERY"
W !,"-------"
CDSDT S CDSDT=$P($G(^ONCO(165.5,ONCONUM,3)),U,1)
S Y=CDSDT D DATEOT^ONCOPCE S CDSDT=Y
S (CDS1,CDS2)="",LOS=$L(CDS) I LOS<46 S CDS1=CDS G CDS
S NOP=$L($E(CDS,1,46)," ")
S CDS1=$P(CDS," ",1,NOP-1),CDS2=$P(CDS," ",NOP,999)
CDS W !," SURGERY OF PRIMARY SITE DATE....: ",CDSDT
W !," SURGERY OF PRIMARY SITE.........: ",CDS1 W:CDS2'="" !,?39,CDS2
I (CDS="")!($E(CDS,1,2)="00") D G:(Y=0)!(Y="") EXIT G R
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,10)="C888"
.W !," EXTRANODAL SURGERY SITE.........: None"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,11)="00"
.W !," EXTRANODAL SURGICAL PROCEDURE...: 00 No additional surgical procedures"
.W ! K DIR S DIR(0)="E" D ^DIR Q:(Y=0)!(Y="") D HEAD^ONCNPC0
S DR="855 EXTRANODAL SURGERY SITE........." D ^DIE G:$D(Y) JUMP
S DR="856 EXTRANODAL SURGICAL PROCEDURE..." D ^DIE G:$D(Y) JUMP
R W !!,"RADIATION THERAPY"
W !,"-----------------"
S RADDT=$P($G(^ONCO(165.5,ONCONUM,3)),U,4)
S Y=RADDT D DATEOT^ONCOPCE S RADDT=Y
W !," RADIATION DATE..................: ",RADDT
W !," RADIATION ......................: ",RADOT
I RAD=0 D G C
.W !!," IRRADIATED FIELDS:",!
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,12)=2
.W !," LYMPH NODES ABOVE DIAPHRAGM...: Not irradiated"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,13)=2
.W !," LYMPH NODES BELOW DIAPHRAGM...: Not irradiated"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,14)=2
.W !," BRAIN.........................: Not irradiated"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,15)=2
.W !," OTHER EXTRANODAL SITE(S)......: Not irradiated"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,16)=2
.W !," TOTAL BODY....................: Not irradiated"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,17)=8
.W !!," RADIATION/CHEMOTHERAPY SEQUENCE.: NA, no radiation and/or no chemo given"
.W ! K DIR S DIR(0)="E" D ^DIR Q:(Y=0)!(Y="") D HEAD^ONCNPC0
I RAD=9 D G C
.W !!," IRRADIATED FIELDS:",!
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,12)=8
.W !," LYMPH NODES ABOVE DIAPHRAGM...: NA, unknown if radiation therapy given"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,13)=8
.W !," LYMPH NODES BELOW DIAPHRAGM...: NA, unknown if radiation therapy given"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,14)=8
.W !," BRAIN.........................: NA, unknown if radiation therapy given"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,15)=8
.W !," OTHER EXTRANODAL SITE(S)......: NA, unknown if radiation therapy given"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,16)=8
.W !," TOTAL BODY....................: NA, unknown if radiation therapy given"
.S $P(^ONCO(165.5,ONCONUM,"NHL2"),U,17)=7
.W !!," RADIATION/CHEMOTHERAPY SEQUENCE.: Unknown if radiation and/or chemo given"
W !!," IRRADIATED FIELDS:",!
S DR="857 LYMPH NODES ABOVE DIAPHRAGM..." D ^DIE G:$D(Y) JUMP
S DR="858 LYMPH NODES BELOW DIAPHRAGM..." D ^DIE G:$D(Y) JUMP
S DR="859 BRAIN........................." D ^DIE G:$D(Y) JUMP
S DR="860 OTHER EXTRANODAL SITE(S)......" D ^DIE G:$D(Y) JUMP
S DR="861 TOTAL BODY...................." D ^DIE G:$D(Y) JUMP W !
S DR="862 RADIATION/CHEMOTHERAPY SEQUENCE." D ^DIE G:$D(Y) JUMP W !
C W !!,"CHEMOTHERAPY"
W !,"------------"
S DR="863 PROTOCOL........................" D ^DIE G:$D(Y) JUMP
D SC^ONCNPC4A
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 CDS,CDS1,CDS2,CDSDT,CHEMO,DOFCT,LOS,NOP,RAD,RADOT,RADDT,DIQ
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCNPC4 4943 printed Dec 13, 2024@02:23:58 Page 2
ONCNPC4 ;HIRMFO/GWB - PCE Study of Non-Hodgkin's Lymphoma - Table IV;4/18/97
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL ONC,TABLE,HTABLE
+3 SET TABLE("DATE OF FIRST COURSE OF TREATMENT")="DOFCT^ONCNPC4"
+4 SET TABLE("SURGERY")="S^ONCNPC4"
+5 SET TABLE("RADIATION THERAPY")="R^ONCNPC4"
+6 SET TABLE("CHEMOTHERAPY")="C^ONCNPC4"
+7 SET TABLE("SYSTEMIC CHEMOTHERAPY")="SC^ONCNPC4A"
+8 SET TABLE("INTRATHECAL CHEMOTHERAPY")="IC^ONCNPC4A"
+9 SET TABLE("IMMUNOTHERAPY")="I^ONCNPC4A"
+10 SET HTABLE(1)="DATE OF FIRST COURSE OF TREATMENT"
+11 SET HTABLE(2)="SURGERY"
+12 SET HTABLE(3)="RADIATION THERAPY"
+13 SET HTABLE(4)="CHEMOTHERAPY"
+14 SET HTABLE(5)="SYSTEMIC CHEMOTHERAPY"
+15 SET HTABLE(6)="INTRATHECAL CHEMOTHERAPY"
+16 SET HTABLE(7)="IMMUNOTHERAPY"
+17 SET CHOICES=7
+18 SET D0=ONCONUM
DO DFC^ONCOCOM
SET DOFCT=Y
+19 SET DIC="^ONCO(165.5,"
SET DR="50;51.2;53;53.2;58.2"
SET DA=ONCONUM
+20 SET DIQ="ONC"
SET DIQ(0)="IE"
DO EN^DIQ1
+21 SET CDS=ONC(165.5,ONCONUM,58.2,"E")
+22 SET RAD=ONC(165.5,ONCONUM,51.2,"I")
SET RADOT=ONC(165.5,ONCONUM,51.2,"E")
+23 SET CHEMO=ONC(165.5,ONCONUM,53.2,"I")
SET CHEMOT=ONC(165.5,ONCONUM,53.2,"E")
+24 WRITE @IOF
DO HEAD^ONCNPC0
+25 WRITE !?22,"TABLE IV - FIRST COURSE OF TREATMENT"
+26 WRITE !?22,"------------------------------------"
+27 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
DOFCT WRITE !,"DATE OF FIRST COURSE OF TREATMENT.: ",DOFCT
S WRITE !!,"SURGERY"
+1 WRITE !,"-------"
CDSDT SET CDSDT=$PIECE($GET(^ONCO(165.5,ONCONUM,3)),U,1)
+1 SET Y=CDSDT
DO DATEOT^ONCOPCE
SET CDSDT=Y
+2 SET (CDS1,CDS2)=""
SET LOS=$LENGTH(CDS)
IF LOS<46
SET CDS1=CDS
GOTO CDS
+3 SET NOP=$LENGTH($EXTRACT(CDS,1,46)," ")
+4 SET CDS1=$PIECE(CDS," ",1,NOP-1)
SET CDS2=$PIECE(CDS," ",NOP,999)
CDS WRITE !," SURGERY OF PRIMARY SITE DATE....: ",CDSDT
+1 WRITE !," SURGERY OF PRIMARY SITE.........: ",CDS1
if CDS2'=""
WRITE !,?39,CDS2
+2 IF (CDS="")!($EXTRACT(CDS,1,2)="00")
Begin DoDot:1
+3 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,10)="C888"
+4 WRITE !," EXTRANODAL SURGERY SITE.........: None"
+5 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,11)="00"
+6 WRITE !," EXTRANODAL SURGICAL PROCEDURE...: 00 No additional surgical procedures"
+7 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if (Y=0)!(Y="")
QUIT
DO HEAD^ONCNPC0
End DoDot:1
if (Y=0)!(Y="")
GOTO EXIT
GOTO R
+8 SET DR="855 EXTRANODAL SURGERY SITE........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="856 EXTRANODAL SURGICAL PROCEDURE..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
R WRITE !!,"RADIATION THERAPY"
+1 WRITE !,"-----------------"
+2 SET RADDT=$PIECE($GET(^ONCO(165.5,ONCONUM,3)),U,4)
+3 SET Y=RADDT
DO DATEOT^ONCOPCE
SET RADDT=Y
+4 WRITE !," RADIATION DATE..................: ",RADDT
+5 WRITE !," RADIATION ......................: ",RADOT
+6 IF RAD=0
Begin DoDot:1
+7 WRITE !!," IRRADIATED FIELDS:",!
+8 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,12)=2
+9 WRITE !," LYMPH NODES ABOVE DIAPHRAGM...: Not irradiated"
+10 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,13)=2
+11 WRITE !," LYMPH NODES BELOW DIAPHRAGM...: Not irradiated"
+12 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,14)=2
+13 WRITE !," BRAIN.........................: Not irradiated"
+14 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,15)=2
+15 WRITE !," OTHER EXTRANODAL SITE(S)......: Not irradiated"
+16 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,16)=2
+17 WRITE !," TOTAL BODY....................: Not irradiated"
+18 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,17)=8
+19 WRITE !!," RADIATION/CHEMOTHERAPY SEQUENCE.: NA, no radiation and/or no chemo given"
+20 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if (Y=0)!(Y="")
QUIT
DO HEAD^ONCNPC0
End DoDot:1
GOTO C
+21 IF RAD=9
Begin DoDot:1
+22 WRITE !!," IRRADIATED FIELDS:",!
+23 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,12)=8
+24 WRITE !," LYMPH NODES ABOVE DIAPHRAGM...: NA, unknown if radiation therapy given"
+25 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,13)=8
+26 WRITE !," LYMPH NODES BELOW DIAPHRAGM...: NA, unknown if radiation therapy given"
+27 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,14)=8
+28 WRITE !," BRAIN.........................: NA, unknown if radiation therapy given"
+29 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,15)=8
+30 WRITE !," OTHER EXTRANODAL SITE(S)......: NA, unknown if radiation therapy given"
+31 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,16)=8
+32 WRITE !," TOTAL BODY....................: NA, unknown if radiation therapy given"
+33 SET $PIECE(^ONCO(165.5,ONCONUM,"NHL2"),U,17)=7
+34 WRITE !!," RADIATION/CHEMOTHERAPY SEQUENCE.: Unknown if radiation and/or chemo given"
End DoDot:1
GOTO C
+35 WRITE !!," IRRADIATED FIELDS:",!
+36 SET DR="857 LYMPH NODES ABOVE DIAPHRAGM..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+37 SET DR="858 LYMPH NODES BELOW DIAPHRAGM..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+38 SET DR="859 BRAIN........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+39 SET DR="860 OTHER EXTRANODAL SITE(S)......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+40 SET DR="861 TOTAL BODY...................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
WRITE !
+41 SET DR="862 RADIATION/CHEMOTHERAPY SEQUENCE."
DO ^DIE
if $DATA(Y)
GOTO JUMP
WRITE !
C WRITE !!,"CHEMOTHERAPY"
+1 WRITE !,"------------"
+2 SET DR="863 PROTOCOL........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 DO SC^ONCNPC4A
+4 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 CDS,CDS1,CDS2,CDSDT,CHEMO,DOFCT,LOS,NOP,RAD,RADOT,RADDT,DIQ
+2 QUIT