source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCP2P8.m@ 1068

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

initial load of FOIAVistA 6/30/08 version

File size: 7.0 KB
Line 
1ONCP2P8 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
2 ;;2.11;ONCOLOGY;**18,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-4),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;.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"
11 S DIC="^ONCO(165.5,",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
12 S HIST=$P($G(^ONCO(165.5,ONCONUM,2)),U,3)
13 K LINE S $P(LINE,"-",40)="-"
14I S TABLE="TABLE I - GENERAL INFORMATION"
15 D HEAD^ONCP2P0
16 W !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC D P Q:EX=U
17 W !!?4,TABLE,!?4,"-----------------------------"
18 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
19 W !," 2. ACCESSION NUMBER.................: ",ONC(165.5,IE,.05) D P Q:EX=U
20 W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,IE,.06) D P Q:EX=U
21 W !," 4. POSTAL CODE AT DIAGNOSIS.........: ",ONC(165.5,IE,9) D P Q:EX=U
22 W !," 5. DATE OF BIRTH....................: ",DOB D P Q:EX=U
23 W !," 6. RACE.............................: ",ONC(165.5,IE,.12) D P Q:EX=U
24 W !," 7. SPANISH ORIGIN...................: ",ONC(160,ONCOPA,9) D P Q:EX=U
25 W !," 8. PRIMARY PAYER AT DIAGNOSIS.......: ",ONC(165.5,IE,18) D P Q:EX=U
26 W !," 9. FAMILY HISTORY OF PROSTATE CANCER: ",ONC(165.5,IE,657)
27 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 G II
28 D P Q:EX=U
29II S TABLE="TABLE II - INITIAL DIAGNOSIS"
30 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HEAD^ONCP2P0
31 W !?4,TABLE,!?4,"----------------------------" D P Q:EX=U
32 W !,"10. CLASS OF CASE....................: ",ONC(165.5,IE,.04) D P Q:EX=U
33 W !!,"11. SYMPTOMS PRESENT AT INITIAL DIAGNOSIS:" D P Q:EX=U
34 W !," HEMATURIA.......................: ",ONC(165.5,IE,658) D P Q:EX=U
35 W !," LOWER BACK PAIN.................: ",ONC(165.5,IE,659) D P Q:EX=U
36 W !," TROUBLE URINATING...............: ",ONC(165.5,IE,660) D P Q:EX=U
37 K LINE S $P(LINE,"-",40)="-"
38 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
39 E W ! D P Q:EX=U
40IMD W !,"12. INITIAL METHODS OF DIAGNOSIS:" D P Q:EX=U
41 W !," CLINICAL DX W BONE LESION.......: ",ONC(165.5,IE,661) D P Q:EX=U
42 W !," CLINICAL DX BY RECTAL EXAM......: ",ONC(165.5,IE,662) D P Q:EX=U
43 W !," CYTOLOGY........................: ",ONC(165.5,IE,663) D P Q:EX=U
44 W !," DIGITAL TRANSRECTAL BIOPSY......: ",ONC(165.5,IE,664) D P Q:EX=U
45 W !," INCIDENTAL FINDING IN TURP FOR BENIGN DISEASE..................: ",ONC(165.5,IE,665) D P Q:EX=U
46 W !," NEEDLE BIOPSY, NOS..............: ",ONC(165.5,IE,666) D P Q:EX=U
47 W !," PERINEAL BIOPSY.................: ",ONC(165.5,IE,667) D P Q:EX=U
48 W !," PSA.............................: ",ONC(165.5,IE,668) D P Q:EX=U
49 W !," TRUS GUIDED BIOPSY..............: ",ONC(165.5,IE,669) D P Q:EX=U
50 W !," TURP, NOS.......................: ",ONC(165.5,IE,670) D P Q:EX=U
51 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
52 W ! D P Q:EX=U
53DE W !,"13. DIAGNOSTIC EVALUATION:" D P Q:EX=U
54 W !," BONE MARROW ASPIRATION..........: ",ONC(165.5,IE,671) D P Q:EX=U
55 W !," BONE SCAN.......................: ",ONC(165.5,IE,672) D P Q:EX=U
56 W !," BONE X-RAY......................: ",ONC(165.5,IE,673) D P Q:EX=U
57 W !," CHEST X-RAY.....................: ",ONC(165.5,IE,674) D P Q:EX=U
58 W !," CT SCAN OF ABDOMEN..............: ",ONC(165.5,IE,675) D P Q:EX=U
59 W !," CT SCAN OF PELVIS...............: ",ONC(165.5,IE,676) D P Q:EX=U
60 W !," IVP.............................: ",ONC(165.5,IE,677) D P Q:EX=U
61 W !," MRI.............................: ",ONC(165.5,IE,678) D P Q:EX=U
62 W !," PELVIC LYMPH NODE DISSECTION....: ",ONC(165.5,IE,679) D P Q:EX=U
63 W !," PCR.............................: ",ONC(165.5,IE,680) D P Q:EX=U
64 W !," PAP.............................: ",ONC(165.5,IE,681) D P Q:EX=U
65 W !," PSA.............................: ",ONC(165.5,IE,682) D P Q:EX=U
66 W !," ULTRASOUND OF ABDOMEN...........: ",ONC(165.5,IE,683)
67 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
68 E W ! D P Q:EX=U
69PSA W !,"14. RESULTS OF MOST RECENT PRE-"
70 W !," TREATMENT PSA TEST...............: ",ONC(165.5,IE,684) D P Q:EX=U
71 W !,"15. DATE OF INITIAL DIAGNOSIS........: ",ONC(165.5,IE,3) D P Q:EX=U
72 W !,"16. PRIMARY SITE (ICD-O-2)...........: ",TOPCOD," ",ONC(165.5,IE,20)
73 W !,"17. HISTOLOGY (ICD-O-2)..............: ",$E(HIST,1,4) D P Q:EX=U
74 W !,"18. BEHAVIOR CODE (ICD-O-2)..........: ",$E(HIST,5) D P Q:EX=U
75 W !,"19. GRADE............................: ",ONC(165.5,IE,24) D P Q:EX=U
76 W !,"20. BIOPSY PROCEDURE.................: ",ONC(165.5,IE,141)
77 W !,"21. GUIDANCE OF BIOPSY TO PRIMARY....: ",ONC(165.5,IE,142)
78 W !,"22. BIOPSY APPROACH FOR PRIMARY......: ",ONC(165.5,IE,145)
79 W !,"23. BIOPSY OF OTHER THAN PRIMARY.....: ",ONC(165.5,IE,146)
80 W !,"24. DIAGNOSTIC CONFIRMATION..........: ",ONC(165.5,IE,26)
81 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
82 E W ! D P Q:EX=U
83GS W !,"25. GLEASON'S SCORE FOR BIOPSY, LOCAL RESECTION, OR SIMPLE PROSTATECTOMY:" D P Q:EX=U
84 W !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.1) D P Q:EX=U
85 W !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.2) D P Q:EX=U
86 W !," GLEASON SCORE...................: ",ONC(165.5,IE,623) D P Q:EX=U
87 W ! D P Q:EX=U
88 W !,"26. GLEASON'S SCORE FOR RADICAL PROSTATECTOMY:" D P Q:EX=U
89 W !," PREDOMINANT (PRIMARY) PATTERN...: ",ONC(165.5,IE,623.4) D P Q:EX=U
90 W !," LESSER (SECONDARY) PATTERN......: ",ONC(165.5,IE,623.5) D P Q:EX=U
91 W !," GLEASON SCORE...................: ",ONC(165.5,IE,623.3) D P Q:EX=U
92 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCP2P0 G III
93 D P Q:EX=U
94III D ^ONCP2P8A
95KILL ;Kill Variables and Exit
96 K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS,HIST
97 K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
98 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y,OSP,IIN
99 Q
100P ;Print
101 I ($Y'<(LIN-1)) D Q:EX=U W !?4,TABLE_" (continued)",!?4,LINE
102 .I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
103 .D HEAD^ONCP2P0 Q
104 Q
105TASK ;Queue a task
106 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
107 S ZTRTN="PRT^ONCP2P8",ZTREQ="@",ZTSAVE("ZTREQ")=""
108 S ZTDESC="Print Colorectal Cancer PCE"
109 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
110 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
111 K V1,V2,ONCOLST,ZTSK Q
112HDR ;Header
113 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
114 W !," ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
115 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
116 W !," 1998 Patient Care Evaluation Study of Prostate Cancer"
117 W ?62,ONDATE,!,DASHES
118 Q
Note: See TracBrowser for help on using the repository browser.