source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCTPC8.m@ 1800

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

initial load of WorldVistAEHR

File size: 7.7 KB
Line 
1ONCTPC8 ;Hines OIFO/GWB -PCE Study of Thyroid Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**6,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),IEN=ONCONUM
8 D NOW^%DTC S ONDATE=%,Y=ONDATE X ^DD("DD") S ONDATE=Y
9 K DIQ S DIC="^ONCO(160,",DR="9;15;22.9",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
10 S DR=".04;.05;.06;.1;.12;3;9;18;20;22;24;26;29;32;33;34;34.1;34.2;37.1;37.2;37.3;38;19;50;51;51.2;53.2;54.2;58.1;58.2;58.3;59;70;71;71.1;71.2;71.3;71.4;81;82;85;86;87;88;89;308;400:446"
11 S DIC="^ONCO(165.5,",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
12I S TABLE="TABLE I - GENERAL INFORMATION"
13 D HDR W !?25,TABLE,!
14 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
15 W !,"ACCESSION NUMBER..................: ",ONC(165.5,IEN,.05) D P Q:EX=U
16 W !,"SEQUENCE NUMBER...................: ",ONC(165.5,IEN,.06) D P Q:EX=U
17 W !,"POSTAL CODE AT DIAGNOSIS..........: ",ONC(165.5,IEN,9) D P Q:EX=U
18 W !,"DATE OF BIRTH.....................: ",DOB D P Q:EX=U
19 W !,"RACE..............................: ",ONC(165.5,IEN,.12) D P Q:EX=U
20 W !,"SPANISH ORIGIN....................: ",ONC(160,ONCOPA,9) D P Q:EX=U
21 W !,"SEX...............................: ",ONC(165.5,IEN,.1) D P Q:EX=U
22 W !,"PRIMARY PAYER AT DIAGNOSIS........: ",ONC(165.5,IEN,18) D P Q:EX=U
23 W !,"FAMILY HISTORY OF THYROID CANCER..: ",ONC(165.5,IEN,400)
24 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G PHNTC
25 D P Q:EX=U
26PHNTC W !!,"PERSONAL HISTORY OF NON-THYROID CANCER:" D P Q:EX=U
27 W ! D P Q:EX=U
28 W !," LYMPHOMA........................: ",ONC(165.5,IEN,401) D P Q:EX=U
29 W !," CHILDHOOD MALIGNANCY............: ",ONC(165.5,IEN,402) D P Q:EX=U
30 W !," OTHER...........................: ",ONC(165.5,IEN,308) D P Q:EX=U
31 W ! D P Q:EX=U
32 W !,"PRIOR EXPOSURE TO RADIATION.......: ",ONC(165.5,IEN,403) D P Q:EX=U
33 W !,"PERSONAL HISTORY OF GOITER........: ",ONC(165.5,IEN,404) D P Q:EX=U
34 W !,"FAMILY HISTORY OF THYROID DISEASE.: ",ONC(165.5,IEN,405) D P Q:EX=U
35 W !,"PERSONAL HISTORY OF GRAVES DISEASE: ",ONC(165.5,IEN,406) D P Q:EX=U
36 W !,"PERSONAL HISTORY OF THYROIDITIS...: ",ONC(165.5,IEN,406)
37 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
38 D P Q:EX=U
39II S TABLE="TABLE II - INITIAL DIAGNOSIS/CANCER IDENTIFICATION"
40 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR
41 W !?15,TABLE,! D P Q:EX=U
42 W !,"CLASS OF CASE.....................: ",ONC(165.5,IEN,.04) D P Q:EX=U
43 W !!,"SYMPTOMS/SIGNS PRESENT:",! D P Q:EX=U
44 W !," DYSPHAGIA.......................: ",ONC(165.5,IEN,408) D P Q:EX=U
45 W !," HOARSENESS OR VOICE CHANGE......: ",ONC(165.5,IEN,409) D P Q:EX=U
46 W !," NECK NODAL MASS.................: ",ONC(165.5,IEN,410) D P Q:EX=U
47 W !," PAIN, BONE......................: ",ONC(165.5,IEN,411) D P Q:EX=U
48 W !," PAIN, NECK......................: ",ONC(165.5,IEN,412) D P Q:EX=U
49 W !," PATHOLOGIC FRACTURE.............: ",ONC(165.5,IEN,413) D P Q:EX=U
50 W !," STRIDOR/DIFFICULTY BREATHING....: ",ONC(165.5,IEN,414) D P Q:EX=U
51 W !," THYROID MASS....................: ",ONC(165.5,IEN,415) D P Q:EX=U
52 W !," WEIGHT LOSS.....................: ",ONC(165.5,IEN,416) D P Q:EX=U
53 W !," OTHER...........................: ",ONC(165.5,IEN,417)
54 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G DSW
55 D P Q:EX=U
56DSW W !!,"DIAGNOISTIC/SURGICAL WORKUP:",! D P Q:EX=U
57 W !," BONE SCAN.......................: ",ONC(165.5,IEN,418) D P Q:EX=U
58 W !," CHEST X-RAY.....................: ",ONC(165.5,IEN,419) D P Q:EX=U
59 W !," CT SCAN OF NECK.................: ",ONC(165.5,IEN,420) D P Q:EX=U
60 W !," CT SCAN OF CHEST................: ",ONC(165.5,IEN,421) D P Q:EX=U
61 W !," INCISIONAL BIOPSY...............: ",ONC(165.5,IEN,422) D P Q:EX=U
62 W !," LARYNGOSCOPY....................: ",ONC(165.5,IEN,423) D P Q:EX=U
63 W !," NECK X-RAY (AP & LATERAL........: ",ONC(165.5,IEN,424) D P Q:EX=U
64 W !," NEEDLE ASPIRATION OF NECK NODE..: ",ONC(165.5,IEN,425) D P Q:EX=U
65 W !," NEEDLE ASPIRATION OF THYROID....: ",ONC(165.5,IEN,426) D P Q:EX=U
66 W !," MRI OF NECK.....................: ",ONC(165.5,IEN,427) D P Q:EX=U
67 W !," THYROID SCAN....................: ",ONC(165.5,IEN,428) D P Q:EX=U
68 W !," ULTRASOUND OF THYROID...........: ",ONC(165.5,IEN,429) D P Q:EX=U
69 W !," OTHER...........................: ",ONC(165.5,IEN,430)
70 I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G DOID
71 D P Q:EX=U
72DOID W !!,"DATE OF INITIAL DIAGNOSIS.........: ",ONC(165.5,IEN,3) D P Q:EX=U
73 W !,"PRIMARY SITE (ICD-O-2)............: ",TOPCOD," ",ONC(165.5,IEN,20)
74 W !,"HISTOLOGY/BEHAVIOR CODE (ICD-O-2).: ",ONC(165.5,IEN,22) D P Q:EX=U
75 W !,"GRADE.............................: ",ONC(165.5,IEN,24) D P Q:EX=U
76 W !,"BLOOD VESSEL INVASION.............: ",ONC(165.5,IEN,431) D P Q:EX=U
77 W !,"EXTRA-THYROIDAL EXTENSION.........: ",ONC(165.5,IEN,432) D P Q:EX=U
78 W !,"DIAGNOSTIC CONFIRMATION...........: ",ONC(165.5,IEN,26)
79 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G III
80 D P Q:EX=U
81III S TABLE="TABLE III - EXTENT OF DISEASE AND AJCC STAGE"
82 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HDR
83 W !?15,TABLE,! D P Q:EX=U
84 W !,"SIZE OF TUMOR (mm)................: ",ONC(165.5,IEN,29) D P Q:EX=U
85 W !,"MULTIFOCAL........................: ",ONC(165.5,IEN,433) D P Q:EX=U
86 W !,"REGIONAL NODES EXAMINED...........: ",ONC(165.5,IEN,33) D P Q:EX=U
87 W !,"REGIONAL NODES POSITIVE...........: ",ONC(165.5,IEN,32) D P Q:EX=U
88 W !,"LOCATION OF POSITIVE NODES........: ",ONC(165.5,IEN,434) D P Q:EX=U
89 W !!,"SITE(S) OF DISTANT METASTASIS:",! D P Q:EX=U
90 W !," SITE OF DISTANT METASTASIS #1...: ",ONC(165.5,IEN,34) D P Q:EX=U
91 W !," SITE OF DISTANT METASTASIS #2...: ",ONC(165.5,IEN,34.1) D P Q:EX=U
92 W !," SITE OF DISTANT METASTASIS #3...: ",ONC(165.5,IEN,34.2)
93 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G AJCCCS
94 D P Q:EX=U
95AJCCCS W !!,"AJCC CLINICAL STAGE (cTNM):",! D P Q:EX=U
96 W !," T-CODE........................: ",ONC(165.5,IEN,37.1) D P Q:EX=U
97 W !," N-CODE........................: ",ONC(165.5,IEN,37.2) D P Q:EX=U
98 W !," M-CODE........................: ",ONC(165.5,IEN,37.3) D P Q:EX=U
99 W !," AJCC STAGE....................: ",ONC(165.5,IEN,38) D P Q:EX=U
100AJCCPS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",! D P Q:EX=U
101 W !," T-CODE........................: ",ONC(165.5,IEN,85) D P Q:EX=U
102 W !," N-CODE........................: ",ONC(165.5,IEN,86) D P Q:EX=U
103 W !," M-CODE........................: ",ONC(165.5,IEN,87) D P Q:EX=U
104 W !," AJCC STAGE....................: ",ONC(165.5,IEN,88)
105 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G SB
106 D P Q:EX=U
107SB 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 ^ONCTPC8A
113KILL ;Kill Variables and Exit
114 K 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^ONCTPC8",ZTREQ="@",ZTSAVE("ZTREQ")=""
126 S ZTDESC="Print Thyroid 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 !?20," PCE Study of Thyroid Cancer"
135 W ?59,ONDATE,!,DASHES
136 Q
Note: See TracBrowser for help on using the repository browser.