Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ONCTPC8A

ONCTPC8A.m

Go to the documentation of this file.
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