source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCPPC9.m@ 1361

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

initial load of WorldVistAEHR

File size: 5.9 KB
RevLine 
[613]1ONCPPC9 ;Hines OIFO/GWB - PCE Studies of Prostate Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**6,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^TOPCOD^DASHES^TOPTAB^DATEDX^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 !?25,TABLE,! D P Q:EX=U
11 S PRINODE0=^ONCO(165.5,ONCONUM,0)
12 S ACCSEQ=$P(PRINODE0,U,5)_"/"_$P(PRINODE0,U,6)
13 S COCIN=$P(PRINODE0,U,4),Y=COCIN,C=$P(^DD(165.5,.04,0),U,2) D Y^DIQ
14 S COCEX=Y,IEN=ONCONUM
15 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
16 S DIC="^ONCO(160,",DR="15;22.9",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
17 S DIC="^ONCO(165.5,",DR="1;.12;1.1;9;18;19;22;24;37.1;37.2;37.3;38;50;51;54;58.1;58.2;58.3;58;70;71;74;81;82;85;86;87;88;89;600:656"
18 S DA=ONCONUM,DIQ="ONC" D EN^DIQ1
19 W !,"ACCESSION/SEQUENCE NUMBER..........: ",ACCSEQ D P Q:EX=U
20 W !,"CLASS OF CASE......................: ",COCEX D P Q:EX=U
21 W !,"ZIP CODE...........................: ",ONC(165.5,IEN,9) D P Q:EX=U
22 W !,"BIRTHDATE..........................: ",DOB D P Q:EX=U
23 W !,"RACE...............................: ",ONC(165.5,IEN,.12) D P Q:EX=U
24 W !,"PRIMARY PAYER AT DIAGNOSIS.........: ",ONC(165.5,IEN,18) D P Q:EX=U
25 W !,"DATE OF ADMISSION..................: ",ONC(165.5,IEN,1) D P Q:EX=U
26 W !,"DATE OF DISCHARGE..................: ",ONC(165.5,IEN,1.1)
27 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
28 S EOT="Y" D P Q:EX=U
29II S TABLE="TABLE II - INITIAL DIAGNOSIS"
30 I IOST'?1"C".E W ! D P Q:EX=U W ! D P Q:EX=U
31 W !?25,TABLE D P Q:EX=U
32 W !,"METHOD OF DIAGNOSIS:",! D P Q:EX=U
33 W !," CLINICAL DX WITH BONE LESION.....: ",ONC(165.5,IEN,600) D P Q:EX=U
34 W !," CLINICAL DX BY RECTAL EXAM.......: ",ONC(165.5,IEN,601) D P Q:EX=U
35 W !," CYTOLOGY.........................: ",ONC(165.5,IEN,602) D P Q:EX=U
36 W !," INCIDENTAL FINDING IN TURP.......: ",ONC(165.5,IEN,603) D P Q:EX=U
37 W !," NEEDLE ASPIRATION BIOPSY.........: ",ONC(165.5,IEN,604) D P Q:EX=U
38 W !," NEEDLE BIOPSY, NOS...............: ",ONC(165.5,IEN,605) D P Q:EX=U
39 W !," PERINEAL BIOPSY..................: ",ONC(165.5,IEN,606) D P Q:EX=U
40 W !," TRANSRECTAL BIOPSY...............: ",ONC(165.5,IEN,607) D P Q:EX=U
41 W !," TRUS GUIDED BIOPSY...............: ",ONC(165.5,IEN,608) D P Q:EX=U
42 W !," TRANSURETHRAL RESECTION, NOS.....: ",ONC(165.5,IEN,609) D P Q:EX=U
43 W !," OTHER............................: ",ONC(165.5,IEN,610) D P Q:EX=U
44 S DOID=$E(DATEDX,4,5)_"/"_$E(DATEDX,6,7)_"/"_(1700+$E(DATEDX,1,3))
45 W !!,"DATE OF INITIAL DIAGNOSIS..........: ",DOID
46 I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G DI
47 D P Q:EX=U
48DI W !!,"DIAGNOSTIC INFORMATION:" D P Q:EX=U
49 W !," BONE MARROW ASPIRATION...........: ",ONC(165.5,IEN,611) D P Q:EX=U
50 W !," BONE SCAN........................: ",ONC(165.5,IEN,612) D P Q:EX=U
51 W !," BONE X-RAY.......................: ",ONC(165.5,IEN,613) D P Q:EX=U
52 W !," CHEST X-RAY......................: ",ONC(165.5,IEN,614) D P Q:EX=U
53 W !," CT SCAN OF PRIMARY SITE..........: ",ONC(165.5,IEN,615) D P Q:EX=U
54 W !," IVP..............................: ",ONC(165.5,IEN,616) D P Q:EX=U
55 W !," LIVER SCAN.......................: ",ONC(165.5,IEN,617) D P Q:EX=U
56 W !," MRI..............................: ",ONC(165.5,IEN,618) D P Q:EX=U
57 W !," PELVIC LYMPH NODE DISSECTION.....: ",ONC(165.5,IEN,619) D P Q:EX=U
58 W !," PAP..............................: ",ONC(165.5,IEN,620) D P Q:EX=U
59 W !," PSA..............................: ",ONC(165.5,IEN,621) D P Q:EX=U
60 W !," OTHER............................: ",ONC(165.5,IEN,622) D P Q:EX=U
61 W ! D P Q:EX=U
62 W !,"HISTOLOGY (ICD-O)..................: ",ONC(165.5,IEN,22) D P Q:EX=U
63 W !,"DIFFERENTIATION/GRADE..............: ",ONC(165.5,IEN,24) D P Q:EX=U
64 W !,"GLEASON'S SCORE....................: ",ONC(165.5,IEN,623)
65 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G III
66 S EOT="Y" D P Q:EX=U
67III S TABLE="TABLE III - STAGE OF DISEASE"
68 I IOST'?1"C".E W ! D:($Y'<(LIN-1)) HDR W ! D:($Y'<(LIN-1)) HDR
69 W !?25,TABLE,! D P Q:EX=U
70AJCCCS W !,"AJCC CLINICAL STAGE (cTNM):",! D P Q:EX=U
71 W !," T-CODE........................: ",ONC(165.5,IEN,37.1) D P Q:EX=U
72 W !," N-CODE........................: ",ONC(165.5,IEN,37.2) D P Q:EX=U
73 W !," M-CODE........................: ",ONC(165.5,IEN,37.3) D P Q:EX=U
74 W !," AJCC STAGE....................: ",ONC(165.5,IEN,38) D P Q:EX=U
75AJCCPS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",! D P Q:EX=U
76 W !," T-CODE........................: ",ONC(165.5,IEN,85) D P Q:EX=U
77 W !," N-CODE........................: ",ONC(165.5,IEN,86) D P Q:EX=U
78 W !," M-CODE........................: ",ONC(165.5,IEN,87) D P Q:EX=U
79 W !," AJCC STAGE....................: ",ONC(165.5,IEN,88)
80 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G SB
81 D P Q:EX=U
82SB W !!,"STAGED BY:",! D P Q:EX=U
83 W !,"CLINICAL STAGE..................: ",ONC(165.5,IEN,19) D P Q:EX=U
84 W !,"PATHOLOGIC STAGE.................: ",ONC(165.5,IEN,89)
85 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G IV
86 S EOT="Y" D P Q:EX=U
87IV D ^ONCPPC9A
88 G KILL
89KILL ;Kill Variables and Exit
90 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,FILN,ONCOBL,EX,TXT,X,Y,EOT
91 Q
92P ;Display Data
93 I ($Y'<(LIN-1)) D Q:EX=U W:EOT="N" !?15,TABLE_" (continued)",!
94 .I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
95 .D HDR Q
96 S EOT="N" Q
97TASK ;Queue a task
98 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
99 S ZTRTN="PRT^ONCPPC9",ZTREQ="@",ZTSAVE("ZTREQ")=""
100 S ZTDESC="Print Prostate PCE Data."
101 F V3=1:1 S V1=$P(ONCOLST,"^",V3) Q:V1="" S ZTSAVE(V1)=""
102 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
103 K V1,V3,ONCOLST,ZTSK Q
104HDR ;Header
105 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
106 W " ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
107 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
108 W !?20,"PCE Studies of Cancer of the Prostate"
109 W ?59,ONDATE,!,DASHES
110 Q
Note: See TracBrowser for help on using the repository browser.