source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCCPC9.m@ 1211

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

initial load of WorldVistAEHR

File size: 7.7 KB
RevLine 
[613]1ONCCPC9 ;Hines OIFO/GWB - PCE Study of Colorectal Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**11,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),IE=ONCONUM
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;1;1.1;3;9;18;20;22;24;26;29;32;33;37.1;37.2;37.3;38;19;50;51;53;53.2;58.1;58.2;58.3;59;70;71;81;82;85;86;87;88;89;302;307;308;361;377;421;430;437;441;563;700:799"
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,IE,.05) D P Q:EX=U
18 W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,IE,.06) D P Q:EX=U
19 W !," 4. POSTAL CODE AT DIAGNOSIS.........: ",ONC(165.5,IE,9) D P Q:EX=U
20 W !," 5. DATE OF BIRTH....................: ",DOB D P Q:EX=U
21 W !," 6. RACE.............................: ",ONC(165.5,IE,.12) D P Q:EX=U
22 W !," 7. SPANISH ORIGIN...................: ",ONC(160,ONCOPA,9) D P Q:EX=U
23 W !," 8. SEX..............................: ",ONC(165.5,IE,.1) D P Q:EX=U
24 W !," 9. PRIMARY PAYER AT DIAGNOSIS.......: ",ONC(165.5,IE,18) D P Q:EX=U
25 W !,"10. FAMILY HISTORY OF COLORECTAL CA..: ",ONC(165.5,IE,700)
26 W !,"11. PERSONAL HISTORY OF COLORECTAL CA: ",ONC(165.5,IE,701)
27 W !,"12. MULTI 1997 COLON/RECTUM PRIMARIES: ",ONC(165.5,IE,702)
28 K LINE S $P(LINE,"-",41)="-"
29 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 PHNCC
30 W ! D P Q:EX=U
31PHNCC W !,"13. PERSONAL HISTORY OF NON-COLORECTAL CANCER:" D P Q:EX=U
32 W !," BREAST...........: ",ONC(165.5,IE,703),?39,"PROSTATE.........: ",ONC(165.5,IE,307) D P Q:EX=U
33 W !," CERVIX...........: ",ONC(165.5,IE,302),?39,"STOMACH..........: ",ONC(165.5,IE,707) D P Q:EX=U
34 W !," LUNG.............: ",ONC(165.5,IE,704),?39,"THYROID..........: ",ONC(165.5,IE,708) D P Q:EX=U
35 W !," OVARY............: ",ONC(165.5,IE,705),?39,"UTERUS...........: ",ONC(165.5,IE,709) D P Q:EX=U
36 W !," OVARIAN CARCINOMA: ",ONC(165.5,IE,706),?39,"OTHER............: ",ONC(165.5,IE,308) D P Q:EX=U
37 W ! D P Q:EX=U
38 W !,"14. PREVIOUS TAH/BSO.................: ",ONC(165.5,IE,710) D P Q:EX=U
39 W !!,"15. OTHER PRIOR CONDITIONS:" D P Q:EX=U
40 W !," FAP..............: ",ONC(165.5,IE,711),?39,"PRIOR POLYPS.....: ",ONC(165.5,IE,714) D P Q:EX=U
41 W !," HNPCC............: ",ONC(165.5,IE,712),?39,"POLYPS...........: ",ONC(165.5,IE,715) D P Q:EX=U
42 W !," IBD..............: ",ONC(165.5,IE,713)
43 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
44 D P Q:EX=U
45II S TABLE="TABLE II - INITIAL DIAGNOSIS"
46 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR
47 W !?4,TABLE,!?4,"----------------------------" D P Q:EX=U
48 W !,"16. CLASS OF CASE....................: ",ONC(165.5,IE,.04) D P Q:EX=U
49 W !!,"17. DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months):" D P Q:EX=U
50 W !," ANEMIA.........................: ",ONC(165.5,IE,716) D P Q:EX=U
51 W !," BOWEL OBSTRUCTION..............: ",ONC(165.5,IE,717) D P Q:EX=U
52 W !," CHANGE IN BOWEL HABIT..........: ",ONC(165.5,IE,718) D P Q:EX=U
53 W !," EMER PRESENTATION-OBSTRUCTION..: ",ONC(165.5,IE,719) D P Q:EX=U
54 W !," JAUNDICE.......................: ",ONC(165.5,IE,720) D P Q:EX=U
55 W !," MALAISE........................: ",ONC(165.5,IE,721) D P Q:EX=U
56 W !," OCCULT BLOOD ONLY IN STOOL.....: ",ONC(165.5,IE,722) D P Q:EX=U
57 W !," PAIN (ABDOMINAL)...............: ",ONC(165.5,IE,723) D P Q:EX=U
58 W !," PAIN (PELVIC)..................: ",ONC(165.5,IE,724) D P Q:EX=U
59 W !," RECTAL BLEEDING (MELENA).......: ",ONC(165.5,IE,725) D P Q:EX=U
60 W !," OTHER..........................: ",ONC(165.5,IE,726)
61 K LINE S $P(LINE,"-",40)="-"
62 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 IMD
63 W ! D P Q:EX=U
64IMD W !,"18. INITIAL METHODS OF DIAGNOSIS:" D P Q:EX=U
65 W !," ENDOSCOPIC.....................: ",ONC(165.5,IE,727) D P Q:EX=U
66 W !," RADIOGRAPHIC...................: ",ONC(165.5,IE,728) D P Q:EX=U
67 W !," SCREENING DIGITAL RECTAL EXAM..: ",ONC(165.5,IE,729) D P Q:EX=U
68 W !," SCREENING PHYSICAL EXAM........: ",ONC(165.5,IE,730) D P Q:EX=U
69 W !," OTHER..........................: ",ONC(165.5,IE,731) D P Q:EX=U
70 W !!,"19. REASON LEADING TO EVENTUAL DX....: ",ONC(165.5,IE,732) D P Q:EX=U
71 W ! D P Q:EX=U
72 W !,"20. DIAGNOSTIC EVALUATION:" D P Q:EX=U
73 W !," BARIUM ENEMA, DOUBLE CONTRAST..: ",ONC(165.5,IE,733) D P Q:EX=U
74 W !," BARIUM ENEMA, SINGLE CONTRAST..: ",ONC(165.5,IE,734) D P Q:EX=U
75 W !," BARIUM ENEMA, NOS..............: ",ONC(165.5,IE,735) D P Q:EX=U
76 W !," BIOPSY OF PRIMARY SITE.........: ",ONC(165.5,IE,736) D P Q:EX=U
77 W !," BIOPSY OF METASTATIC SITE......: ",ONC(165.5,IE,737) D P Q:EX=U
78 W !," CT SCAN OF CHEST...............: ",ONC(165.5,IE,421) D P Q:EX=U
79 W !," CT SCAN OF LIVER...............: ",ONC(165.5,IE,738) D P Q:EX=U
80 W !," CT SCAN OF PRIMARY SITE........: ",ONC(165.5,IE,739) D P Q:EX=U
81 W !," CEA (PREOPERATIVE).............: ",ONC(165.5,IE,740) D P Q:EX=U
82 W !," CHEST ROENTGENOGRAM............: ",ONC(165.5,IE,741) D P Q:EX=U
83 W !," COLONOSCOPY....................: ",ONC(165.5,IE,742) D P Q:EX=U
84 W !," DIGITAL RECTAL EXAM............: ",ONC(165.5,IE,743) D P Q:EX=U
85 W !," FLEXIBLE SIGMOIDOSCOPY.........: ",ONC(165.5,IE,744) D P Q:EX=U
86 W !," INTRAVENOUS PYELOGRAM..........: ",ONC(165.5,IE,745) D P Q:EX=U
87 W !," SERUM-LIVER FUNCTION TEST......: ",ONC(165.5,IE,746) D P Q:EX=U
88 W !," MRI............................: ",ONC(165.5,IE,747) D P Q:EX=U
89 W !," PROCTOSCOPY (RIGID)............: ",ONC(165.5,IE,748) D P Q:EX=U
90 W !," STOOL GUAIAC (OCCULT BLOOD)....: ",ONC(165.5,IE,749) D P Q:EX=U
91 W !," ULTRASOUND, LIVER, ABDOMEN.....: ",ONC(165.5,IE,750) D P Q:EX=U
92 W !," ULTRASOUND, ENDORECTAL.........: ",ONC(165.5,IE,751) D P Q:EX=U
93 W !," OTHER..........................: ",ONC(165.5,IE,430)
94 W ! D P Q:EX=U
95 W !,"21. LEVEL OF TUMOR BY ENDOSCOPIC EXAM: ",ONC(165.5,IE,752) D P Q:EX=U
96 W !,"22. LEVEL OF RECTAL TUMOR............: ",ONC(165.5,IE,753) D P Q:EX=U
97 W !,"23. DATE OF INITIAL DIAGNOSIS........: ",ONC(165.5,IE,3) D P Q:EX=U
98 W !,"24. PRIMARY SITE.....................: ",TOPCOD," ",ONC(165.5,IE,20)
99 W !,"25. HISTOLOGY/26. BEHAVIOR CODE......: ",ONC(165.5,IE,22) D P Q:EX=U
100 W !,"27. GRADE............................: ",ONC(165.5,IE,24) D P Q:EX=U
101 W !,"28. DIAGNOSTIC CONFIRMATION..........: ",ONC(165.5,IE,26)
102 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G III
103 D P Q:EX=U
104III D ^ONCCPC9A
105KILL ;
106 K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS
107 K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
108 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y,OSP,IIN
109 Q
110P ;Print
111 I ($Y'<(LIN-1)) D Q:EX=U W !?4,TABLE_" (continued)",!?4,LINE
112 .I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
113 .D HDR Q
114 Q
115TASK ;Queue a task
116 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
117 S ZTRTN="PRT^ONCCPC9",ZTREQ="@",ZTSAVE("ZTREQ")=""
118 S ZTDESC="Print Colorectal Cancer PCE"
119 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
120 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
121 K V1,V2,ONCOLST,ZTSK Q
122HDR ;
123 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
124 W " ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
125 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
126 W !?20," PCE Study of Colorectal Cancer"
127 W ?62,ONDATE,!,DASHES
128 Q
Note: See TracBrowser for help on using the repository browser.