ONCBRP9B ;HINES CIOFO/GWB - 1998 Breast Cancer Study - print ;6/1/98
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
VI S TABLE="TABLE VI - FIRST RECURRENCE"
I IOST'?1"C".E W !
W !?4,TABLE,!?4,"---------------------------" D P Q:EX=U
W !,"81. DATE OF FIRST RECURRENCE.........: ",ONC(165.5,IE,70) D P Q:EX=U
S DESC=ONC(165.5,ONCONUM,71)
S (DESC1,DESC2)="",LOS=$L(DESC) I LOS<43 S DESC1=DESC G TFR
S NOP=$L($E(DESC,1,41)," ")
S DESC1=$P(DESC," ",1,NOP-1),DESC2=$P(DESC," ",NOP,999)
TFR W !,"82. TYPE OF FIRST RECURRENCE.........: ",DESC1 W:DESC2'="" !,?39,DESC2 S END=1 D P Q:EX=U
VII S TABLE="TABLE VII - STATUS AT LAST CONTACT"
I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HEAD^ONCBRP0
W !!?4,TABLE,!?4,"----------------------------------" 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 !,"83. DATE OF LAST CONTACT OR DEATH....: ",DLC
W !,"84. VITAL STATUS.....................: ",ONC(160,ONCOPA,15) D P Q:EX=U
S CS="" I $D(^ONCO(165.5,IE,"TS","AA")) D
.S CSDAT=$O(^ONCO(165.5,IE,"TS","AA",""))
.S CSI=$O(^ONCO(165.5,IE,"TS","AA",CSDAT,""))
.S CSPNT=$P(^ONCO(165.5,IE,"TS",CSI,0),U,2)
.S CS=$P(^ONCO(164.42,CSPNT,0),U,1)
W !,"85. CANCER STATUS....................: ",CS
W !,"86. COMPLETED BY.....................: ",ONC(165.5,IE,81) D P Q:EX=U
W !,"87. REVIEWED BY CANCER COMMITTEE.....: ",ONC(165.5,IE,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,SCTI
Q
P ;Display Data
I ($Y'<(LIN-1)) D Q:EX=U I IOST?1"C".E,$G(END)'=1 W !?4,TABLE_" (continued)",!?4,LINE
.I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
.D HEAD^ONCBRP0 Q
K END Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBRP9B 1787 printed Dec 13, 2024@02:22:26 Page 2
ONCBRP9B ;HINES CIOFO/GWB - 1998 Breast Cancer Study - print ;6/1/98
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
VI SET TABLE="TABLE VI - FIRST RECURRENCE"
+1 IF IOST'?1"C".E
WRITE !
+2 WRITE !?4,TABLE,!?4,"---------------------------"
DO P
if EX=U
QUIT
+3 WRITE !,"81. DATE OF FIRST RECURRENCE.........: ",ONC(165.5,IE,70)
DO P
if EX=U
QUIT
+4 SET DESC=ONC(165.5,ONCONUM,71)
+5 SET (DESC1,DESC2)=""
SET LOS=$LENGTH(DESC)
IF LOS<43
SET DESC1=DESC
GOTO TFR
+6 SET NOP=$LENGTH($EXTRACT(DESC,1,41)," ")
+7 SET DESC1=$PIECE(DESC," ",1,NOP-1)
SET DESC2=$PIECE(DESC," ",NOP,999)
TFR WRITE !,"82. TYPE OF FIRST RECURRENCE.........: ",DESC1
if DESC2'=""
WRITE !,?39,DESC2
SET END=1
DO P
if EX=U
QUIT
VII SET TABLE="TABLE VII - STATUS AT LAST CONTACT"
+1 IF IOST'?1"C".E
WRITE !
IF ($Y'<(LIN-4))
DO HEAD^ONCBRP0
+2 WRITE !!?4,TABLE,!?4,"----------------------------------"
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 !,"83. DATE OF LAST CONTACT OR DEATH....: ",DLC
+6 WRITE !,"84. VITAL STATUS.....................: ",ONC(160,ONCOPA,15)
DO P
if EX=U
QUIT
+7 SET CS=""
IF $DATA(^ONCO(165.5,IE,"TS","AA"))
Begin DoDot:1
+8 SET CSDAT=$ORDER(^ONCO(165.5,IE,"TS","AA",""))
+9 SET CSI=$ORDER(^ONCO(165.5,IE,"TS","AA",CSDAT,""))
+10 SET CSPNT=$PIECE(^ONCO(165.5,IE,"TS",CSI,0),U,2)
+11 SET CS=$PIECE(^ONCO(164.42,CSPNT,0),U,1)
End DoDot:1
+12 WRITE !,"85. CANCER STATUS....................: ",CS
+13 WRITE !,"86. COMPLETED BY.....................: ",ONC(165.5,IE,81)
DO P
if EX=U
QUIT
+14 WRITE !,"87. REVIEWED BY CANCER COMMITTEE.....: ",ONC(165.5,IE,82)
DO P
if EX=U
QUIT
+15 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,SCTI
+2 QUIT
P ;Display Data
+1 IF ($Y'<(LIN-1))
Begin DoDot:1
+2 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
IF 'Y
SET EX=U
QUIT
+3 DO HEAD^ONCBRP0
QUIT
End DoDot:1
if EX=U
QUIT
IF IOST?1"C".E
IF $GET(END)'=1
WRITE !?4,TABLE_" (continued)",!?4,LINE
+4 KILL END
QUIT