ONCNPC8 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/0
;;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-6),IEN=ONCONUM,LINE=""
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;.1;.12;3;4;9;18;19;20;22;26;38;50;51;51.2;58.2;70;71;71.4;81;82;88;89;313;421;504;505;506;512;514;516;563;800:899"
S DIC="^ONCO(165.5,",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
I S TABLE="TABLE I - GENERAL INFORMATION"
D HDR
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,IEN,.05) D P Q:EX=U
W !," 3. SEQUENCE NUMBER.................: ",ONC(165.5,IEN,.06) D P Q:EX=U
W !," 4. POSTAL CODE AT DIAGNOSIS........: ",ONC(165.5,IEN,9) D P Q:EX=U
W !," 5. DATE OF BIRTH...................: ",DOB D P Q:EX=U
W !," 6. AGE AT DIAGNOSIS................: ",ONC(165.5,IEN,4) D P Q:EX=U
W !," 7. RACE............................: ",ONC(165.5,IEN,.12) D P Q:EX=U
W !," 8. SPANISH ORIGIN..................: ",ONC(160,ONCOPA,9) D P Q:EX=U
W !," 9. SEX.............................: ",ONC(165.5,IEN,.1) D P Q:EX=U
W !,"10. PRIMARY PAYER AT DIAGNOSIS......: ",ONC(165.5,IEN,18)
S LINE="-----------------------------------------"
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?4,TABLE_" (continued)",!?4,LINE G FHC
W ! D P Q:EX=U
FHC W !,"11. FAMILY HISTORY OF CANCER:" D P Q:EX=U
W !," LEUKEMIA......................: ",ONC(165.5,IEN,800) D P Q:EX=U
W !," NON-HODGKIN'S LYMPHOMA........: ",ONC(165.5,IEN,801) D P Q:EX=U
W !," HODGKIN'S LYMPHOMA............: ",ONC(165.5,IEN,802) D P Q:EX=U
W !," OTHER CANCER..................: ",ONC(165.5,IEN,313) D P Q:EX=U
W ! D P Q:EX=U
PHAC W !,"12. PERSONAL HISTORY OF ANY CANCER:" D P Q:EX=U
W !," 1ST PRIMARY SITE..............: ",ONC(165.5,IEN,803) D P Q:EX=U
W !," 1ST PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,804) D P Q:EX=U
W !," 2ND PRIMARY SITE..............: ",ONC(165.5,IEN,805) D P Q:EX=U
W !," 2ND PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,806)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?4,TABLE_" (continued)",!?4,LINE G PC
W ! D P Q:EX=U
PC W !,"13. PRE-EXISTING CONDITIONS:" D P Q:EX=U
W !," ORGAN TRANSPLANT..............: ",ONC(165.5,IEN,807) D P Q:EX=U
W !," HIV POSITIVE..................: ",ONC(165.5,IEN,808) D P Q:EX=U
W !," CROHN'S DIS/ULCERATIVE COLITIS: ",ONC(165.5,IEN,809) D P Q:EX=U
W !," HASHIMOTO'S THYROIDITIS.......: ",ONC(165.5,IEN,810) D P Q:EX=U
W !," SYSTEMIC LUPUS ERYTHEMATOSUS..: ",ONC(165.5,IEN,811) D P Q:EX=U
W !," RHEUMATOID ARTHRITIS/SJOGREN'S: ",ONC(165.5,IEN,812) D P Q:EX=U
W !," PNEUMOCYSTIS CARINII..........: ",ONC(165.5,IEN,813) D P Q:EX=U
W !," CMV INFECTION.................: ",ONC(165.5,IEN,814) D P Q:EX=U
W !," TUBERCULOSIS..................: ",ONC(165.5,IEN,815) D P Q:EX=U
W !," MYCOBACTERIUM AVIUM...........: ",ONC(165.5,IEN,816) D P Q:EX=U
W !," OTHER PARASITIC INFECTIONS....: ",ONC(165.5,IEN,817) D P Q:EX=U
W !," OTHER CONGENITAL DISEASES.....: ",ONC(165.5,IEN,818) D P Q:EX=U
W !," OPPORTUNISTIC DISEASE.........: ",ONC(165.5,IEN,819)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?4,TABLE_" (continued)",!?4,LINE G PCRT
W ! D P Q:EX=U
PCRT W !,"14. PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:" D P Q:EX=U
W !," CHEMOTHERAPY..................: ",ONC(165.5,IEN,820) D P Q:EX=U
W !," RADIATION THERAPY.............: ",ONC(165.5,IEN,821) D P Q:EX=U
W ! D P Q:EX=U
W !,"15. AIDS RISK CATEGORY..............: ",ONC(165.5,IEN,822)
I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
D P Q:EX=U
II D ^ONCNPC8A
KILL ;Kill Variables and Exit
K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,LINE
K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE,OSP
K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
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 HDR Q
Q
TASK ;Queue a task
K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
S ZTRTN="PRT^ONCNPC8",ZTREQ="@",ZTSAVE("ZTREQ")=""
S ZTDESC="Print Non-Hodgkin's Lymphoma 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 !?19,"PCE Study of Non-Hodgkin's Lymphoma"
W ?62,ONDATE,!,DASHES
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCNPC8 5123 printed Oct 16, 2024@18:24:42 Page 2
ONCNPC8 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/0
+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-6)
SET IEN=ONCONUM
SET LINE=""
+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;.1;.12;3;4;9;18;19;20;22;26;38;50;51;51.2;58.2;70;71;71.4;81;82;88;89;313;421;504;505;506;512;514;516;563;800:899"
+4 SET DIC="^ONCO(165.5,"
SET DA=ONCONUM
SET DIQ="ONC"
DO EN^DIQ1
I SET TABLE="TABLE I - GENERAL INFORMATION"
+1 DO HDR
+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,IEN,.05)
DO P
if EX=U
QUIT
+6 WRITE !," 3. SEQUENCE NUMBER.................: ",ONC(165.5,IEN,.06)
DO P
if EX=U
QUIT
+7 WRITE !," 4. POSTAL CODE AT DIAGNOSIS........: ",ONC(165.5,IEN,9)
DO P
if EX=U
QUIT
+8 WRITE !," 5. DATE OF BIRTH...................: ",DOB
DO P
if EX=U
QUIT
+9 WRITE !," 6. AGE AT DIAGNOSIS................: ",ONC(165.5,IEN,4)
DO P
if EX=U
QUIT
+10 WRITE !," 7. RACE............................: ",ONC(165.5,IEN,.12)
DO P
if EX=U
QUIT
+11 WRITE !," 8. SPANISH ORIGIN..................: ",ONC(160,ONCOPA,9)
DO P
if EX=U
QUIT
+12 WRITE !," 9. SEX.............................: ",ONC(165.5,IEN,.1)
DO P
if EX=U
QUIT
+13 WRITE !,"10. PRIMARY PAYER AT DIAGNOSIS......: ",ONC(165.5,IEN,18)
+14 SET LINE="-----------------------------------------"
+15 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO FHC
+16 WRITE !
DO P
if EX=U
QUIT
FHC WRITE !,"11. FAMILY HISTORY OF CANCER:"
DO P
if EX=U
QUIT
+1 WRITE !," LEUKEMIA......................: ",ONC(165.5,IEN,800)
DO P
if EX=U
QUIT
+2 WRITE !," NON-HODGKIN'S LYMPHOMA........: ",ONC(165.5,IEN,801)
DO P
if EX=U
QUIT
+3 WRITE !," HODGKIN'S LYMPHOMA............: ",ONC(165.5,IEN,802)
DO P
if EX=U
QUIT
+4 WRITE !," OTHER CANCER..................: ",ONC(165.5,IEN,313)
DO P
if EX=U
QUIT
+5 WRITE !
DO P
if EX=U
QUIT
PHAC WRITE !,"12. PERSONAL HISTORY OF ANY CANCER:"
DO P
if EX=U
QUIT
+1 WRITE !," 1ST PRIMARY SITE..............: ",ONC(165.5,IEN,803)
DO P
if EX=U
QUIT
+2 WRITE !," 1ST PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,804)
DO P
if EX=U
QUIT
+3 WRITE !," 2ND PRIMARY SITE..............: ",ONC(165.5,IEN,805)
DO P
if EX=U
QUIT
+4 WRITE !," 2ND PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,806)
+5 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO PC
+6 WRITE !
DO P
if EX=U
QUIT
PC WRITE !,"13. PRE-EXISTING CONDITIONS:"
DO P
if EX=U
QUIT
+1 WRITE !," ORGAN TRANSPLANT..............: ",ONC(165.5,IEN,807)
DO P
if EX=U
QUIT
+2 WRITE !," HIV POSITIVE..................: ",ONC(165.5,IEN,808)
DO P
if EX=U
QUIT
+3 WRITE !," CROHN'S DIS/ULCERATIVE COLITIS: ",ONC(165.5,IEN,809)
DO P
if EX=U
QUIT
+4 WRITE !," HASHIMOTO'S THYROIDITIS.......: ",ONC(165.5,IEN,810)
DO P
if EX=U
QUIT
+5 WRITE !," SYSTEMIC LUPUS ERYTHEMATOSUS..: ",ONC(165.5,IEN,811)
DO P
if EX=U
QUIT
+6 WRITE !," RHEUMATOID ARTHRITIS/SJOGREN'S: ",ONC(165.5,IEN,812)
DO P
if EX=U
QUIT
+7 WRITE !," PNEUMOCYSTIS CARINII..........: ",ONC(165.5,IEN,813)
DO P
if EX=U
QUIT
+8 WRITE !," CMV INFECTION.................: ",ONC(165.5,IEN,814)
DO P
if EX=U
QUIT
+9 WRITE !," TUBERCULOSIS..................: ",ONC(165.5,IEN,815)
DO P
if EX=U
QUIT
+10 WRITE !," MYCOBACTERIUM AVIUM...........: ",ONC(165.5,IEN,816)
DO P
if EX=U
QUIT
+11 WRITE !," OTHER PARASITIC INFECTIONS....: ",ONC(165.5,IEN,817)
DO P
if EX=U
QUIT
+12 WRITE !," OTHER CONGENITAL DISEASES.....: ",ONC(165.5,IEN,818)
DO P
if EX=U
QUIT
+13 WRITE !," OPPORTUNISTIC DISEASE.........: ",ONC(165.5,IEN,819)
+14 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR
WRITE !?4,TABLE_" (continued)",!?4,LINE
GOTO PCRT
+15 WRITE !
DO P
if EX=U
QUIT
PCRT WRITE !,"14. PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:"
DO P
if EX=U
QUIT
+1 WRITE !," CHEMOTHERAPY..................: ",ONC(165.5,IEN,820)
DO P
if EX=U
QUIT
+2 WRITE !," RADIATION THERAPY.............: ",ONC(165.5,IEN,821)
DO P
if EX=U
QUIT
+3 WRITE !
DO P
if EX=U
QUIT
+4 WRITE !,"15. AIDS RISK CATEGORY..............: ",ONC(165.5,IEN,822)
+5 IF IOST?1"C".E
WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if 'Y
QUIT
DO HDR
GOTO II
+6 DO P
if EX=U
QUIT
II DO ^ONCNPC8A
KILL ;Kill Variables and Exit
+1 KILL CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,LINE
+2 KILL NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE,OSP
+3 KILL %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
+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 HDR
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^ONCNPC8"
SET ZTREQ="@"
SET ZTSAVE("ZTREQ")=""
+3 SET ZTDESC="Print Non-Hodgkin's Lymphoma 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 !?19,"PCE Study of Non-Hodgkin's Lymphoma"
+5 WRITE ?62,ONDATE,!,DASHES
+6 QUIT