source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCHPC2.m@ 1722

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

initial load of FOIAVistA 6/30/08 version

File size: 7.3 KB
Line 
1ONCHPC2 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/06/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;Tumor Indentification
4 K TABLE,HTABLE
5 S TABLE("11. CLASS OF CASE")="CC"
6 S TABLE("12. HORMONES")="HOR"
7 S TABLE("13. CONDITIONS PRESENT AT INITIAL DIAGNOSIS")="CPID"
8 S TABLE("14. ALCOHOL CONSUMPTION")="AC"
9 S TABLE("15. TUMOR MARKERS")="TM"
10 S TABLE("16. TESTS RELATED TO LIVER FUNCTION")="TRLF"
11 S TABLE("17. RADIOLOGICAL EVALUATION")="RE"
12 S TABLE("18. DEFINITIVE DIAGNOSIS")="DD"
13 S TABLE("19. DATE OF INITIAL DIAGNOSIS")="DID"
14 S TABLE("20. HISTOLOGY (ICD-O-2)")="HIST"
15 S TABLE("21. GRADE")="GRADE"
16 S TABLE("22. DIAGNOSTIC CONFIRMATION")="DC"
17 S HTABLE(1)="11. CLASS OF CASE"
18 S HTABLE(2)="12. HORMONES"
19 S HTABLE(3)="13. CONDITIONS PRESENT AT INITIAL DIAGNOSIS"
20 S HTABLE(4)="14. ALCOHOL CONSUMPTION"
21 S HTABLE(5)="15. TUMOR MARKERS"
22 S HTABLE(6)="16. TESTS RELATED TO LIVER FUNCTION"
23 S HTABLE(7)="17. RADIOLOGICAL EVALUATION"
24 S HTABLE(8)="18. DEFINITIVE DIAGNOSIS"
25 S HTABLE(9)="19. DATE OF INITIAL DIAGNOSIS"
26 S HTABLE(10)="20. HISTOLOGY (ICD-O-2)"
27 S HTABLE(11)="21. GRADE"
28 S HTABLE(12)="22. DIAGNOSTIC CONFIRMATION"
29 S CHOICES=12
30 S IE=ONCONUM
31 S DIE="^ONCO(165.5,",DA=ONCONUM
32 W @IOF D HEAD^ONCHPC0
33 W !," TUMOR IDENTIFICATION"
34 W !," --------------------"
35CC W !," 11. CLASS OF CASE.................: ",$$GET1^DIQ(165.5,IE,.04,"E")
36HOR W !!," 12. HORMONES:"
37 S DR="1000 ORAL CONTRACEPTIVES.........." D ^DIE G:$D(Y) JUMP
38 S DR="1001 ESTROGEN REPLACEMENT........." D ^DIE G:$D(Y) JUMP
39 S DR="1002 TAMOXIFEN...................." D ^DIE G:$D(Y) JUMP
40 S DR="1003 OTHER........................" D ^DIE G:$D(Y) JUMP
41 W !
42CPID W !," 13. CONDITIONS PRESENT AT INITIAL DIAGNOSIS:"
43 S DR="1004 ASCITES......................" D ^DIE G:$D(Y) JUMP
44 S DR="1005 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
45 S DR="1006 CHILD'S CLASS A.............." D ^DIE G:$D(Y) JUMP
46 S DR="1007 CHILD'S CLASS B.............." D ^DIE G:$D(Y) JUMP
47 S DR="1008 CHILD'S CLASS C.............." D ^DIE G:$D(Y) JUMP
48 S DR="1009 HEPATITIS B.................." D ^DIE G:$D(Y) JUMP
49 S DR="1010 HEPATITIS C.................." D ^DIE G:$D(Y) JUMP
50 S DR="1011 HEMOCHROMATOSIS.............." D ^DIE G:$D(Y) JUMP
51 W !
52AC S DR="1012 14. ALCOHOL CONSUMPTION..........." D ^DIE G:$D(Y) JUMP
53TM W !!," 15. TUMOR MARKERS:"
54 S DR="1013 AFP (IU/ml).................." D ^DIE G:$D(Y) JUMP
55 S DR="1014 CEA (mg/ml).................." D ^DIE G:$D(Y) JUMP
56 S DR="1015 CA19.9 (U/ml)................" D ^DIE G:$D(Y) JUMP
57TRLF W !!," 16. TESTS RELATED TO LIVER FUNCTION:"
58 S DR="1016 PROTIME (sec)................" D ^DIE G:$D(Y) JUMP
59 S DR="1017 BILIRUBIN (mg/ml)............" D ^DIE G:$D(Y) JUMP
60 S DR="1018 ALBUMIN (g/dl)..............." D ^DIE G:$D(Y) JUMP
61 S DR="1019 LDH (U/I)...................." D ^DIE G:$D(Y) JUMP
62RE W !!," 17. RADIOLOGICAL EVALUATION:"
63CTAP W !!," CT ARTERIAL PORTOGRAPHY:"
64 S DR="1020 PERFORMED...................." D ^DIE G:$D(Y) JUMP
65 I $G(X)=0 D CTAP0^ONCHPC2A G SCT
66 I $G(X)=9 D CTAP9^ONCHPC2A G SCT
67 S DR="1021 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
68 S DR="1022 VASCULAR INVASION............" D ^DIE G:$D(Y) JUMP
69 S DR="1023 BILOBAR DISEASE.............." D ^DIE G:$D(Y) JUMP
70 S DR="1024 LYMPH NODES.................." D ^DIE G:$D(Y) JUMP
71 S DR="1025 SIZE OF DOMINANT TUMOR (mm).." D ^DIE G:$D(Y) JUMP
72 S DR="1026 NUMBER OF TUMORS............." D ^DIE G:$D(Y) JUMP
73SCT W !!," SPIRAL CT:"
74 S DR="1027 PERFORMED...................." D ^DIE G:$D(Y) JUMP
75 I $G(X)=0 D SCT0^ONCHPC2A G ICT
76 I $G(X)=9 D SCT9^ONCHPC2A G ICT
77 S DR="1028 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
78 S DR="1029 VASCULAR INVASION............" D ^DIE G:$D(Y) JUMP
79 S DR="1030 BILOBAR DISEASE.............." D ^DIE G:$D(Y) JUMP
80 S DR="1031 LYMPH NODES.................." D ^DIE G:$D(Y) JUMP
81 S DR="1032 SIZE OF DOMINANT TUMOR (mm).." D ^DIE G:$D(Y) JUMP
82 S DR="1033 NUMBER OF TUMORS............." D ^DIE G:$D(Y) JUMP
83ICT W !!," INCREMENTAL CT:"
84 S DR="1034 PERFORMED...................." D ^DIE G:$D(Y) JUMP
85 I $G(X)=0 D ICT0^ONCHPC2A G ULTRA
86 I $G(X)=9 D ICT9^ONCHPC2A G ULTRA
87 S DR="1035 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
88 S DR="1036 VASCULAR INVASION............" D ^DIE G:$D(Y) JUMP
89 S DR="1037 BILOBAR DISEASE.............." D ^DIE G:$D(Y) JUMP
90 S DR="1038 LYMPH NODES.................." D ^DIE G:$D(Y) JUMP
91 S DR="1039 SIZE OF DOMINANT TUMOR (mm).." D ^DIE G:$D(Y) JUMP
92 S DR="1040 NUMBER OF TUMORS............." D ^DIE G:$D(Y) JUMP
93ULTRA W !!," ULTRASOUND:"
94 S DR="1041 PERFORMED...................." D ^DIE G:$D(Y) JUMP
95 I $G(X)=0 D ULTRA0^ONCHPC2A G MRI
96 I $G(X)=9 D ULTRA9^ONCHPC2A G MRI
97 S DR="1042 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
98 S DR="1043 VASCULAR INVASION............" D ^DIE G:$D(Y) JUMP
99 S DR="1044 BILOBAR DISEASE.............." D ^DIE G:$D(Y) JUMP
100 S DR="1045 LYMPH NODES.................." D ^DIE G:$D(Y) JUMP
101 S DR="1046 SIZE OF DOMINANT TUMOR (mm).." D ^DIE G:$D(Y) JUMP
102 S DR="1047 NUMBER OF TUMORS............." D ^DIE G:$D(Y) JUMP
103MRI W !!," MRI:"
104 S DR="1048 PERFORMED...................." D ^DIE G:$D(Y) JUMP
105 I $G(X)=0 D MRI0^ONCHPC2A G DD
106 I $G(X)=9 D MRI9^ONCHPC2A G DD
107 S DR="1049 CIRRHOSIS...................." D ^DIE G:$D(Y) JUMP
108 S DR="1050 VASCULAR INVASION............" D ^DIE G:$D(Y) JUMP
109 S DR="1051 BILOBAR DISEASE.............." D ^DIE G:$D(Y) JUMP
110 S DR="1052 LYMPH NODES.................." D ^DIE G:$D(Y) JUMP
111 S DR="1053 SIZE OF DOMINANT TUMOR (mm).." D ^DIE G:$D(Y) JUMP
112 S DR="1054 NUMBER OF TUMORS............." D ^DIE G:$D(Y) JUMP
113DD W !
114 S DR="1055 18. DEFINITIVE DIAGNOSIS.........." D ^DIE G:$D(Y) JUMP
115DID S DID=$E(DATEDX,4,5)_"/"_$E(DATEDX,6,7)_"/"_(1700+$E(DATEDX,1,3))
116 W !," 19. DATE OF INITIAL DIAGNOSIS.....: ",DID
117HIST W !," 20. HISTOLOGY (ICD-O-2)...........: ",$E($$GET1^DIQ(165.5,IE,22,"I"),1,4)," ",$$GET1^DIQ(165.5,IE,22)
118GRADE S DR="24 21. GRADE........................." D ^DIE G:$D(Y) JUMP
119DC W !," 22. DIAGNOSTIC CONFIRMATON........: ",$$GET1^DIQ(165.5,IE,26,"E")
120 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
121 G EXIT
122RE0 ;Radiological Evaluation not performed (0)
123 W !," CIRRHOSIS....................: NA"
124 W !," VASCULAR INVASION............: NA"
125 W !," BILOBAR DISEASE..............: NA"
126 W !," LYMPH NODES..................: NA"
127 W !," SIZE OF DOMINANT TUMOR (mm)..: Not performed"
128 W !," NUMBER OF TUMORS.............: Not performed"
129 Q
130RE9 ;Radiological Evaluation unknown (9)
131 W !," CIRRHOSIS....................: Unknown"
132 W !," VASCULAR INVASION............: Unknown"
133 W !," BILOBAR DISEASE..............: Unknown"
134 W !," LYMPH NODES..................: Unknown"
135 W !," SIZE OF DOMINANT TUMOR (mm)..: Not performed"
136 W !," NUMBER OF TUMORS.............: Not performed"
137 Q
138JUMP ;Jump to prompts
139 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
140 I (X="")!(X[U) S OUT="Y" G EXIT
141 I X["?" D G JUMP
142 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
143 I '$D(TABLE(X)) S:X?1.2N X=X_"." S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
144 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
145 S X=TABLE(X)
146 G @X
147EXIT K CHOICES,HTABLE,IE,TABLE
148 K DA,DID,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
149 Q
Note: See TracBrowser for help on using the repository browser.