source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCIPC3.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: 5.6 KB
Line 
1ONCIPC3 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;03/10/00
2 ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
3 ;First Course of Treatment
4 K TABLE,HTABLE
5 S TABLE("36. PROTOCOL PARTICIPATION")="PP^ONCIPC3"
6 S TABLE("37. PROTOCOL PHASE")="PPH^ONCIPC3"
7 S TABLE("38. DATE OF FIRST COURSE TREATMENT")="DFCT^ONCIPC3"
8 S TABLE("39. DATE OF INPATIENT ADMISSION")="DIA^ONCIPC3"
9 S TABLE("40. DATE OF INPATIENT DISCHARGE")="DID^ONCIPC3"
10 S TABLE("SURGERY")="S^ONCIPC3A"
11 S TABLE("41. DATE OF NON CA-DIRECTED SURGERY")="DNCDS^ONCIPC3A"
12 S TABLE("42. DIAGNOSTIC/EVALUATIVE/PALLIATIVE (NON CA-DIRECTED) SURGERY")="DEPS^ONCIPC3A"
13 S TABLE("43. DATE OF CA-DIRECTED SURGERY")="DCDS^ONCIPC3A"
14 S TABLE("44. SURGICAL APPROACH")="SA^ONCIPC3A"
15 S TABLE("45. EXTENT OF SURGICAL RESECTION")="ESR^ONCIPC3A"
16 S TABLE("46. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY")="SRPT^ONCIPC3A"
17 S TABLE("47. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY (SOURCE)")="SRPTS^ONCIPC3A"
18 S TABLE("48. SURGICAL COMPLICATIONS/POST SURGICAL EVENTS")="SCPSE^ONCIPC3A"
19 S TABLE("49. REASON FOR NO SURGERY")="RFNS^ONCIPC3A"
20 S TABLE("RADIATION THERAPY")="RT^ONCIPC3B"
21 S TABLE("50. RADIATION THERAPY")="RT^ONCIPC3B"
22 S TABLE("51. DATE RADIATION STARTED")="DRS^ONCIPC3B"
23 S TABLE("52. DATE RADIATION ENDED")="DRE^ONCIPC3B"
24 S TABLE("53. TOTAL RADIATION DOSE (cGy)")="TRD^ONCIPC3B"
25 S TABLE("54. NUMBER OF TREATMENTS TO THIS VOLUME")="NTTV^ONCIPC3B"
26 S TABLE("55. TYPE OF EXTERNAL BEAM RADIATION")="TEBR^ONCIPC3B"
27 S TABLE("56. INTERSTITIAL RADIATION/BRACHYTHERAPY")="IRB^ONCIPC3B"
28 S TABLE("57. STEREOTACTIC RADIOSURGERY")="SR^ONCIPC3B"
29 S TABLE("58. RADIATION/SURGERY SEQUENCE")="RSS^ONCIPC3B"
30 S TABLE("59. RADIATION COMPLICATIONS")="RC^ONCIPC3B"
31 S TABLE("60. REASON FOR NO RADIATION")="RFNR^ONCIPC3B"
32 S TABLE("CHEMOTHERAPY")="C^ONCIPC3C"
33 S TABLE("61. DATE CHEMOTHERAPY STARTED")="DCS^ONCIPC3C"
34 S TABLE("62. CHEMOTHERAPY")="CT^ONCIPC3C"
35 S TABLE("63. TYPE OF CHEMOTHERAPEUTIC AGENTS ADMINISTERED")="TCAA^ONCIPC3C"
36 S TABLE("64. CHEMOTHERAPEUTIC ROUTE")="CR^ONCIPC3C"
37 S TABLE("65. CHEMOTHERAPY COMPLICATIONS")="CC^ONCIPC3C"
38 S TABLE("66. REASON FOR NO CHEMOTHERAPY")="RFNC^ONCIPC3C"
39 S TABLE("OTHER THERAPY")="O^ONCIPC3C"
40 S TABLE("67. DATE OTHER TREATMENT STARTED")="DOTS^ONCIPC3C"
41 S TABLE("68. OTHER TREATMENT")="OT^ONCIPC3C"
42 S TABLE("69. KARNOFSKY'S RATING AT TIME OF DISCHARGE/TRANSFER")="KRTDT^ONCIPC3C"
43 S HTABLE(1)="36. PROTOCOL PARTICIPATION"
44 S HTABLE(2)="37. PROTOCOL PHASE"
45 S HTABLE(3)="38. DATE OF FIRST COURSE TREATMENT"
46 S HTABLE(4)="39. DATE OF INPATIENT ADMISSION"
47 S HTABLE(5)="40. DATE OF INPATIENT DISCHARGE"
48 S HTABLE(6)=""
49 S HTABLE(7)="SURGERY"
50 S HTABLE(8)=""
51 S HTABLE(9)="41. DATE OF NON CA-DIRECTED SURGERY"
52 S HTABLE(10)="42. DIAGNOSTIC/EVALUATIVE/PALLIATIVE (NON CA-DIRECTED) SURGERY"
53 S HTABLE(11)="43. DATE OF CA-DIRECTED SURGERY"
54 S HTABLE(12)="44. SURGICAL APPROACH"
55 S HTABLE(13)="45. EXTENT OF SURGICAL RESECTION"
56 S HTABLE(14)="46. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY"
57 S HTABLE(15)="47. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY (SOURCE)"
58 S HTABLE(16)="48. SURGICAL COMPLICATIONS/POST SURGICAL EVENTS"
59 S HTABLE(17)="49. REASON FOR NO SURGERY"
60 S HTABLE(18)="RADIATION THERAPY"
61 S HTABLE(19)=""
62 S HTABLE(20)="50. RADIATION THERAPY"
63 S HTABLE(21)="51. DATE RADIATION STARTED"
64 S HTABLE(22)="52. DATE RADIATION ENDED"
65 S HTABLE(23)="53. TOTAL RADIATION DOSE (cGy)"
66 S HTABLE(24)="54. NUMBER OF TREATMENTS TO THIS VOLUME"
67 S HTABLE(25)="55. TYPE OF EXTERNAL BEAM RADIATION"
68 S HTABLE(26)="56. INTERSTITIAL RADIATION/BRACHYTHERAPY"
69 S HTABLE(27)="57. STEREOTACTIC RADIOSURGERY"
70 S HTABLE(28)="58. RADIATION/SURGERY SEQUENCE"
71 S HTABLE(29)="59. RADIATION COMPLICATIONS"
72 S HTABLE(30)="60. REASON FOR NO RADIATION"
73 S HTABLE(31)=""
74 S HTABLE(32)="CHEMOTHERAPY"
75 S HTABLE(33)=""
76 S HTABLE(34)="61. DATE CHEMOTHERAPY STARTED"
77 S HTABLE(35)="62. CHEMOTHERAPY"
78 S HTABLE(36)="63. TYPE OF CHEMOTHERAPEUTIC AGENTS ADMINISTERED"
79 S HTABLE(37)="64. CHEMOTHERAPEUTIC ROUTE"
80 S HTABLE(38)="65. CHEMOTHERAPY COMPLICATIONS"
81 S HTABLE(39)="66. REASON FOR NO CHEMOTHERAPY"
82 S HTABLE(40)=""
83 S HTABLE(41)="OTHER THERAPY"
84 S HTABLE(42)=""
85 S HTABLE(43)="67. DATE OTHER TREATMENT STARTED"
86 S HTABLE(44)="68. OTHER TREATMENT"
87 S HTABLE(45)="69. KARNOFSKY'S RATING AT TIME OF DISCHARGE/TRANSFER"
88 S CHOICES=45
89 S IE=ONCONUM
90 W @IOF D HEAD^ONCIPC0
91 W !," FIRST COURSE OF TREATMENT"
92 W !," -------------------------"
93 S DIE="^ONCO(165.5,",DA=ONCONUM
94 S NCDS=$$GET1^DIQ(165.5,IE,58.1)
95 S CDS=$$GET1^DIQ(165.5,IE,58.2)
96 S RAD=$P($G(^ONCO(165.5,IE,3)),U,6)
97 S CHE=$P($G(^ONCO(165.5,IE,3)),U,13)
98PP S DR="1312 36. PROTOCOL PARTICIPATION........" D ^DIE G:$D(Y) JUMP
99 I X="00" D G DFCT
100 .S $P(^ONCO(165.5,IE,"CNS2"),U,28)=0
101 .W !," 37. PROTOCOL PHASE................: Not on"
102PPH S DR="1313 37. PROTOCOL PHASE................" D ^DIE G:$D(Y) JUMP
103DFCT W !," 38. DATE OF FIRST COURSE TREATMENT: ",$$GET1^DIQ(165.5,IE,49)
104DIA S DR="1 39. DATE OF INPATIENT ADMISSION..." D ^DIE G:$D(Y) JUMP
105DID S DR="1.1 40. DATE OF INPATIENT DISCHARGE..." D ^DIE G:$D(Y) JUMP
106 G S^ONCIPC3A
107JUMP ;Jump to prompts
108 S XX="" R !!," GO TO ITEM: ",X:DTIME
109 I (X="")!(X[U) S OUT="Y" G EXIT
110 I X["?" D G JUMP
111 .W @IOF,!," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I) I (I=17)!(I=31) W ! K DIR S DIR(0)="E" D ^DIR Q:$D(DIRUT) W @IOF,!," CHOOSE FROM:"
112 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
113 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I) I (I=17)!(I=31) W ! K DIR S DIR(0)="E" D ^DIR Q:$D(DIRUT) W @IOF,!," CHOOSE FROM:"
114 S X=TABLE(X)
115 G @X
116EXIT S:$D(DIRUT) OUT="Y"
117 K CHOICES,HTABLE,IE,PIECE,TABLE
118 K CDS,NCDS,RAD,CHE
119 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
120 Q
Note: See TracBrowser for help on using the repository browser.