source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBPC8.m@ 862

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

initial load of WorldVistAEHR

File size: 8.0 KB
Line 
1ONCBPC8 ;Hines OIFO/GWB -PCE Study of Cancers of the Urinary Bladder ;05/30/00
2 ;;2.11;ONCOLOGY;**6,16,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)
8 D NOW^%DTC S ONDATE=%,Y=ONDATE X ^DD("DD") S ONDATE=Y
9I S TABLE="TABLE I - GENERAL INFORMATION"
10 D HDR W !?15,TABLE,!
11 S PRINODE0=^ONCO(165.5,ONCONUM,0)
12 S ACCSEQ=$P(PRINODE0,U,5)_"/"_$P(PRINODE0,U,6)
13 S IEN=ONCONUM
14 K DIQ S DIC="^ONCO(160,",DR="3;9;15",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
15 S DIC="^ONCO(165.5,"
16 S DR=".04;.1;.12;3;9;18;19;20;22;24;29;32;33;34;34.1;34.2;37.1;37.2;37.3;38;50;51;51.2;53;53.2;55.2;58.1;58.2;58.3;70;71.1;71.2;71.3;81;82;85;86;87;88;89;300:387"
17 S DA=ONCONUM,DIQ="ONC" D EN^DIQ1
18 W !,"ACCESSION/SEQUENCE NUMBER...........: ",ACCSEQ D P Q:EX=U
19 W !,"CLASS OF CASE.......................: ",ONC(165.5,IEN,.04) D P Q:EX=U
20 W !,"PATIENT REFERRED FOR TREATMENT......: ",ONC(165.5,IEN,300) D P Q:EX=U
21 W !,"ZIP CODE AT DIAGNOSIS...............: ",ONC(165.5,IEN,9) D P Q:EX=U
22 W !,"BIRTHDATE...........................: ",ONC(160,ONCOPA,3) D P Q:EX=U
23 W !,"RACE................................: ",ONC(165.5,IEN,.12) D P Q:EX=U
24 W !,"SPANISH ORIGIN......................: ",ONC(160,ONCOPA,9) D P Q:EX=U
25 W !,"SEX.................................: ",ONC(165.5,IEN,.1) D P Q:EX=U
26 W !,"PRIMARY PAYER AT DIAGNOSIS..........: ",ONC(165.5,IEN,18) D P Q:EX=U
27 W !,"LENGTH OF STAY......................: ",ONC(165.5,IEN,301)
28 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G PHOOC
29 D P Q:EX=U
30PHOOC W !!,"PATIENT HISTORY OF OTHER CANCER:",?41,"FAMILY HISTORY OF CANCER:",! D P Q:EX=U
31 W !," CERVIX.......: ",ONC(165.5,IEN,302),?41," BLADDER......: ",ONC(165.5,IEN,309) D P Q:EX=U
32 W !," COLON........: ",ONC(165.5,IEN,303),?41," COLON........: ",ONC(165.5,IEN,310) D P Q:EX=U
33 W !," BLADDER......: ",ONC(165.5,IEN,304),?41," LUNG.........: ",ONC(165.5,IEN,311) D P Q:EX=U
34 W !," HEAD AND NECK: ",ONC(165.5,IEN,305),?41," PROSTATE.....: ",ONC(165.5,IEN,312) D P Q:EX=U
35 W !," KIDNEY.......: ",ONC(165.5,IEN,306),?41," OTHER........: ",ONC(165.5,IEN,313) D P Q:EX=U
36 W !," PROSTATE.....: ",ONC(165.5,IEN,307) D P Q:EX=U
37 W !," OTHER........: ",ONC(165.5,IEN,308) D P Q:EX=U
38 W !!,"SMOKING HISTORY.....................: ",ONC(165.5,IEN,314) D P Q:EX=U
39 W !,"DURATION OF SMOKING HISTORY.........: ",ONC(165.5,IEN,315) D P Q:EX=U
40 W !,"DURATION OF SMOKE FREE HISTORY......: ",ONC(165.5,IEN,315)
41 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
42 D P Q:EX=U
43II S TABLE="TABLE II - DIAGNOSTIC INFORMATION"
44 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR
45 W !?15,TABLE,! D P Q:EX=U
46 W !,"CLINICAL DETECTION:",! D P Q:EX=U
47 W !," GROSS HEMATURIA...................: ",ONC(165.5,IEN,317) D P Q:EX=U
48 W !," MICROSCOPIC HEMATURIA.............: ",ONC(165.5,IEN,318) D P Q:EX=U
49 W !," URINARY FREQUENCY.................: ",ONC(165.5,IEN,319) D P Q:EX=U
50 W !," BLADDER IRRITIBILITY..............: ",ONC(165.5,IEN,320) D P Q:EX=U
51 W !," DYSURIA...........................: ",ONC(165.5,IEN,321) D P Q:EX=U
52 W !," OTHER.............................: ",ONC(165.5,IEN,322) D P Q:EX=U
53 W !!,"ONSET OF SYMPTOMS...................: ",ONC(165.5,IEN,323)
54 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G DOS
55 D P Q:EX=U
56DOS W !!,"DURATION OF SYMPTOMS:",! D P Q:EX=U
57 W !," GROSS HEMTURIA....................: ",ONC(165.5,IEN,324) D P Q:EX=U
58 W !," DYSURIA...........................: ",ONC(165.5,IEN,325) D P Q:EX=U
59 W !!,"DIAGNOSTIC PROCEDURES:" D P Q:EX=U
60 W !!," BIMANUAL EXAMINATION OF BLADDER...: ",ONC(165.5,IEN,326) D P Q:EX=U
61 W !," CYSTOSCOPY WITH BIOPSY............: ",ONC(165.5,IEN,327) D P Q:EX=U
62 W !," CYSTOSCOPY WITHOUT BIOPSY.........: ",ONC(165.5,IEN,328) D P Q:EX=U
63 W !," FLOW CYTOMETRY....................: ",ONC(165.5,IEN,329) D P Q:EX=U
64 W !," INTRAVENOUS PYELOGRAM.............: ",ONC(165.5,IEN,330) D P Q:EX=U
65 W !," URINE CYTOLOGY....................: ",ONC(165.5,IEN,331) D P Q:EX=U
66 W !," URINALYSIS........................: ",ONC(165.5,IEN,332) D P Q:EX=U
67 W !," OTHER.............................: ",ONC(165.5,IEN,333)
68 I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G DOID
69 D P Q:EX=U
70DOID W !!,"DATE OF INITIAL DIAGNOSIS...........: ",ONC(165.5,IEN,3) D P Q:EX=U
71 W !,"SPECIALTY MAKING DIAGNOSIS..........: ",ONC(165.5,IEN,334) D P Q:EX=U
72 W !,"PRIMARY SITE (ICD-O-2)..............: ",TOPCOD," ",ONC(165.5,IEN,20)
73 W !,"HISTOLOGY (ICD-O-2).................: ",ONC(165.5,IEN,22) D P Q:EX=U
74 W !,"GRADE...............................: ",ONC(165.5,IEN,24)
75 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G III
76 D P Q:EX=U
77III S TABLE="TABLE III - EXTENT OF DISEASE AND AJCC STAGE"
78 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR
79 W !?15,TABLE,! D P Q:EX=U
80 W !,"STAGING PROCEDURES:",! D P Q:EX=U
81 W !," ABDOMINAL ULTRASOUND: ",ONC(165.5,IEN,335),?36,"CT OTHER............: ",ONC(165.5,IEN,340) D P Q:EX=U
82 W !," BONE IMAGING........: ",ONC(165.5,IEN,336),?36,"MRI PELVIS/ABDOMEN..: ",ONC(165.5,IEN,341) D P Q:EX=U
83 W !," CHEST X-RAY.........: ",ONC(165.5,IEN,337),?36,"MRI OTHER...........: ",ONC(165.5,IEN,342) D P Q:EX=U
84 W !," CT CHEST/LUNG.......: ",ONC(165.5,IEN,338),?36,"OTHER...............: ",ONC(165.5,IEN,343) D P Q:EX=U
85 W !," CT ABDOMEN/PELVIS...: ",ONC(165.5,IEN,339) D P Q:EX=U
86 W !!,"PRESENCE OF HYDRONEPHROSIS..........: ",ONC(165.5,IEN,344) D P Q:EX=U
87 W !,"TUMOR SIZE (mm).....................: ",ONC(165.5,IEN,29) D P Q:EX=U
88 W !,"PRESENCE OF MULTIPLE TUMORS.........: ",ONC(165.5,IEN,345) D P Q:EX=U
89 W !,"REGIONAL NODES EXAMINED.............: ",ONC(165.5,IEN,33) D P Q:EX=U
90 W !,"REGIONAL NODES POSITIVE.............: ",ONC(165.5,IEN,32)
91 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)"
92SODM W !!,"SITE(S) OF DISTANT METASTASIS:",! D P Q:EX=U
93 W !," SITE OF DISTANT METASTASIS #1.....: ",ONC(165.5,IEN,34) D P Q:EX=U
94 W !," SITE OF DISTANT METASTASIS #2.....: ",ONC(165.5,IEN,34.1) D P Q:EX=U
95 W !," SITE OF DISTANT METASTASIS #3.....: ",ONC(165.5,IEN,34.2) D P Q:EX=U
96 W !!,"AJCC CLINICAL STAGE (cTNM):",! D P Q:EX=U
97 W !," T-CODE............................: ",ONC(165.5,IEN,37.1) D P Q:EX=U
98 W !," N-CODE............................: ",ONC(165.5,IEN,37.2) D P Q:EX=U
99 W !," M-CODE............................: ",ONC(165.5,IEN,37.3) D P Q:EX=U
100 W !," AJCC STAGE........................: ",ONC(165.5,IEN,38)
101 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)"
102 W !!,"AJCC PATHOLOGIC STAGE (pTNM):",! D P Q:EX=U
103 W !," T-CODE............................: ",ONC(165.5,IEN,85) D P Q:EX=U
104 W !," N-CODE............................: ",ONC(165.5,IEN,86) D P Q:EX=U
105 W !," M-CODE............................: ",ONC(165.5,IEN,87) D P Q:EX=U
106 W !," AJCC STAGE........................: ",ONC(165.5,IEN,88) D P Q:EX=U
107 W !!,"STAGED BY:" D P Q:EX=U
108 W !!," CLINICAL STAGE....................: ",ONC(165.5,IEN,19) D P Q:EX=U
109 W !," PATHOLOGIC STAGE..................: ",ONC(165.5,IEN,89)
110 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G IV
111 D P Q:EX=U
112IV D ^ONCBPC8A
113KILL ;Kill Variables and Exit
114 K ACCSEQ,CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS
115 K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
116 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
117 Q
118P ;Print
119 I ($Y'<(LIN-1)) D Q:EX=U W !?15,TABLE_" (continued)",!
120 .I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
121 .D HDR Q
122 Q
123TASK ;Queue a task
124 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
125 S ZTRTN="PRT^ONCBPC8",ZTREQ="@",ZTSAVE("ZTREQ")=""
126 S ZTDESC="Print Bladder PCE"
127 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
128 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
129 K V1,V2,ONCOLST,ZTSK Q
130HDR ;Header
131 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
132 W " ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
133 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
134 W !," PCE Study of Cancers of the Urinary Bladder"
135 W ?59,ONDATE,!,DASHES
136 Q
Note: See TracBrowser for help on using the repository browser.