ONCTPC8A ;HIRMFO/GWB -PCE Study of Thyroid Cancer -Print (continued) ;8/15/96
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
S TABLE="TABLE IV - FIRST COURSE OF TREATMENT"
I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR^ONCTPC8
W !?15,TABLE,! D P Q:EX=U
S D0=ONCONUM D DFC^ONCOCOM S DOIT=Y
W !,"FIRST COURSE TREATMENT DATE.......: ",DOIT D P Q:EX=U
W !!,"SURGERY:",! D P Q:EX=U
S NCDS=ONC(165.5,IEN,58.1)
S (NCDS1,NCDS2)="",LOS=$L(NCDS) I LOS<45 S NCDS1=NCDS G CDS
S NOP=$L($E(NCDS,1,41)," ")
S NCDS1=$P(NCDS," ",1,NOP-1),NCDS2=$P(NCDS," ",NOP,999)
CDS S CDS=ONC(165.5,IEN,58.2)
S (CDS1,CDS2)="",LOS=$L(CDS) I LOS<45 S CDS1=CDS G S
S NOP=$L($E(CDS,1,41)," ")
S CDS1=$P(CDS," ",1,NOP-1),CDS2=$P(CDS," ",NOP,999)
S W !," NON CANCER-DIRECTED SURGERY DATE: ",ONC(165.5,IEN,58.3) D P Q:EX=U
W !," NON CANCER-DIRECTED SURGERY.....: ",NCDS1 W:NCDS2'="" !,?39,NCDS2 D P Q:EX=U
W !," SURGERY OF PRIMARY SITE DATE....: ",ONC(165.5,IEN,50) D P Q:EX=U
W !," DISCHARGE AFTER SURGERY DATE....: ",ONC(165.5,IEN,435) D P Q:EX=U
W !," SURGERY OF PRIMARY SITE.........: ",CDS1 W:CDS2'="" !,?39,CDS2
W !," RESIDUAL PRIMARY TUMOR..........: ",ONC(165.5,IEN,59)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 W !?15,TABLE_" (continued)" G SC
D P Q:EX=U
SC W !!," SURGICAL COMPLICATIONS:",! D P Q:EX=U
W !," AIRWAY PROBLEM W TRACHEOSTOMY.: ",ONC(165.5,IEN,436) D P Q:EX=U
W !," BLEEDING HEMOTOMA.............: ",ONC(165.5,IEN,437) D P Q:EX=U
W !," HYPOCALCEMIA..................: ",ONC(165.5,IEN,438) D P Q:EX=U
W !," RECURRENT NERVE INJURY........: ",ONC(165.5,IEN,439) D P Q:EX=U
W !," WOUND INFECTION...............: ",ONC(165.5,IEN,440) D P Q:EX=U
W !!," POSTOPERATIVE DEATH W/I 30 DAYS.: ",ONC(165.5,IEN,441)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 W !?15,TABLE_" (continued)" G R
D P Q:EX=U
R W !!,"RADIATION:",! D P Q:EX=U
W !," DATE RADIATION STARTED..........: ",ONC(165.5,IEN,51) D P Q:EX=U
W !," RADIATION ......................: ",ONC(165.5,IEN,51.2) D P Q:EX=U
W !," REGIONAL RAD (cGy) DOSE.........: ",ONC(165.5,IEN,442) D P Q:EX=U
W !," BOOST DOSAGE....................: ",ONC(165.5,IEN,443) D P Q:EX=U
W !!," TOTAL MILLICURIES (mCi) OF RADIOIODINE:",! D P Q:EX=U
W !," INITIAL DOSE..................: ",ONC(165.5,IEN,444) D P Q:EX=U
W !," SECOND DOSE...................: ",ONC(165.5,IEN,445)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 W !?15,TABLE_" (continued)" G C
D P Q:EX=U
C W !!,"CHEMOTHERAPY:",! D P Q:EX=U
W !," CHEMOTHERAPY....................: ",ONC(165.5,IEN,53.2) D P Q:EX=U
W !," ADJUVANT CHEMO W BEAM RADIATION.: ",ONC(165.5,IEN,446) D P Q:EX=U
W !!,"HORMONE THERAPY:",! D P Q:EX=U
W !," THYROID HORMONE THERAPY.........: ",ONC(165.5,IEN,54.2)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 G V
D P Q:EX=U
V S TABLE="TABLE V - FIRST RECURRENCE AND SUBSEQUENT TREATMENT"
I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR^ONCTPC8
W !?15,TABLE,! D P Q:EX=U
W !,"DATE OF FIRST RECURRENCE..........: ",ONC(165.5,IEN,70) D P Q:EX=U
W !,"TYPE OF FIRST RECURRENCE..........: ",ONC(165.5,IEN,71) D P Q:EX=U
W !,"OTHER TYPE OF FIRST RECURRENCE....: ",ONC(165.5,IEN,71.4) D P Q:EX=U
ST I $D(^ONCO(165.5,IEN,4,0)) S SCTIEN=0 F CRSE=1:1 S SCTIEN=$O(^ONCO(165.5,IEN,4,SCTIEN)) Q:(SCTIEN'>0)!(CRSE=4)!(EX=U) D SCT
G:EX=U KILL G DSOFR
SCT S DIC="^ONCO(165.5,",DR=60,DA=IEN,DIQ="ONC"
S DR(165.51)=".01:32",DA(165.51)=SCTIEN D EN^DIQ1
S SURG=ONC(165.51,SCTIEN,.04),(SURG1,SURG2)=""
S LOS=$L(SURG) I LOS<62 S SURG1=SURG G TOS
S NOP=$L($E(SURG,1,61)," ")
S SURG1=$P(SURG," ",1,NOP-1),SURG2=$P(SURG," ",NOP,999)
TOS S COURSE=$S(CRSE=1:"SECOND",CRSE=2:"THIRD",CRSE=3:"FOURTH",1:"")
W !!," ",COURSE," COURSE:",! D P Q:EX=U
W !," DATE...........: ",ONC(165.51,SCTIEN,.01) D P Q:EX=U
W !," SURGERY........: ",SURG1 W:SURG2'="" !,?22,SURG2 D P Q:EX=U
D P Q:EX=U
W !," RADIATION......: ",ONC(165.51,SCTIEN,.05) D P Q:EX=U
W !," CHEMOTHERAPY...: ",ONC(165.51,SCTIEN,.06) D P Q:EX=U
W !," HORMONE THERAPY: ",ONC(165.51,SCTIEN,.07)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 W !?15,TABLE_" (continued)" Q
D P Q:EX=U
Q
DSOFR W !!,"DISTANT SITE(S) OF FIRST RECURRENCE:",!
W !,"RECURRENCE SITE 1.................: ",ONC(165.5,IEN,71.1) D P Q:EX=U
W !,"RECURRENCE SITE 2.................: ",ONC(165.5,IEN,71.2) D P Q:EX=U
W !,"RECURRENCE SITE 3.................: ",ONC(165.5,IEN,71.3)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR^ONCTPC8 G VI
D P Q:EX=U
VI S TABLE="TABLE VI - STATUS AT LAST CONTACT"
I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR^ONCTPC8
W !?15,TABLE,! D P Q:EX=U
S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
W !,"DATE OF LAST CONTACT OR DEATH.....: ",DLC
W !,"VITAL STATUS......................: ",ONC(160,ONCOPA,15) D P Q:EX=U
S CS="" I $D(^ONCO(165.5,IEN,"TS","AA")) D
.S CSDAT=$O(^ONCO(165.5,IEN,"TS","AA",""))
.S CSIEN=$O(^ONCO(165.5,IEN,"TS","AA",CSDAT,""))
.S CSPNT=$P(^ONCO(165.5,IEN,"TS",CSIEN,0),U,2)
.S CS=$P(^ONCO(164.42,CSPNT,0),U,1)
W !,"CANCER STATUS.....................: ",CS
W !,"AUTOPSY...........................: ",$E(ONC(160,ONCOPA,22.9),1,43) D P Q:EX=U
W !!,"COMPLETED BY......................: ",ONC(165.5,IEN,81) D P Q:EX=U
W !,"REVIEWED BY CANCER COMMITTEE......: ",ONC(165.5,IEN,82) D P Q:EX=U
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR
KILL ;Kill Variables and Exit
K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,FILN,ONCOBL,EX,TXT,X,Y,SCTIEN
Q
P ;Display Data
I ($Y'<(LIN-4)) D Q:EX=U W !?15,TABLE_" (continued)",!
.I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
.D HDR^ONCTPC8 Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCTPC8A 5807 printed Dec 13, 2024@02:29:07 Page 2
ONCTPC8A ;HIRMFO/GWB -PCE Study of Thyroid Cancer -Print (continued) ;8/15/96
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 SET TABLE="TABLE IV - FIRST COURSE OF TREATMENT"
+3 IF IOST'?1"C".E
WRITE !
IF ($Y'<(LIN-4))
DO HDR^ONCTPC8
+4 WRITE !?15,TABLE,!
DO P
if EX=U
QUIT
+5 SET D0=ONCONUM
DO DFC^ONCOCOM
SET DOIT=Y
+6 WRITE !,"FIRST COURSE TREATMENT DATE.......: ",DOIT
DO P
if EX=U
QUIT
+7 WRITE !!,"SURGERY:",!
DO P
if EX=U
QUIT
+8 SET NCDS=ONC(165.5,IEN,58.1)
+9 SET (NCDS1,NCDS2)=""
SET LOS=$LENGTH(NCDS)
IF LOS<45
SET NCDS1=NCDS
GOTO CDS
+10 SET NOP=$LENGTH($EXTRACT(NCDS,1,41)," ")
+11 SET NCDS1=$PIECE(NCDS," ",1,NOP-1)
SET NCDS2=$PIECE(NCDS," ",NOP,999)
CDS SET CDS=ONC(165.5,IEN,58.2)
+1 SET (CDS1,CDS2)=""
SET LOS=$LENGTH(CDS)
IF LOS<45
SET CDS1=CDS
GOTO S
+2 SET NOP=$LENGTH($EXTRACT(CDS,1,41)," ")
+3 SET CDS1=$PIECE(CDS," ",1,NOP-1)
SET CDS2=$PIECE(CDS," ",NOP,999)
S WRITE !," NON CANCER-DIRECTED SURGERY DATE: ",ONC(165.5,IEN,58.3)
DO P
if EX=U
QUIT
+1 WRITE !," NON CANCER-DIRECTED SURGERY.....: ",NCDS1
if NCDS2'=""
WRITE !,?39,NCDS2
DO P
if EX=U
QUIT
+2 WRITE !," SURGERY OF PRIMARY SITE DATE....: ",ONC(165.5,IEN,50)
DO P
if EX=U
QUIT
+3 WRITE !," DISCHARGE AFTER SURGERY DATE....: ",ONC(165.5,IEN,435)
DO P
if EX=U
QUIT
+4 WRITE !," SURGERY OF PRIMARY SITE.........: ",CDS1
if CDS2'=""
WRITE !,?39,CDS2
+5 WRITE !," RESIDUAL PRIMARY TUMOR..........: ",ONC(165.5,IEN,59)
+6 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
WRITE !?15,TABLE_" (continued)"
GOTO SC
+7 DO P
if EX=U
QUIT
SC WRITE !!," SURGICAL COMPLICATIONS:",!
DO P
if EX=U
QUIT
+1 WRITE !," AIRWAY PROBLEM W TRACHEOSTOMY.: ",ONC(165.5,IEN,436)
DO P
if EX=U
QUIT
+2 WRITE !," BLEEDING HEMOTOMA.............: ",ONC(165.5,IEN,437)
DO P
if EX=U
QUIT
+3 WRITE !," HYPOCALCEMIA..................: ",ONC(165.5,IEN,438)
DO P
if EX=U
QUIT
+4 WRITE !," RECURRENT NERVE INJURY........: ",ONC(165.5,IEN,439)
DO P
if EX=U
QUIT
+5 WRITE !," WOUND INFECTION...............: ",ONC(165.5,IEN,440)
DO P
if EX=U
QUIT
+6 WRITE !!," POSTOPERATIVE DEATH W/I 30 DAYS.: ",ONC(165.5,IEN,441)
+7 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
WRITE !?15,TABLE_" (continued)"
GOTO R
+8 DO P
if EX=U
QUIT
R WRITE !!,"RADIATION:",!
DO P
if EX=U
QUIT
+1 WRITE !," DATE RADIATION STARTED..........: ",ONC(165.5,IEN,51)
DO P
if EX=U
QUIT
+2 WRITE !," RADIATION ......................: ",ONC(165.5,IEN,51.2)
DO P
if EX=U
QUIT
+3 WRITE !," REGIONAL RAD (cGy) DOSE.........: ",ONC(165.5,IEN,442)
DO P
if EX=U
QUIT
+4 WRITE !," BOOST DOSAGE....................: ",ONC(165.5,IEN,443)
DO P
if EX=U
QUIT
+5 WRITE !!," TOTAL MILLICURIES (mCi) OF RADIOIODINE:",!
DO P
if EX=U
QUIT
+6 WRITE !," INITIAL DOSE..................: ",ONC(165.5,IEN,444)
DO P
if EX=U
QUIT
+7 WRITE !," SECOND DOSE...................: ",ONC(165.5,IEN,445)
+8 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
WRITE !?15,TABLE_" (continued)"
GOTO C
+9 DO P
if EX=U
QUIT
C WRITE !!,"CHEMOTHERAPY:",!
DO P
if EX=U
QUIT
+1 WRITE !," CHEMOTHERAPY....................: ",ONC(165.5,IEN,53.2)
DO P
if EX=U
QUIT
+2 WRITE !," ADJUVANT CHEMO W BEAM RADIATION.: ",ONC(165.5,IEN,446)
DO P
if EX=U
QUIT
+3 WRITE !!,"HORMONE THERAPY:",!
DO P
if EX=U
QUIT
+4 WRITE !," THYROID HORMONE THERAPY.........: ",ONC(165.5,IEN,54.2)
+5 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
GOTO V
+6 DO P
if EX=U
QUIT
V SET TABLE="TABLE V - FIRST RECURRENCE AND SUBSEQUENT TREATMENT"
+1 IF IOST'?1"C".E
WRITE !
IF ($Y'<(LIN-4))
DO HDR^ONCTPC8
+2 WRITE !?15,TABLE,!
DO P
if EX=U
QUIT
+3 WRITE !,"DATE OF FIRST RECURRENCE..........: ",ONC(165.5,IEN,70)
DO P
if EX=U
QUIT
+4 WRITE !,"TYPE OF FIRST RECURRENCE..........: ",ONC(165.5,IEN,71)
DO P
if EX=U
QUIT
+5 WRITE !,"OTHER TYPE OF FIRST RECURRENCE....: ",ONC(165.5,IEN,71.4)
DO P
if EX=U
QUIT
ST IF $DATA(^ONCO(165.5,IEN,4,0))
SET SCTIEN=0
FOR CRSE=1:1
SET SCTIEN=$ORDER(^ONCO(165.5,IEN,4,SCTIEN))
if (SCTIEN'>0)!(CRSE=4)!(EX=U)
QUIT
DO SCT
+1 if EX=U
GOTO KILL
GOTO DSOFR
SCT SET DIC="^ONCO(165.5,"
SET DR=60
SET DA=IEN
SET DIQ="ONC"
+1 SET DR(165.51)=".01:32"
SET DA(165.51)=SCTIEN
DO EN^DIQ1
+2 SET SURG=ONC(165.51,SCTIEN,.04)
SET (SURG1,SURG2)=""
+3 SET LOS=$LENGTH(SURG)
IF LOS<62
SET SURG1=SURG
GOTO TOS
+4 SET NOP=$LENGTH($EXTRACT(SURG,1,61)," ")
+5 SET SURG1=$PIECE(SURG," ",1,NOP-1)
SET SURG2=$PIECE(SURG," ",NOP,999)
TOS SET COURSE=$SELECT(CRSE=1:"SECOND",CRSE=2:"THIRD",CRSE=3:"FOURTH",1:"")
+1 WRITE !!," ",COURSE," COURSE:",!
DO P
if EX=U
QUIT
+2 WRITE !," DATE...........: ",ONC(165.51,SCTIEN,.01)
DO P
if EX=U
QUIT
+3 WRITE !," SURGERY........: ",SURG1
if SURG2'=""
WRITE !,?22,SURG2
DO P
if EX=U
QUIT
+4 DO P
if EX=U
QUIT
+5 WRITE !," RADIATION......: ",ONC(165.51,SCTIEN,.05)
DO P
if EX=U
QUIT
+6 WRITE !," CHEMOTHERAPY...: ",ONC(165.51,SCTIEN,.06)
DO P
if EX=U
QUIT
+7 WRITE !," HORMONE THERAPY: ",ONC(165.51,SCTIEN,.07)
+8 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
WRITE !?15,TABLE_" (continued)"
QUIT
+9 DO P
if EX=U
QUIT
+10 QUIT
DSOFR WRITE !!,"DISTANT SITE(S) OF FIRST RECURRENCE:",!
+1 WRITE !,"RECURRENCE SITE 1.................: ",ONC(165.5,IEN,71.1)
DO P
if EX=U
QUIT
+2 WRITE !,"RECURRENCE SITE 2.................: ",ONC(165.5,IEN,71.2)
DO P
if EX=U
QUIT
+3 WRITE !,"RECURRENCE SITE 3.................: ",ONC(165.5,IEN,71.3)
+4 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR^ONCTPC8
GOTO VI
+5 DO P
if EX=U
QUIT
VI SET TABLE="TABLE VI - STATUS AT LAST CONTACT"
+1 IF IOST'?1"C".E
WRITE !
IF ($Y'<(LIN-4))
DO HDR^ONCTPC8
+2 WRITE !?15,TABLE,!
DO P
if EX=U
QUIT
+3 SET DLC=""
IF $DATA(^ONCO(160,ONCOPA,"F","B"))
SET DLC=$ORDER(^ONCO(160,ONCOPA,"F","B",""),-1)
+4 IF DLC'=""
SET Y=DLC
DO DATEOT^ONCOPCE
SET DLC=Y
+5 WRITE !,"DATE OF LAST CONTACT OR DEATH.....: ",DLC
+6 WRITE !,"VITAL STATUS......................: ",ONC(160,ONCOPA,15)
DO P
if EX=U
QUIT
+7 SET CS=""
IF $DATA(^ONCO(165.5,IEN,"TS","AA"))
Begin DoDot:1
+8 SET CSDAT=$ORDER(^ONCO(165.5,IEN,"TS","AA",""))
+9 SET CSIEN=$ORDER(^ONCO(165.5,IEN,"TS","AA",CSDAT,""))
+10 SET CSPNT=$PIECE(^ONCO(165.5,IEN,"TS",CSIEN,0),U,2)
+11 SET CS=$PIECE(^ONCO(164.42,CSPNT,0),U,1)
End DoDot:1
+12 WRITE !,"CANCER STATUS.....................: ",CS
+13 WRITE !,"AUTOPSY...........................: ",$EXTRACT(ONC(160,ONCOPA,22.9),1,43)
DO P
if EX=U
QUIT
+14 WRITE !!,"COMPLETED BY......................: ",ONC(165.5,IEN,81)
DO P
if EX=U
QUIT
+15 WRITE !,"REVIEWED BY CANCER COMMITTEE......: ",ONC(165.5,IEN,82)
DO P
if EX=U
QUIT
+16 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
KILL ;Kill Variables and Exit
+1 KILL %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,FILN,ONCOBL,EX,TXT,X,Y,SCTIEN
+2 QUIT
P ;Display Data
+1 IF ($Y'<(LIN-4))
Begin DoDot:1
+2 IF IOST?1"C".E
KILL DIR
SET DIR(0)="E"
DO ^DIR
IF 'Y
SET EX=U
QUIT
+3 DO HDR^ONCTPC8
QUIT
End DoDot:1
if EX=U
QUIT
WRITE !?15,TABLE_" (continued)",!
+4 QUIT