source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCNPC8.m@ 1470

Last change on this file since 1470 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 4.9 KB
Line 
1ONCNPC8 ;Hines OIFO/GWB - PCE Study of Non-Hodgkin's Lymphoma ;05/30/0
2 ;;2.11;ONCOLOGY;**11,13,16,24,26**;Mar 07, 1995
3 ;Print
4 K IOP,%ZIS S %ZIS="MQ" W ! D ^%ZIS K %ZIS,IOP G:POP KILL
5 I $D(IO("Q")) S ONCOLST="ONCONUM^ONCOPA^PATNAM^SPACES^TOPNAM^SSN^TOPTAB^TOPCOD^DASHES^SITTAB^SITEGP" D TASK G KILL
6 U IO D PRT D ^%ZISC K %ZIS,IOP G KILL
7PRT S PG=0,EX="",LIN=$S(IOST?1"C".E:IOSL-2,1:IOSL-6),IEN=ONCONUM,LINE=""
8 D NOW^%DTC S ONDATE=%,Y=ONDATE X ^DD("DD") S ONDATE=$P(Y,":",1,2)
9 K DIQ S DIC="^ONCO(160,",DR="9;15",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
10 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"
11 S DIC="^ONCO(165.5,",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
12I S TABLE="TABLE I - GENERAL INFORMATION"
13 D HDR
14 W !," 1. INSTITUTION ID NUMBER...........: H6",$$IIN^ONCFUNC D P Q:EX=U
15 W !!?4,TABLE,!?4,"-----------------------------"
16 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
17 W !," 2. ACCESSION NUMBER................: ",ONC(165.5,IEN,.05) D P Q:EX=U
18 W !," 3. SEQUENCE NUMBER.................: ",ONC(165.5,IEN,.06) D P Q:EX=U
19 W !," 4. POSTAL CODE AT DIAGNOSIS........: ",ONC(165.5,IEN,9) D P Q:EX=U
20 W !," 5. DATE OF BIRTH...................: ",DOB D P Q:EX=U
21 W !," 6. AGE AT DIAGNOSIS................: ",ONC(165.5,IEN,4) D P Q:EX=U
22 W !," 7. RACE............................: ",ONC(165.5,IEN,.12) D P Q:EX=U
23 W !," 8. SPANISH ORIGIN..................: ",ONC(160,ONCOPA,9) D P Q:EX=U
24 W !," 9. SEX.............................: ",ONC(165.5,IEN,.1) D P Q:EX=U
25 W !,"10. PRIMARY PAYER AT DIAGNOSIS......: ",ONC(165.5,IEN,18)
26 S LINE="-----------------------------------------"
27 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
28 W ! D P Q:EX=U
29FHC W !,"11. FAMILY HISTORY OF CANCER:" D P Q:EX=U
30 W !," LEUKEMIA......................: ",ONC(165.5,IEN,800) D P Q:EX=U
31 W !," NON-HODGKIN'S LYMPHOMA........: ",ONC(165.5,IEN,801) D P Q:EX=U
32 W !," HODGKIN'S LYMPHOMA............: ",ONC(165.5,IEN,802) D P Q:EX=U
33 W !," OTHER CANCER..................: ",ONC(165.5,IEN,313) D P Q:EX=U
34 W ! D P Q:EX=U
35PHAC W !,"12. PERSONAL HISTORY OF ANY CANCER:" D P Q:EX=U
36 W !," 1ST PRIMARY SITE..............: ",ONC(165.5,IEN,803) D P Q:EX=U
37 W !," 1ST PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,804) D P Q:EX=U
38 W !," 2ND PRIMARY SITE..............: ",ONC(165.5,IEN,805) D P Q:EX=U
39 W !," 2ND PRIMARY HISTOLOGY.........: ",ONC(165.5,IEN,806)
40 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
41 W ! D P Q:EX=U
42PC W !,"13. PRE-EXISTING CONDITIONS:" D P Q:EX=U
43 W !," ORGAN TRANSPLANT..............: ",ONC(165.5,IEN,807) D P Q:EX=U
44 W !," HIV POSITIVE..................: ",ONC(165.5,IEN,808) D P Q:EX=U
45 W !," CROHN'S DIS/ULCERATIVE COLITIS: ",ONC(165.5,IEN,809) D P Q:EX=U
46 W !," HASHIMOTO'S THYROIDITIS.......: ",ONC(165.5,IEN,810) D P Q:EX=U
47 W !," SYSTEMIC LUPUS ERYTHEMATOSUS..: ",ONC(165.5,IEN,811) D P Q:EX=U
48 W !," RHEUMATOID ARTHRITIS/SJOGREN'S: ",ONC(165.5,IEN,812) D P Q:EX=U
49 W !," PNEUMOCYSTIS CARINII..........: ",ONC(165.5,IEN,813) D P Q:EX=U
50 W !," CMV INFECTION.................: ",ONC(165.5,IEN,814) D P Q:EX=U
51 W !," TUBERCULOSIS..................: ",ONC(165.5,IEN,815) D P Q:EX=U
52 W !," MYCOBACTERIUM AVIUM...........: ",ONC(165.5,IEN,816) D P Q:EX=U
53 W !," OTHER PARASITIC INFECTIONS....: ",ONC(165.5,IEN,817) D P Q:EX=U
54 W !," OTHER CONGENITAL DISEASES.....: ",ONC(165.5,IEN,818) D P Q:EX=U
55 W !," OPPORTUNISTIC DISEASE.........: ",ONC(165.5,IEN,819)
56 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
57 W ! D P Q:EX=U
58PCRT W !,"14. PREVIOUS CHEMOTHERAPY/RADIATION THERAPY:" D P Q:EX=U
59 W !," CHEMOTHERAPY..................: ",ONC(165.5,IEN,820) D P Q:EX=U
60 W !," RADIATION THERAPY.............: ",ONC(165.5,IEN,821) D P Q:EX=U
61 W ! D P Q:EX=U
62 W !,"15. AIDS RISK CATEGORY..............: ",ONC(165.5,IEN,822)
63 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
64 D P Q:EX=U
65II D ^ONCNPC8A
66KILL ;Kill Variables and Exit
67 K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,LINE
68 K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE,OSP
69 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
70 Q
71P ;Print
72 I ($Y'<(LIN-1)) D Q:EX=U W !?4,TABLE_" (continued)",!?4,LINE
73 .I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
74 .D HDR Q
75 Q
76TASK ;Queue a task
77 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
78 S ZTRTN="PRT^ONCNPC8",ZTREQ="@",ZTSAVE("ZTREQ")=""
79 S ZTDESC="Print Non-Hodgkin's Lymphoma PCE"
80 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
81 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
82 K V1,V2,ONCOLST,ZTSK Q
83HDR ;Header
84 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
85 W " ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
86 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
87 W !?19,"PCE Study of Non-Hodgkin's Lymphoma"
88 W ?62,ONDATE,!,DASHES
89 Q
Note: See TracBrowser for help on using the repository browser.