source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCSPC8.m@ 1240

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

initial load of WorldVistAEHR

File size: 7.6 KB
RevLine 
[613]1ONCSPC8 ;Hines OIFO/GWB -PCE Study of Soft Tissue Sarcoma ;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),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",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;51.3;53;53.2;54.2;58.1;58.2;58.3;59;70;71;71.1;71.2;71.3;71.4;81;82;83;85;86;87;88;89;308;329;361;362;371;375;433;441;500:567"
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 HIST OF SOFT TISSUE SARCOMA: ",ONC(165.5,IEN,500) D P Q:EX=U
24 W !,"PERSONAL HISTORY OF ANY CANCER....: ",ONC(165.5,IEN,501)
25 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G II
26 D P Q:EX=U
27II S TABLE="TABLE II - INITIAL DIAGNOSIS"
28 I IOST'?1"C".E W ! D P Q:EX=U W ! D P Q:EX=U
29 W !?20,TABLE,! D P Q:EX=U
30 W !,"CLASS OF CASE.....................: ",ONC(165.5,IEN,.04) D P Q:EX=U
31 W !,"DIAGNOSTIC WORKUP:" D P Q:EX=U
32 W !!," ANGIOGRAM OF PRIMARY............: ",ONC(165.5,IEN,502) D P Q:EX=U
33 W !," BONE MARROW ASPIRATE/BIOPSY.....: ",ONC(165.5,IEN,503) D P Q:EX=U
34 W !," BONE SCAN.......................: ",ONC(165.5,IEN,504) D P Q:EX=U
35 W !," CHEST X-RAY.....................: ",ONC(165.5,IEN,505) D P Q:EX=U
36 W !," CT SCAN OF CHEST................: ",ONC(165.5,IEN,506) D P Q:EX=U
37 W !," CT SCAN OF PRIMARY..............: ",ONC(165.5,IEN,507) D P Q:EX=U
38 W !," LIVER FUNCTION STUDIES..........: ",ONC(165.5,IEN,508) D P Q:EX=U
39 W !," LYMPHANGIOGRAM..................: ",ONC(165.5,IEN,509) D P Q:EX=U
40 W !," MRI OF PRIMARY..................: ",ONC(165.5,IEN,510) D P Q:EX=U
41 W !," MRI OF OTHER....................: ",ONC(165.5,IEN,511) D P Q:EX=U
42 W !," SKELETAL X-RAY..................: ",ONC(165.5,IEN,512) D P Q:EX=U
43 W !," SONOGRAM........................: ",ONC(165.5,IEN,513)
44 I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G HW
45 D P Q:EX=U
46HW W !!,"HISTOLOGIC WORKUP:",! D P Q:EX=U
47 W !," CYTOGENETICS....................: ",ONC(165.5,IEN,514) D P Q:EX=U
48 W !," ELECTRON MICROSCOPY.............: ",ONC(165.5,IEN,515) D P Q:EX=U
49 W !," FLOW CYTOMETRY..................: ",ONC(165.5,IEN,329) D P Q:EX=U
50 W !," IMMUNOHISTOCHEMISTRY............: ",ONC(165.5,IEN,516) D P Q:EX=U
51 W !," IN SITU HYBRIDIZATION...........: ",ONC(165.5,IEN,517) D P Q:EX=U
52B W !!,"BIOPSIES: HISTOLOGY/BEHAVIOR/GRADE",! D P Q:EX=U
53 W !," FINE NEEDLE ASPIRATION..........: ",ONC(165.5,IEN,528) D P Q:EX=U
54 W !," CORE NEEDLE ASPIRATION..........: ",ONC(165.5,IEN,529) D P Q:EX=U
55 W !," INCISIONAL BIOPSY...............: ",ONC(165.5,IEN,530) D P Q:EX=U
56 W !," EXCISIONAL BIOPSY...............: ",ONC(165.5,IEN,531) D P Q:EX=U
57 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G OCOB
58 D P Q:EX=U
59OCOB W !!,"OUTSIDE CONFIRMATION OF BIOPSY....: ",ONC(165.5,IEN,518) D P Q:EX=U
60DOID W !,"DATE OF INITIAL DIAGNOSIS.........: ",ONC(165.5,IEN,3) D P Q:EX=U
61 W !,"PRIMARY SITE......................: ",TOPCOD," ",ONC(165.5,IEN,20) D P Q:EX=U
62 S SUB=ONC(165.5,IEN,519)
63 S (SUB1,SUB2)="",LOS=$L(SUB) I LOS<45 S SUB1=SUB G SUB
64 S NOP=$L($E(SUB,1,44)," ")
65 S SUB1=$P(SUB," ",1,NOP-1),SUB2=$P(SUB," ",NOP,999)
66SUB W !,"SUBSITE...........................: ",SUB1 W:SUB2'="" !,?36,SUB2 D P Q:EX=U
67 W !,"HISTOLOGY/BEHAVIOR CODE...........: ",ONC(165.5,IEN,22) D P Q:EX=U
68 W !,"GRADE.............................: ",ONC(165.5,IEN,24) D P Q:EX=U
69 W !,"ADDNL GRADE CODING SYSTEM.........: ",ONC(165.5,IEN,520) D P Q:EX=U
70 W !,"VALUE OF ADDNL CODING SYSTEM......: ",ONC(165.5,IEN,521) D P Q:EX=U
71 W !,"DIAGNOSTIC CONFIRMATION...........: ",ONC(165.5,IEN,26)
72 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G III
73 D P Q:EX=U
74III S TABLE="TABLE III - EXTENT OF DISEASE AND AJCC STAGE"
75 I IOST'?1"C".E W ! D P Q:EX=U W ! D P Q:EX=U
76 W !?15,TABLE,! D P Q:EX=U
77 W !,"PRETREATMENT TUMOR SIZE (mm)......: ",ONC(165.5,IEN,29) D P Q:EX=U
78 W !,"PATHOLOGIC TUMOR SIZE (mm)........: ",ONC(165.5,IEN,522) D P Q:EX=U
79 W !,"DEPTH OF TUMOR....................: ",ONC(165.5,IEN,523) D P Q:EX=U
80 W !,"MULTIFOCAL........................: ",ONC(165.5,IEN,433) D P Q:EX=U
81 W !,"REGIONAL NODES EXAMINED...........: ",ONC(165.5,IEN,33) D P Q:EX=U
82 W !,"REGIONAL NODES POSITIVE...........: ",ONC(165.5,IEN,32) D P Q:EX=U
83 W !!,"SITE(S) OF DISTANT METASTASIS:",! D P Q:EX=U
84 W !," SITE OF DISTANT METASTASIS #1...: ",ONC(165.5,IEN,34) D P Q:EX=U
85 W !," SITE OF DISTANT METASTASIS #2...: ",ONC(165.5,IEN,34.1) D P Q:EX=U
86 W !," SITE OF DISTANT METASTASIS #3...: ",ONC(165.5,IEN,34.2)
87 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G AJCCCS
88 D P Q:EX=U
89AJCCCS W !!,"AJCC CLINICAL STAGE (cTNM):",! D P Q:EX=U
90 W !," T-CODE..........................: ",ONC(165.5,IEN,37.1) D P Q:EX=U
91 W !," N-CODE..........................: ",ONC(165.5,IEN,37.2) D P Q:EX=U
92 W !," M-CODE..........................: ",ONC(165.5,IEN,37.3) D P Q:EX=U
93 W !," AJCC STAGE......................: ",ONC(165.5,IEN,38) D P Q:EX=U
94 W !," CLINICAL STAGED BY..............: ",ONC(165.5,IEN,19)
95AJCCPS W !!,"AJCC PATHOLOGIC STAGE (pTNM):",! D P Q:EX=U
96 W !," T-CODE..........................: ",ONC(165.5,IEN,85) D P Q:EX=U
97 W !," N-CODE..........................: ",ONC(165.5,IEN,86) D P Q:EX=U
98 W !," M-CODE..........................: ",ONC(165.5,IEN,87) D P Q:EX=U
99 W !," AJCC STAGE......................: ",ONC(165.5,IEN,88) D P Q:EX=U
100 W !," PATHOLOGIC STAGED BY............: ",ONC(165.5,IEN,89)
101 I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR W !?15,TABLE_" (continued)" G CON
102 D P Q:EX=U
103CON W !!,"CONSULTATIONS:",! D P Q:EX=U
104 W !," MEDICAL ONCOLOGIST..............: ",ONC(165.5,IEN,524) D P Q:EX=U
105 W !," RADIATION ONCOLOGIST............: ",ONC(165.5,IEN,525)
106 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HDR G IV
107 D P Q:EX=U
108IV D ^ONCSPC8A
109KILL ;Kill Variables and Exit
110 K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS
111 K NCDSIEN,NCDSOT,NOP,ONC,ONDATE,PG,SUB,SUB1,SUB2,SURG,SURG1,SURG2,SURGDT
112 K TABLE
113 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
114 Q
115P ;Print
116 I ($Y'<(LIN-1)) D Q:EX=U W !?15,TABLE_" (continued)",!
117 .I IOST?1"C".E K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
118 .D HDR Q
119 Q
120TASK ;Queue a task
121 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
122 S ZTRTN="PRT^ONCSPC8",ZTREQ="@",ZTSAVE("ZTREQ")=""
123 S ZTDESC="Print Soft Tissue Sarcoma PCE"
124 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
125 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
126 K V1,V2,ONCOLST,ZTSK Q
127HDR ;Header
128 W @IOF S PG=PG+1 N BLANKS S $P(BLANKS," ",SITTAB-$L(PATNAM)-4)=" "
129 W " ",PATNAM,BLANKS,SITEGP,!,?1,SSN,?TOPTAB-3,TOPNAM," ",TOPCOD
130 W $S($L(PG)=2:" ",1:" "),PG,!,DASHES
131 W !?20,"PCE Study of Soft Tissue Sarcoma"
132 W ?59,ONDATE,!,DASHES
133 Q
Note: See TracBrowser for help on using the repository browser.