source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBRP9.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: 7.9 KB
RevLine 
[613]1ONCBRP9 ;Hines OIFO/GWB - 1998 Breast 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;10;15",DA=ONCOPA,DIQ="ONC" D EN^DIQ1
10 S DR=".04;.05;.06;.12;1;3;9;18;19;20;23;24;25.1;25.2;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;75;81;82;85;86;87;88;89;138:146;307;361;441;443;900:956"
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^ONCBRP0
16 W !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC D P Q:EX=U
17 K LINE S $P(LINE,"-",29)="-"
18 W !!?4,TABLE,!?4,LINE
19 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
20 W !," 2. ACCESSION NUMBER.................: ",ONC(165.5,IE,.05) D P Q:EX=U
21 W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,IE,.06) D P Q:EX=U
22 W !," 4. POSTAL CODE AT DIAGNOSIS.........: ",ONC(165.5,IE,9) D P Q:EX=U
23 W !," 5. DATE OF BIRTH....................: ",DOB D P Q:EX=U
24 W !," 6. RACE.............................: ",ONC(165.5,IE,.12) D P Q:EX=U
25 W !," 7. SPANISH ORIGIN...................: ",ONC(160,ONCOPA,9) D P Q:EX=U
26 W !," 8. SEX..............................: ",ONC(160,ONCOPA,10) D P Q:EX=U
27 W !," 9. PRIMARY PAYER AT DIAGNOSIS.......: ",ONC(165.5,IE,18) D P Q:EX=U
28 W !!,"10. FAMILY HISTORY OF BREAST CANCER:" D P Q:EX=U
29 W !," DAUGHTER........................: ",ONC(165.5,IE,900) D P Q:EX=U
30 W !," MATERNAL AUNT...................: ",ONC(165.5,IE,901) D P Q:EX=U
31 W !," MATERNAL GRANDMOTHER............: ",ONC(165.5,IE,902) D P Q:EX=U
32 W !," MOTHER..........................: ",ONC(165.5,IE,903) D P Q:EX=U
33 W !," ONE SISTER ONLY.................: ",ONC(165.5,IE,904) D P Q:EX=U
34 W !," MORE THAN ONE SISTER............: ",ONC(165.5,IE,905) D P Q:EX=U
35 W !," FATHER..........................: ",ONC(165.5,IE,906) D P Q:EX=U
36 W !," BROTHER.........................: ",ONC(165.5,IE,907) D P Q:EX=U
37 W !," POSTIVE FAMILY HISTORY, NOS.....: ",ONC(165.5,IE,908) D P Q:EX=U
38 W ! D P Q:EX=U
39 S FN=909 D FEMALE
40 W !,"11. (F) PERSONAL HISTORY OF BREAST"
41 W !," CANCER...........................: ",ONC(165.5,IE,909) D P Q:EX=U
42 W !,"12. SYNCHRONOUS BREAST CANCER........: ",ONC(165.5,IE,910) D P Q:EX=U
43 W !!,"13. PERSONAL HISTORY OF OTHER CANCER:" D P Q:EX=U
44 W !," COLON...........................: ",ONC(165.5,IE,911) D P Q:EX=U
45 S FN=912 D FEMALE
46 W !," OVARY (F).......................: ",ONC(165.5,IE,912) D P Q:EX=U
47 S FN=913 D FEMALE
48 W !," UTERUS (F)......................: ",ONC(165.5,IE,913) D P Q:EX=U
49 S FN=914 D MALE
50 W !," PROSTATE (M)....................: ",ONC(165.5,IE,914) D P Q:EX=U
51 W !," OTHER...........................: ",ONC(165.5,IE,915) D P Q:EX=U
52 W ! D P Q:EX=U
53 S FN=916 D FEMALE
54 W !,"14. (F) HORMONE REPLACEMENT THERAPY..: ",ONC(165.5,IE,916) D P Q:EX=U
55 S FN=917 D FEMALE
56 W !,"15. (F) HOW MANY YEARS OF HORMONE"
57 W !," REPLACEMENT THERAPY..............: ",ONC(165.5,IE,917) D P Q:EX=U
58 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCBRP0 G II
59 D P Q:EX=U
60II S TABLE="TABLE II - INITIAL DIAGNOSIS"
61 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HEAD^ONCBRP0
62 K LINE S $P(LINE,"-",28)="-"
63 W !?4,TABLE,!?4,LINE D P Q:EX=U
64 W !,"16. CLASS OF CASE....................: ",ONC(165.5,IE,.04) D P Q:EX=U
65 W !,"17. DIAGNOSTIC EVALUATION:" D P Q:EX=U
66 S FN=926 D MALE
67 W !," MAMMOGRAM (M)...................: ",ONC(165.5,IE,926) D P Q:EX=U
68 W !," ULTRASOUND (M)(F)...............: ",ONC(165.5,IE,927) D P Q:EX=U
69 W !!,"18. (F) TYPE OF MAMMOGRAM:" D P Q:EX=U
70 S FN=918 D FEMALE
71 W !," A. MAMMOGRAM GIVEN, TYPE UNKNOWN: ",ONC(165.5,IE,918) D P Q:EX=U
72 W !," DATE.........................: ",ONC(165.5,IE,919) D P Q:EX=U
73 S FN=920 D FEMALE
74 W !," B. SCREENING MAMMOGRAM..........: ",ONC(165.5,IE,920) D P Q:EX=U
75 W !," DATE.........................: ",ONC(165.5,IE,921) D P Q:EX=U
76 S FN=922 D FEMALE
77 W !," C. DIAGNOSTIC MAMMOGRAM.........: ",ONC(165.5,IE,922) D P Q:EX=U
78 W !," DATE.........................: ",ONC(165.5,IE,923) D P Q:EX=U
79 S FN=924 D FEMALE
80 W !," D. MAGNIFICAITON MAMMOGRAM......: ",ONC(165.5,IE,924) D P Q:EX=U
81 W !," DATE.........................: ",ONC(165.5,IE,925) D P Q:EX=U
82 I IOST'?1"C".E W ! D P Q:EX=U
83 S FN=928 D FEMALE
84 W !,"19. (F) PRESENTATION OF MOST"
85 W !," DEFINITIVE MAMMOGRAM.............: ",ONC(165.5,IE,928) D P Q:EX=U
86 W !,"20. DATE OF INITIAL DIAGNOSIS........: ",ONC(165.5,IE,3) D P Q:EX=U
87 W !,"21. DATE OF PATHOLOGIC DIAGNOSIS.....: ",ONC(165.5,IE,929) D P Q:EX=U
88 W !,"22. PRIMARY SITE (ICD-O-2)...........: ",TOPCOD," ",ONC(165.5,IE,20)
89 W !,"23. HISTOLOGY (ICD-O-2)..............: ",$E(HIST,1,4) D P Q:EX=U
90 W !,"24. BEHAVIOR CODE (ICD-O-2)..........: ",$E(HIST,5) D P Q:EX=U
91 W !,"25. IF INVASIVE DUCTUAL CARCINOMA"
92 W !," REPORTED, IS DCIS ALSO PRESENT...: ",ONC(165.5,IE,930) D P Q:EX=U
93 W !,"26. GRADE............................: ",ONC(165.5,IE,24) D P Q:EX=U
94 W !,"27. ARCHITECTURE PATTERN IF DCIS"
95 W !," IS PRESENT.......................: ",ONC(165.5,IE,931) D P Q:EX=U
96 W !,"28. NUCLEAR GRADE IF DCIS IS"
97 W !," PRESENT..........................: ",ONC(165.5,IE,932) D P Q:EX=U
98 W !,"29. DIAGNOSTIC CONFIRMATION..........: ",ONC(165.5,IE,26)
99 W !,"30. (M) LEVEL OF INVOLVEMENT:" D P Q:EX=U
100 S FN=933 D MALE
101 W !," SKIN............................: ",ONC(165.5,IE,933) D P Q:EX=U
102 S FN=934 D MALE
103 W !," CHEST WALL......................: ",ONC(165.5,IE,934) D P Q:EX=U
104 S FN=935 D MALE
105 W !," PECTORAL MUSCLES................: ",ONC(165.5,IE,935) D P Q:EX=U
106 S FN=936 D MALE
107 W !," DERMAL/LYMPHATIC................: ",ONC(165.5,IE,936) D P Q:EX=U
108 W !!," DIAGNOSTIC AND STAGING PROCEDURES" D P Q:EX=U
109 W ! D P Q:EX=U
110 W !,"31. BIOPSY PROCEDURE.................: ",ONC(165.5,IE,141) D P Q:EX=U
111 W !,"32. GUIDANCE.........................: ",ONC(165.5,IE,142) D P Q:EX=U
112 W !,"33. PALPABILITY OF PRIMARY...........: ",ONC(165.5,IE,143) D P Q:EX=U
113 W !,"34. FIRST DETECTED BY................: ",ONC(165.5,IE,144) D P Q:EX=U
114 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCBRP0 G III
115 D P Q:EX=U
116III S TABLE="TABLE III - TUMOR MARKERS AND PROGNOSTIC TESTS"
117 I IOST'?1"C".E W ! I ($Y'<(LIN-4)) D HEAD^ONCBRP0
118 K LINE S $P(LINE,"-",46)="-"
119 W !?4,TABLE,!?4,LINE D P Q:EX=U
120 S FN=937 D MALE
121 W !,"35. (M) DNA INDEX/PLOIDY.............: ",ONC(165.5,IE,937) D P Q:EX=U
122 W !,"36. ESTROGEN RECEPTOR PROTEIN........: ",ONC(165.5,IE,25.1) D P Q:EX=U
123 W !,"37. PROGESTERONE RECEPTOR PROTEIN....: ",ONC(165.5,IE,25.2) D P Q:EX=U
124 S FN=940 D MALE
125 W !,"38. (M) ANDROGEN RECEPTOR PROTEIN....: ",ONC(165.5,IE,940) D P Q:EX=U
126 W !,"39. TYPE OF TEST.....................: ",ONC(165.5,IE,941) D P Q:EX=U
127 I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR Q:'Y D HEAD^ONCBRP0 G IV
128 D P Q:EX=U
129IV D ^ONCBRP9A
130KILL ;
131 K CDS,CDSOT,CS,CSDAT,CSIEN,CSPNT,DLC,DOB,DOIT,FIL,LIN,LOS,NCDS
132 K NCDSIEN,NCDSOT,ONC,ONDATE,PG,SURG,SURG1,SURG2,SURGDT,TABLE
133 K %,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y,OSP,IIN
134 Q
135P ;Print
136 I ($Y'<(LIN-1)) D Q:EX=U W !?4,TABLE_" (continued)",!?4,LINE_"------------"
137 .I IOST?1"C".E W ! K DIR S DIR(0)="E" D ^DIR I 'Y S EX=U Q
138 .D HEAD^ONCBRP0 Q
139 Q
140TASK ;Queue a task
141 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE
142 S ZTRTN="PRT^ONCBRP9",ZTREQ="@",ZTSAVE("ZTREQ")=""
143 S ZTDESC="Print Breast Cancer PCE"
144 F V2=1:1 S V1=$P(ONCOLST,"^",V2) Q:V1="" S ZTSAVE(V1)=""
145 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",!
146 K V1,V2,ONCOLST,ZTSK Q
147FEMALE ;Item for Females Only
148 I ONC(165.5,IE,FN)="",$$GET1^DIQ(160,ONCOPA,10,"I")=1 D
149 .S ONC(165.5,IE,FN)="(Data Item for Females Only)"
150 Q
151MALE ;Item for Males Only
152 I ONC(165.5,IE,FN)="",$$GET1^DIQ(160,ONCOPA,10,"I")=2 D
153 .S ONC(165.5,IE,FN)="(Data Item for Males Only)"
154 Q
Note: See TracBrowser for help on using the repository browser.