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

ONCBPC4.m

Go to the documentation of this file.
  1. ONCBPC4 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder Table IV;6/19/96
  1. ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
  1. K ONC,TABLE,HTABLE
  1. S TABLE("DATE OF INITIAL TREATMENT")="DOIT^ONCBPC4"
  1. S TABLE("PROTOCOL ELIGIBILITY STATUS")="PES^ONCBPC4"
  1. S TABLE("MANAGING PHYSICIANS")="MP^ONCBPC4"
  1. S TABLE("SURGERY")="SUR^ONCBPC4"
  1. S TABLE("RADIATION THERAPY")="RAD^ONCBPC4A"
  1. S TABLE("CHEMOTHERAPY")="CHEMO^ONCBPC4A"
  1. S TABLE("IMMUNOTHERAPY")="BRM^ONCBPC4A"
  1. S HTABLE(1)="DATE OF INITIAL TREATMENT"
  1. S HTABLE(2)="PROTOCOL ELIGIBILITY STATUS"
  1. S HTABLE(3)="MANAGING PHYSICIANS"
  1. S HTABLE(4)="SURGERY"
  1. S HTABLE(5)="RADIATION THERAPY"
  1. S HTABLE(6)="CHEMOTHERAPY"
  1. S HTABLE(7)="IMMUNOTHERAPY"
  1. S CHOICES=7
  1. S D0=ONCONUM D DFC^ONCOCOM S DOIT=Y
  1. S DIC="^ONCO(165.5,",DR="51.2;53.2;55.2;58.1;58.2",DA=ONCONUM,DIQ="ONC"
  1. S DIQ(0)="IE" D EN^DIQ1
  1. W @IOF D HEAD^ONCBPC0 W !?22,"TABLE IV - FIRST COURSE OF TREATMENT",!
  1. DOIT W !,"DATE OF INITIAL TREATMENT...........: ",DOIT
  1. S DIE="^ONCO(165.5,",DA=ONCONUM
  1. PES S DR="346PROTOCOL ELIGIBILITY STATUS........." D ^DIE G:$D(Y) JUMP
  1. MP W !!,"MANAGING PHYSICIANS:",!
  1. S DR="347 PRIMARY PHYSICIAN................." D ^DIE G:$D(Y) JUMP
  1. S DR="348 SECONDARY PHYSICIAN..............." D ^DIE G:$D(Y) JUMP
  1. SUR W !!,"SURGERY:",!
  1. S NCDS=ONC(165.5,ONCONUM,58.1,"I"),NCDSOT=ONC(165.5,ONCONUM,58.1,"E")
  1. S CDS=ONC(165.5,ONCONUM,58.2,"I"),CDSOT=ONC(165.5,ONCONUM,58.2,"E")
  1. I (CDS="")!(CDS="00") D
  1. .S SURG=NCDSOT,SURGDT=$P($G(^ONCO(165.5,ONCONUM,3)),U,31)
  1. I ((CDS'="")&(CDS'="00"))!(NCDS="") D
  1. .S SURG=CDSOT,SURGDT=$P($G(^ONCO(165.5,ONCONUM,3)),U,1)
  1. S (SURG1,SURG2)="",LOS=$L(SURG) I LOS<43 S SURG1=SURG G DOS
  1. S NOP=$L($E(SURG,1,42)," ")
  1. S SURG1=$P(SURG," ",1,NOP-1),SURG2=$P(SURG," ",NOP,999)
  1. DOS S Y=SURGDT D DATEOT^ONCOPCE S SURGDT=Y
  1. W !," DATE OF SURGERY...................: ",SURGDT
  1. W !," TYPE OF SURGERY...................: ",SURG1
  1. W:SURG2'="" !,?41,SURG2
  1. TURB I (SURG="")!($E(SURG,1)=0)!($E(SURG,1,2)'=10)!(TOPCOD="C68.0") D G TOUD
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,4)=8
  1. .W !," TUMOR RESECTION DURING TURB.......: Not applicable"
  1. S DR="349 TUMOR RESECTION DURING TURB......." D ^DIE G:$D(Y) JUMP
  1. TOUD I (SURG="")!($E(SURG,1)=0)!($E(SURG,1,2)<20)!($E(SURG,1,2)>70) D G PLND
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,5)=8
  1. .W !," TYPE OF URINARY DIVERSION.........: Not applicable"
  1. S DR="350 TYPE OF URINARY DIVERSION........." D ^DIE G:$D(Y) JUMP
  1. PLND I (SURG="")!($E(SURG,1)=0)!($E(SURG,1,2)'=70) D G SC
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,6)=8
  1. .W !," PELVIC LYMPH NODE DISSECTION......: Not applicable"
  1. S DR="351 PELVIC LYMPH NODE DISSECTION......" D ^DIE G:$D(Y) JUMP
  1. SC I (SURG="")!($E(SURG,1)=0) D G:(Y=0)!(Y="") EXIT W @IOF G RAD^ONCBPC4A
  1. .W !!," SURGICAL COMPLICATIONS:",!
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,7)=0
  1. .W !," BLEEDING REQUIRING TRANSFUSION..: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,8)=0
  1. .W !," DEEP VENOUS THROMBOSIS..........: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,9)=0
  1. .W !," MYOCARDIAL INFARCTION/ARRHYTHMIA: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,10)=0
  1. .W !," PELVIC ABSCESS..................: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,11)=0
  1. .W !," PNEUMONIA REQUIRING ANTIBIOTICS.: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,12)=0
  1. .W !," POST-OPERATIVE DEATH (30 DAYS)..: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,13)=0
  1. .W !," PULMONARY EMBOLISM/THROMBOSIS...: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,14)=0
  1. .W !," REOPERATION.....................: No"
  1. .S $P(^ONCO(165.5,ONCONUM,"BLA2"),U,15)=0
  1. .W !," OTHER...........................: No"
  1. .W ! K DIR S DIR(0)="E" D ^DIR
  1. W !!," SURGICAL COMPLICATIONS:",!
  1. S DR="352 BLEEDING REQUIRING TRANSFUSION.." D ^DIE G:$D(Y) JUMP
  1. S DR="353 DEEP VENOUS THROMBOSIS.........." D ^DIE G:$D(Y) JUMP
  1. S DR="354 MYOCARDIAL INFARCTION/ARRHYTHMIA" D ^DIE G:$D(Y) JUMP
  1. S DR="355 PELVIC ABSCESS.................." D ^DIE G:$D(Y) JUMP
  1. S DR="356 PNEUMONIA REQUIRING ANTIBIOTICS." D ^DIE G:$D(Y) JUMP
  1. S DR="357 POST-OPERATIVE DEATH (30 DAYS).." D ^DIE G:$D(Y) JUMP
  1. S DR="358 PULMONARY EMBOLISM/THROMBOSIS..." D ^DIE G:$D(Y) JUMP
  1. S DR="359 REOPERATION....................." D ^DIE G:$D(Y) JUMP
  1. S DR="360 OTHER..........................." D ^DIE G:$D(Y) JUMP
  1. G ^ONCBPC4A
  1. JUMP ;Jump to prompts
  1. S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
  1. I X["?" D G JUMP
  1. .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
  1. I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
  1. .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
  1. S X=TABLE(X)
  1. G @X
  1. EXIT K CHOICES,HTABLE,TABLE
  1. K CDS,CDSOT,CHEDT,CHEMO,DOIT,LOS,NCDS,NCDSOT,NOP,RAD,RADDT,SURG,SURG1
  1. K SURG2,SURGDT
  1. K DIC
  1. Q