ONCP2P8 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Print
K IOP,%ZIS S %ZIS="MQ" W ! D ^%ZIS K %ZIS,IOP G:POP KILL
I $D(IO("Q")) S ONCOLST="ONCONUM^ONCOPA^PATNAM^SPACES^TOPNAM^SSN^TOPTAB^TOPCOD^DASHES^SITTAB^SITEGP" D TASK G KILL
U IO D PRT D ^%ZISC K %ZIS,IOP G KILL
PRT S PG=0,EX="",LIN=$S(IOST?1"C".E:IOSL-2,1:IOSL-4),IE=ONCONUM
D NOW^%DTC S ONDATE=%,Y=ONDATE X ^DD("DD") S ONDATE=$P(Y,":",1,2)
K DIQ S DIC="^ONCO(160,",DR="9;15",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
S DR=".04;.05;.06;.12;1;3;9;18;19;20;23;24;26;29;32;33;37.1;37.2;37.3;38;50;51;51.2;53;53.2;54;54.2;58.1;58.2;58.3;59;70;71;74;81;82;85;86;87;88;89;138:142;145;146;307;441;623:699;699.1"
S DIC="^ONCO(165.5,",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
S HIST=$P($G(^ONCO(165.5,ONCONUM,2)),U,3)
K LINE S $P(LINE,"-",40)="-"
I S TABLE="TABLE I - GENERAL INFORMATION"
D HEAD^ONCP2P0
W !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC D P Q:EX=U
W !!?4,TABLE,!?4,"-----------------------------"
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
W !," 2. ACCESSION NUMBER.................: ",ONC(165.5,IE,.05) D P Q:EX=U
W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,IE,.06) D P Q:EX=U
W !," 4. POSTAL CODE AT DIAGNOSIS.........: ",ONC(165.5,IE,9) D P Q:EX=U
W !," 5. DATE OF BIRTH....................: ",DOB D P Q:EX=U
W !," 6. RACE.............................: ",ONC(165.5,IE,.12) D P Q:EX=U
W !," 7. SPANISH ORIGIN...................: ",ONC(160,ONCOPA,9) D P Q:EX=U
W !," 8. PRIMARY PAYER AT DIAGNOSIS.......: ",ONC(165.5,IE,18) D P Q:EX=U
W !," 9. FAMILY HISTORY OF PROSTATE CANCER: ",ONC(165.5,IE,657)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 G II
D P Q:EX=U
II S TABLE="TABLE II - INITIAL DIAGNOSIS"
I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HEAD^ONCP2P0
W !?4,TABLE,!?4,"----------------------------" D P Q:EX=U
W !,"10. CLASS OF CASE....................: ",ONC(165.5,IE,.04) D P Q:EX=U
W !!,"11. SYMPTOMS PRESENT AT INITIAL DIAGNOSIS:" D P Q:EX=U
W !," HEMATURIA.......................: ",ONC(165.5,IE,658) D P Q:EX=U
W !," LOWER BACK PAIN.................: ",ONC(165.5,IE,659) D P Q:EX=U
W !," TROUBLE URINATING...............: ",ONC(165.5,IE,660) D P Q:EX=U
K LINE S $P(LINE,"-",40)="-"
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 W !?4,TABLE_" (continued)",!?4,LINE G IMD
E W ! D P Q:EX=U
IMD W !,"12. INITIAL METHODS OF DIAGNOSIS:" D P Q:EX=U
W !," CLINICAL DX W BONE LESION.......: ",ONC(165.5,IE,661) D P Q:EX=U
W !," CLINICAL DX BY RECTAL EXAM......: ",ONC(165.5,IE,662) D P Q:EX=U
W !," CYTOLOGY........................: ",ONC(165.5,IE,663) D P Q:EX=U
W !," DIGITAL TRANSRECTAL BIOPSY......: ",ONC(165.5,IE,664) D P Q:EX=U
W !," INCIDENTAL FINDING IN TURP FOR BENIGN DISEASE..................: ",ONC(165.5,IE,665) D P Q:EX=U
W !," NEEDLE BIOPSY, NOS..............: ",ONC(165.5,IE,666) D P Q:EX=U
W !," PERINEAL BIOPSY.................: ",ONC(165.5,IE,667) D P Q:EX=U
W !," PSA.............................: ",ONC(165.5,IE,668) D P Q:EX=U
W !," TRUS GUIDED BIOPSY..............: ",ONC(165.5,IE,669) D P Q:EX=U
W !," TURP, NOS.......................: ",ONC(165.5,IE,670) D P Q:EX=U
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 W !?4,TABLE_" (continued)",!?4,LINE G DE
W ! D P Q:EX=U
DE W !,"13. DIAGNOSTIC EVALUATION:" D P Q:EX=U
W !," BONE MARROW ASPIRATION..........: ",ONC(165.5,IE,671) D P Q:EX=U
W !," BONE SCAN.......................: ",ONC(165.5,IE,672) D P Q:EX=U
W !," BONE X-RAY......................: ",ONC(165.5,IE,673) D P Q:EX=U
W !," CHEST X-RAY.....................: ",ONC(165.5,IE,674) D P Q:EX=U
W !," CT SCAN OF ABDOMEN..............: ",ONC(165.5,IE,675) D P Q:EX=U
W !," CT SCAN OF PELVIS...............: ",ONC(165.5,IE,676) D P Q:EX=U
W !," IVP.............................: ",ONC(165.5,IE,677) D P Q:EX=U
W !," MRI.............................: ",ONC(165.5,IE,678) D P Q:EX=U
W !," PELVIC LYMPH NODE DISSECTION....: ",ONC(165.5,IE,679) D P Q:EX=U
W !," PCR.............................: ",ONC(165.5,IE,680) D P Q:EX=U
W !," PAP.............................: ",ONC(165.5,IE,681) D P Q:EX=U
W !," PSA.............................: ",ONC(165.5,IE,682) D P Q:EX=U
W !," ULTRASOUND OF ABDOMEN...........: ",ONC(165.5,IE,683)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 W !?4,TABLE_" (continued)",!?4,LINE G PSA
E W ! D P Q:EX=U
PSA W !,"14. RESULTS OF MOST RECENT PRE-"
W !," TREATMENT PSA TEST...............: ",ONC(165.5,IE,684) D P Q:EX=U
W !,"15. DATE OF INITIAL DIAGNOSIS........: ",ONC(165.5,IE,3) D P Q:EX=U
W !,"16. PRIMARY SITE (ICD-O-2)...........: ",TOPCOD," ",ONC(165.5,IE,20)
W !,"17. HISTOLOGY (ICD-O-2)..............: ",$E(HIST,1,4) D P Q:EX=U
W !,"18. BEHAVIOR CODE (ICD-O-2)..........: ",$E(HIST,5) D P Q:EX=U
W !,"19. GRADE............................: ",ONC(165.5,IE,24) D P Q:EX=U
W !,"20. BIOPSY PROCEDURE.................: ",ONC(165.5,IE,141)
W !,"21. GUIDANCE OF BIOPSY TO PRIMARY....: ",ONC(165.5,IE,142)
W !,"22. BIOPSY APPROACH FOR PRIMARY......: ",ONC(165.5,IE,145)
W !,"23. BIOPSY OF OTHER THAN PRIMARY.....: ",ONC(165.5,IE,146)
W !,"24. DIAGNOSTIC CONFIRMATION..........: ",ONC(165.5,IE,26)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 W !?4,TABLE_" (continued)",!?4,LINE G GS
E W ! D P Q:EX=U
GS W !,"25. GLEASON'S SCORE FOR BIOPSY, LOCAL RESECTION, OR SIMPLE PROSTATECTOMY:" D P Q:EX=U
W !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.1) D P Q:EX=U
W !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.2) D P Q:EX=U
W !," GLEASON SCORE...................: ",ONC(165.5,IE,623) D P Q:EX=U
W ! D P Q:EX=U
W !,"26. GLEASON'S SCORE FOR RADICAL PROSTATECTOMY:" D P Q:EX=U
W !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.4) D P Q:EX=U
W !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.5) D P Q:EX=U
W !," GLEASON SCORE...................: ",ONC(165.5,IE,623.3) D P Q:EX=U
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 G III
D P Q:EX=U
III D ^ONCP2P8A
KILL ;Kill Variables and Exit
K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,HIST
K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y,OSP,IIN
Q
P ;Print
I ($Y'<(LIN-1)) D Q:EX=U 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^ONCP2P0 Q
Q
TASK ;Queue a task
K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
S ZTRTN="PRT^ONCP2P8",ZTREQ="@",ZTSAVE("ZTREQ")=""
S ZTDESC="Print Colorectal Cancer PCE"
F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
K V1,V2,ONCOLST,ZTSK Q
HDR ;Header
W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
W !," ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
W !," 1998 Patient Care Evaluation Study of Prostate Cancer"
W ?62,ONDATE,!,DASHES
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCP2P8 7293 printed Dec 13, 2024@02:26:57 Page 2
ONCP2P8 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Print
+3 KILL IOP,%ZIS
SET %ZIS="MQ"
WRITE !
DO ^%ZIS
KILL %ZIS,IOP
if POP
GOTO KILL
+4 IF $DATA(IO("Q"))
SET ONCOLST="ONCONUM^ONCOPA^PATNAM^SPACES^TOPNAM^SSN^TOPTAB^TOPCOD^DASHES^SITTAB^SITEGP"
DO TASK
GOTO KILL
+5 USE IO
DO PRT
DO ^%ZISC
KILL %ZIS,IOP
GOTO KILL
PRT SET PG=0
SET EX=""
SET LIN=$SELECT(IOST?1"C".E:IOSL-2,1:IOSL-4)
SET IE=ONCONUM
+1 DO NOW^%DTC
SET ONDATE=%
SET Y=ONDATE
XECUTE ^DD("DD")
SET ONDATE=$PIECE(Y,":",1,2)
+2 KILL DIQ
SET DIC="^ONCO(160,"
SET DR="9;15"
SET DA=ONCOPA
SET DIQ="ONC"
DO EN^DIQ1
+3 SET DR=".04;.05;.06;.12;1;3;9;18;19;20;23;24;26;29;32;33;37.1;37.2;37.3;38;50;51;51.2;53;53.2;54;54.2;58.1;58.2;58.3;59;70;71;74;81;82;85;86;87;88;89;138:142;145;146;307;441;623:699;699.1"
+4 SET DIC="^ONCO(165.5,"
SET DA=ONCONUM
SET DIQ="ONC"
DO EN^DIQ1
+5 SET HIST=$PIECE($GET(^ONCO(165.5,ONCONUM,2)),U,3)
+6 KILL LINE
SET $PIECE(LINE,"-",40)="-"
I SET TABLE="TABLE I - GENERAL INFORMATION"
+1 DO HEAD^ONCP2P0
+2 WRITE !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC
DO P
if EX=U
QUIT
+3 WRITE !!?4,TABLE,!?4,"-----------------------------"
+4 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+5 WRITE !," 2. ACCESSION NUMBER.................: ",ONC(165.5,IE,.05)
DO P
if EX=U
QUIT
+6 WRITE !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,IE,.06)
DO P
if EX=U
QUIT
+7 WRITE !," 4. POSTAL CODE AT DIAGNOSIS.........: ",ONC(165.5,IE,9)
DO P
if EX=U
QUIT
+8 WRITE !," 5. DATE OF BIRTH....................: ",DOB
DO P
if EX=U
QUIT
+9 WRITE !," 6. RACE.............................: ",ONC(165.5,IE,.12)
DO P
if EX=U
QUIT
+10 WRITE !," 7. SPANISH ORIGIN...................: ",ONC(160,ONCOPA,9)
DO P
if EX=U
QUIT
+11 WRITE !," 8. PRIMARY PAYER AT DIAGNOSIS.......: ",ONC(165.5,IE,18)
DO P
if EX=U
QUIT
+12 WRITE !," 9. FAMILY HISTORY OF PROSTATE CANCER: ",ONC(165.5,IE,657)
+13 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
GOTO II
+14 DO P
if EX=U
QUIT
II SET TABLE="TABLE II - INITIAL DIAGNOSIS"
+1 IF IOST'?1"C".E
WRITE !
IF ($Y'<(LIN-4))
DO HEAD^ONCP2P0
+2 WRITE !?4,TABLE,!?4,"----------------------------"
DO P
if EX=U
QUIT
+3 WRITE !,"10. CLASS OF CASE....................: ",ONC(165.5,IE,.04)
DO P
if EX=U
QUIT
+4 WRITE !!,"11. SYMPTOMS PRESENT AT INITIAL DIAGNOSIS:"
DO P
if EX=U
QUIT
+5 WRITE !," HEMATURIA.......................: ",ONC(165.5,IE,658)
DO P
if EX=U
QUIT
+6 WRITE !," LOWER BACK PAIN.................: ",ONC(165.5,IE,659)
DO P
if EX=U
QUIT
+7 WRITE !," TROUBLE URINATING...............: ",ONC(165.5,IE,660)
DO P
if EX=U
QUIT
+8 KILL LINE
SET $PIECE(LINE,"-",40)="-"
+9 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO IMD
+10 IF '$TEST
WRITE !
DO P
if EX=U
QUIT
IMD WRITE !,"12. INITIAL METHODS OF DIAGNOSIS:"
DO P
if EX=U
QUIT
+1 WRITE !," CLINICAL DX W BONE LESION.......: ",ONC(165.5,IE,661)
DO P
if EX=U
QUIT
+2 WRITE !," CLINICAL DX BY RECTAL EXAM......: ",ONC(165.5,IE,662)
DO P
if EX=U
QUIT
+3 WRITE !," CYTOLOGY........................: ",ONC(165.5,IE,663)
DO P
if EX=U
QUIT
+4 WRITE !," DIGITAL TRANSRECTAL BIOPSY......: ",ONC(165.5,IE,664)
DO P
if EX=U
QUIT
+5 WRITE !," INCIDENTAL FINDING IN TURP FOR BENIGN DISEASE..................: ",ONC(165.5,IE,665)
DO P
if EX=U
QUIT
+6 WRITE !," NEEDLE BIOPSY, NOS..............: ",ONC(165.5,IE,666)
DO P
if EX=U
QUIT
+7 WRITE !," PERINEAL BIOPSY.................: ",ONC(165.5,IE,667)
DO P
if EX=U
QUIT
+8 WRITE !," PSA.............................: ",ONC(165.5,IE,668)
DO P
if EX=U
QUIT
+9 WRITE !," TRUS GUIDED BIOPSY..............: ",ONC(165.5,IE,669)
DO P
if EX=U
QUIT
+10 WRITE !," TURP, NOS.......................: ",ONC(165.5,IE,670)
DO P
if EX=U
QUIT
+11 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO DE
+12 WRITE !
DO P
if EX=U
QUIT
DE WRITE !,"13. DIAGNOSTIC EVALUATION:"
DO P
if EX=U
QUIT
+1 WRITE !," BONE MARROW ASPIRATION..........: ",ONC(165.5,IE,671)
DO P
if EX=U
QUIT
+2 WRITE !," BONE SCAN.......................: ",ONC(165.5,IE,672)
DO P
if EX=U
QUIT
+3 WRITE !," BONE X-RAY......................: ",ONC(165.5,IE,673)
DO P
if EX=U
QUIT
+4 WRITE !," CHEST X-RAY.....................: ",ONC(165.5,IE,674)
DO P
if EX=U
QUIT
+5 WRITE !," CT SCAN OF ABDOMEN..............: ",ONC(165.5,IE,675)
DO P
if EX=U
QUIT
+6 WRITE !," CT SCAN OF PELVIS...............: ",ONC(165.5,IE,676)
DO P
if EX=U
QUIT
+7 WRITE !," IVP.............................: ",ONC(165.5,IE,677)
DO P
if EX=U
QUIT
+8 WRITE !," MRI.............................: ",ONC(165.5,IE,678)
DO P
if EX=U
QUIT
+9 WRITE !," PELVIC LYMPH NODE DISSECTION....: ",ONC(165.5,IE,679)
DO P
if EX=U
QUIT
+10 WRITE !," PCR.............................: ",ONC(165.5,IE,680)
DO P
if EX=U
QUIT
+11 WRITE !," PAP.............................: ",ONC(165.5,IE,681)
DO P
if EX=U
QUIT
+12 WRITE !," PSA.............................: ",ONC(165.5,IE,682)
DO P
if EX=U
QUIT
+13 WRITE !," ULTRASOUND OF ABDOMEN...........: ",ONC(165.5,IE,683)
+14 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO PSA
+15 IF '$TEST
WRITE !
DO P
if EX=U
QUIT
PSA WRITE !,"14. RESULTS OF MOST RECENT PRE-"
+1 WRITE !," TREATMENT PSA TEST...............: ",ONC(165.5,IE,684)
DO P
if EX=U
QUIT
+2 WRITE !,"15. DATE OF INITIAL DIAGNOSIS........: ",ONC(165.5,IE,3)
DO P
if EX=U
QUIT
+3 WRITE !,"16. PRIMARY SITE (ICD-O-2)...........: ",TOPCOD," ",ONC(165.5,IE,20)
+4 WRITE !,"17. HISTOLOGY (ICD-O-2)..............: ",$EXTRACT(HIST,1,4)
DO P
if EX=U
QUIT
+5 WRITE !,"18. BEHAVIOR CODE (ICD-O-2)..........: ",$EXTRACT(HIST,5)
DO P
if EX=U
QUIT
+6 WRITE !,"19. GRADE............................: ",ONC(165.5,IE,24)
DO P
if EX=U
QUIT
+7 WRITE !,"20. BIOPSY PROCEDURE.................: ",ONC(165.5,IE,141)
+8 WRITE !,"21. GUIDANCE OF BIOPSY TO PRIMARY....: ",ONC(165.5,IE,142)
+9 WRITE !,"22. BIOPSY APPROACH FOR PRIMARY......: ",ONC(165.5,IE,145)
+10 WRITE !,"23. BIOPSY OF OTHER THAN PRIMARY.....: ",ONC(165.5,IE,146)
+11 WRITE !,"24. DIAGNOSTIC CONFIRMATION..........: ",ONC(165.5,IE,26)
+12 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO GS
+13 IF '$TEST
WRITE !
DO P
if EX=U
QUIT
GS WRITE !,"25. GLEASON'S SCORE FOR BIOPSY, LOCAL RESECTION, OR SIMPLE PROSTATECTOMY:"
DO P
if EX=U
QUIT
+1 WRITE !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.1)
DO P
if EX=U
QUIT
+2 WRITE !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.2)
DO P
if EX=U
QUIT
+3 WRITE !," GLEASON SCORE...................: ",ONC(165.5,IE,623)
DO P
if EX=U
QUIT
+4 WRITE !
DO P
if EX=U
QUIT
+5 WRITE !,"26. GLEASON'S SCORE FOR RADICAL PROSTATECTOMY:"
DO P
if EX=U
QUIT
+6 WRITE !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.4)
DO P
if EX=U
QUIT
+7 WRITE !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.5)
DO P
if EX=U
QUIT
+8 WRITE !," GLEASON SCORE...................: ",ONC(165.5,IE,623.3)
DO P
if EX=U
QUIT
+9 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HEAD^ONCP2P0
GOTO III
+10 DO P
if EX=U
QUIT
III DO ^ONCP2P8A
KILL ;Kill Variables and Exit
+1 KILL CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,HIST
+2 KILL NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
+3 KILL %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y,OSP,IIN
+4 QUIT
P ;Print
+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^ONCP2P0
QUIT
End DoDot:1
if EX=U
QUIT
WRITE !?4,TABLE_" (continued)",!?4,LINE
+4 QUIT
TASK ;Queue a task
+1 KILL IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
+2 SET ZTRTN="PRT^ONCP2P8"
SET ZTREQ="@"
SET ZTSAVE("ZTREQ")=""
+3 SET ZTDESC="Print Colorectal Cancer PCE"
+4 FOR V2=1:1
SET V1=$PIECE(ONCOLST,"^",V2)
if V1=""
QUIT
SET ZTSAVE(V1)=""
+5 DO ^%ZTLOAD
DO ^%ZISC
USE IO
WRITE !,"Request Queued",!
+6 KILL V1,V2,ONCOLST,ZTSK
QUIT
HDR ;Header
+1 WRITE @IOF
SET PG=PG+1
NEW BLANKS
SET $PIECE(BLANKS," ",SITTAB-$LENGTH(PATNAM)-4)=" "
+2 WRITE !," ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
+3 WRITE $SELECT($LENGTH(PG)=2:" ",1:" "),PG,!,DASHES
+4 WRITE !," 1998 Patient Care Evaluation Study of Prostate Cancer"
+5 WRITE ?62,ONDATE,!,DASHES
+6 QUIT