Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ONCIPC3

ONCIPC3.m

Go to the documentation of this file.
ONCIPC3 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;03/10/00
 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
 ;First Course of Treatment
 K TABLE,HTABLE
 S TABLE("36. PROTOCOL PARTICIPATION")="PP^ONCIPC3"
 S TABLE("37. PROTOCOL PHASE")="PPH^ONCIPC3"
 S TABLE("38. DATE OF FIRST COURSE TREATMENT")="DFCT^ONCIPC3"
 S TABLE("39. DATE OF INPATIENT ADMISSION")="DIA^ONCIPC3"
 S TABLE("40. DATE OF INPATIENT DISCHARGE")="DID^ONCIPC3"
 S TABLE("SURGERY")="S^ONCIPC3A"
 S TABLE("41. DATE OF NON CA-DIRECTED SURGERY")="DNCDS^ONCIPC3A"
 S TABLE("42. DIAGNOSTIC/EVALUATIVE/PALLIATIVE (NON CA-DIRECTED) SURGERY")="DEPS^ONCIPC3A"
 S TABLE("43. DATE OF CA-DIRECTED SURGERY")="DCDS^ONCIPC3A"
 S TABLE("44. SURGICAL APPROACH")="SA^ONCIPC3A"
 S TABLE("45. EXTENT OF SURGICAL RESECTION")="ESR^ONCIPC3A"
 S TABLE("46. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY")="SRPT^ONCIPC3A"
 S TABLE("47. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY (SOURCE)")="SRPTS^ONCIPC3A"
 S TABLE("48. SURGICAL COMPLICATIONS/POST SURGICAL EVENTS")="SCPSE^ONCIPC3A"
 S TABLE("49. REASON FOR NO SURGERY")="RFNS^ONCIPC3A"
 S TABLE("RADIATION THERAPY")="RT^ONCIPC3B"
 S TABLE("50. RADIATION THERAPY")="RT^ONCIPC3B"
 S TABLE("51. DATE RADIATION STARTED")="DRS^ONCIPC3B"
 S TABLE("52. DATE RADIATION ENDED")="DRE^ONCIPC3B"
 S TABLE("53. TOTAL RADIATION DOSE (cGy)")="TRD^ONCIPC3B"
 S TABLE("54. NUMBER OF TREATMENTS TO THIS VOLUME")="NTTV^ONCIPC3B"
 S TABLE("55. TYPE OF EXTERNAL BEAM RADIATION")="TEBR^ONCIPC3B"
 S TABLE("56. INTERSTITIAL RADIATION/BRACHYTHERAPY")="IRB^ONCIPC3B"
 S TABLE("57. STEREOTACTIC RADIOSURGERY")="SR^ONCIPC3B"
 S TABLE("58. RADIATION/SURGERY SEQUENCE")="RSS^ONCIPC3B"
 S TABLE("59. RADIATION COMPLICATIONS")="RC^ONCIPC3B"
 S TABLE("60. REASON FOR NO RADIATION")="RFNR^ONCIPC3B"
 S TABLE("CHEMOTHERAPY")="C^ONCIPC3C"
 S TABLE("61. DATE CHEMOTHERAPY STARTED")="DCS^ONCIPC3C"
 S TABLE("62. CHEMOTHERAPY")="CT^ONCIPC3C"
 S TABLE("63. TYPE OF CHEMOTHERAPEUTIC AGENTS ADMINISTERED")="TCAA^ONCIPC3C"
 S TABLE("64. CHEMOTHERAPEUTIC ROUTE")="CR^ONCIPC3C"
 S TABLE("65. CHEMOTHERAPY COMPLICATIONS")="CC^ONCIPC3C"
 S TABLE("66. REASON FOR NO CHEMOTHERAPY")="RFNC^ONCIPC3C"
 S TABLE("OTHER THERAPY")="O^ONCIPC3C"
 S TABLE("67. DATE OTHER TREATMENT STARTED")="DOTS^ONCIPC3C"
 S TABLE("68. OTHER TREATMENT")="OT^ONCIPC3C"
 S TABLE("69. KARNOFSKY'S RATING AT TIME OF DISCHARGE/TRANSFER")="KRTDT^ONCIPC3C"
 S HTABLE(1)="36. PROTOCOL PARTICIPATION"
 S HTABLE(2)="37. PROTOCOL PHASE"
 S HTABLE(3)="38. DATE OF FIRST COURSE TREATMENT"
 S HTABLE(4)="39. DATE OF INPATIENT ADMISSION"
 S HTABLE(5)="40. DATE OF INPATIENT DISCHARGE"
 S HTABLE(6)=""
 S HTABLE(7)="SURGERY"
 S HTABLE(8)=""
 S HTABLE(9)="41. DATE OF NON CA-DIRECTED SURGERY"
 S HTABLE(10)="42. DIAGNOSTIC/EVALUATIVE/PALLIATIVE (NON CA-DIRECTED) SURGERY"
 S HTABLE(11)="43. DATE OF CA-DIRECTED SURGERY"
 S HTABLE(12)="44. SURGICAL APPROACH"
 S HTABLE(13)="45. EXTENT OF SURGICAL RESECTION"
 S HTABLE(14)="46. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY"
 S HTABLE(15)="47. SIZE OF RESIDUAL PRIMARY TUMOR FOLLOWING CA-DIRECTED SURGERY (SOURCE)"
 S HTABLE(16)="48. SURGICAL COMPLICATIONS/POST SURGICAL EVENTS"
 S HTABLE(17)="49. REASON FOR NO SURGERY"
 S HTABLE(18)="RADIATION THERAPY"
 S HTABLE(19)=""
 S HTABLE(20)="50. RADIATION THERAPY"
 S HTABLE(21)="51. DATE RADIATION STARTED"
 S HTABLE(22)="52. DATE RADIATION ENDED"
 S HTABLE(23)="53. TOTAL RADIATION DOSE (cGy)"
 S HTABLE(24)="54. NUMBER OF TREATMENTS TO THIS VOLUME"
 S HTABLE(25)="55. TYPE OF EXTERNAL BEAM RADIATION"
 S HTABLE(26)="56. INTERSTITIAL RADIATION/BRACHYTHERAPY"
 S HTABLE(27)="57. STEREOTACTIC RADIOSURGERY"
 S HTABLE(28)="58. RADIATION/SURGERY SEQUENCE"
 S HTABLE(29)="59. RADIATION COMPLICATIONS"
 S HTABLE(30)="60. REASON FOR NO RADIATION"
 S HTABLE(31)=""
 S HTABLE(32)="CHEMOTHERAPY"
 S HTABLE(33)=""
 S HTABLE(34)="61. DATE CHEMOTHERAPY STARTED"
 S HTABLE(35)="62. CHEMOTHERAPY"
 S HTABLE(36)="63. TYPE OF CHEMOTHERAPEUTIC AGENTS ADMINISTERED"
 S HTABLE(37)="64. CHEMOTHERAPEUTIC ROUTE"
 S HTABLE(38)="65. CHEMOTHERAPY COMPLICATIONS"
 S HTABLE(39)="66. REASON FOR NO CHEMOTHERAPY"
 S HTABLE(40)=""
 S HTABLE(41)="OTHER THERAPY"
 S HTABLE(42)=""
 S HTABLE(43)="67. DATE OTHER TREATMENT STARTED"
 S HTABLE(44)="68. OTHER TREATMENT"
 S HTABLE(45)="69. KARNOFSKY'S RATING AT TIME OF DISCHARGE/TRANSFER"
 S CHOICES=45
 S IE=ONCONUM
 W @IOF D HEAD^ONCIPC0
 W !," FIRST COURSE OF TREATMENT"
 W !," -------------------------"
 S DIE="^ONCO(165.5,",DA=ONCONUM
 S NCDS=$$GET1^DIQ(165.5,IE,58.1)
 S CDS=$$GET1^DIQ(165.5,IE,58.2)
 S RAD=$P($G(^ONCO(165.5,IE,3)),U,6)
 S CHE=$P($G(^ONCO(165.5,IE,3)),U,13)
PP S DR="1312 36. PROTOCOL PARTICIPATION........" D ^DIE G:$D(Y) JUMP
 I X="00" D  G DFCT
 .S $P(^ONCO(165.5,IE,"CNS2"),U,28)=0
 .W !," 37. PROTOCOL PHASE................: Not on"
PPH S DR="1313 37. PROTOCOL PHASE................" D ^DIE G:$D(Y) JUMP
DFCT W !," 38. DATE OF FIRST COURSE TREATMENT: ",$$GET1^DIQ(165.5,IE,49)
DIA S DR="1 39. DATE OF INPATIENT ADMISSION..." D ^DIE G:$D(Y) JUMP
DID S DR="1.1 40. DATE OF INPATIENT DISCHARGE..." D ^DIE G:$D(Y) JUMP
 G S^ONCIPC3A
JUMP ;Jump to prompts
 S XX="" R !!," GO TO ITEM: ",X:DTIME
 I (X="")!(X[U) S OUT="Y" G EXIT
 I X["?" D  G JUMP
 .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:"
 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
 .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:"
 S X=TABLE(X)
 G @X
EXIT S:$D(DIRUT) OUT="Y"
 K CHOICES,HTABLE,IE,PIECE,TABLE
 K CDS,NCDS,RAD,CHE
 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
 Q