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

ONCCPC2.m

Go to the documentation of this file.
ONCCPC2 ;HIRMFO/GWB - PCE Study of Colorectal Cancer - Table II;2/12/97
 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
 K TABLE,HTABLE
 S TABLE("CLASS OF CASE")="COC"
 S TABLE("DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months)")="DOS"
 S TABLE("INITIAL METHODS OF DIAGNOSIS")="IMOD"
 S TABLE("REASON LEADING TO EVENTUAL DX")="RLTED"
 S TABLE("DIAGNOSTIC EVALUATION")="DE"
 S TABLE("LEVEL OF TUMOR BY ENDOSCOPIC EXAM")="LOTBEE"
 S TABLE("LEVEL OF RECTAL TUMOR")="LORT"
 S TABLE("DATE OF INITIAL DIAGNOSIS")="DOID"
 S TABLE("PRIMARY SITE")="PS"
 S TABLE("HISTOLOGY/BEHAVIOR CODE")="H"
 S TABLE("GRADE")="G"
 S TABLE("DIAGNOSTIC CONFIRMATION")="DC"
 S HTABLE(1)="CLASS OF CASE"
 S HTABLE(2)="DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months)"
 S HTABLE(3)="INITIAL METHODS OF DIAGNOSIS"
 S HTABLE(4)="REASON LEADING TO EVENTUAL DX"
 S HTABLE(5)="DIAGNOSTIC EVALUATION"
 S HTABLE(6)="LEVEL OF TUMOR BY ENDOSCOPIC EXAM"
 S HTABLE(7)="LEVEL OF RECTAL TUMOR"
 S HTABLE(8)="DATE OF INITIAL DIAGNOSIS"
 S HTABLE(9)="PRIMARY SITE"
 S HTABLE(10)="HISTOLOGY/BEHAVIOR CODE"
 S HTABLE(11)="GRADE"
 S HTABLE(12)="DIAGNOSTIC CONFIRMATION"
 S CHOICES=12
 K DIQ S DIC="^ONCO(165.5,",DR=".04;22;24;26",DA=ONCONUM,DIQ="ONC"
 D EN^DIQ1
 S Y=$P(^ONCO(165.5,ONCONUM,0),U,16) D DATEOT^ONCOPCE S DOID=Y
 W @IOF D HEAD^ONCCPC0
 W !?26,"TABLE II- INITIAL DIAGNOSIS"
 W !?26,"---------------------------"
 S DIE="^ONCO(165.5,",DA=ONCONUM
COC W !,"CLASS OF CLASS...................: ",ONC(165.5,ONCONUM,.04)
DOS W !!,"DURATION OF SIGNS/SYMPTOMS PRESENT AT INITIAL DIAGNOSIS (months):",!
 S DR="716  ANEMIA........................." D ^DIE G:$D(Y) JUMP
 S DR="717  BOWEL OBSTRUCTION.............." D ^DIE G:$D(Y) JUMP
 S DR="718  CHANGE IN BOWEL HABIT.........." D ^DIE G:$D(Y) JUMP
 S DR="719  EMER PRESENTATION-OBSTRUCTION.." D ^DIE G:$D(Y) JUMP
 S DR="720  JAUNDICE......................." D ^DIE G:$D(Y) JUMP
 S DR="721  MALAISE........................" D ^DIE G:$D(Y) JUMP
 S DR="722  OCCULT BLOOD ONLY IN STOOL....." D ^DIE G:$D(Y) JUMP
 S DR="723  PAIN (ABDOMINAL)..............." D ^DIE G:$D(Y) JUMP
 S DR="724  PAIN (PELVIC).................." D ^DIE G:$D(Y) JUMP
 S DR="725  RECTAL BLEEDING (MELENA)......." D ^DIE G:$D(Y) JUMP
 S DR="726  OTHER.........................." D ^DIE G:$D(Y) JUMP
IMOD W !!,"INITIAL METHODS OF DIAGNOSIS:",!
 S DR="727  ENDOSCOPIC....................." D ^DIE G:$D(Y) JUMP
 S DR="728  RADIOGRAPHIC..................." D ^DIE G:$D(Y) JUMP
 S DR="729  SCREENING DIGITAL RECTAL EXAM.." D ^DIE G:$D(Y) JUMP
 S DR="730  SCREENING PHYSICAL EXAM........" D ^DIE G:$D(Y) JUMP
 S DR="731  OTHER.........................." D ^DIE G:$D(Y) JUMP
RLTED W !
 S DR="732REASON LEADING TO EVENTUAL DX...." D ^DIE G:$D(Y) JUMP
DE W !!,"DIAGNOSTIC EVALUATION:",!
 S DR="733  BARIUM ENEMA, DOUBLE CONTRAST.." D ^DIE G:$D(Y) JUMP
 S DR="734  BARIUM ENEMA, SINGLE CONTRAST.." D ^DIE G:$D(Y) JUMP
 S DR="735  BARIUM ENEMA, NOS.............." D ^DIE G:$D(Y) JUMP
 S DR="736  BIOPSY OF PRIMARY SITE........." D ^DIE G:$D(Y) JUMP
 S DR="737  BIOPSY OF METASTATIC SITE......" D ^DIE G:$D(Y) JUMP
 S DR="421  CT SCAN OF CHEST..............." D ^DIE G:$D(Y) JUMP
 S DR="738  CT SCAN OF LIVER..............." D ^DIE G:$D(Y) JUMP
 S DR="739  CT SCAN OF PRIMARY SITE........" D ^DIE G:$D(Y) JUMP
 S DR="740  CEA (PREOPERATIVE)............." D ^DIE G:$D(Y) JUMP
 S DR="741  CHEST ROENTGENOGRAM............" D ^DIE G:$D(Y) JUMP
 S DR="742  COLONOSCOPY...................." D ^DIE G:$D(Y) JUMP
 S DR="743  DIGITAL RECTAL EXAM............" D ^DIE G:$D(Y) JUMP
 S DR="744  FLEXIBLE SIGMOIDOSCOPY........." D ^DIE G:$D(Y) JUMP
 S DR="745  INTRAVENOUS PYELOGRAM (IVP)...." D ^DIE G:$D(Y) JUMP
 S DR="746  SERUM-LIVER FUNCTION TEST......" D ^DIE G:$D(Y) JUMP
 S DR="747  MRI............................" D ^DIE G:$D(Y) JUMP
 S DR="748  PROCTOSCOPY (RIGID)............" D ^DIE G:$D(Y) JUMP
 S DR="749  STOOL GUAIAC (OCCULT BLOOD)...." D ^DIE G:$D(Y) JUMP
 S DR="750  ULTRASOUND, LIVER, ABDOMEN....." D ^DIE G:$D(Y) JUMP
 S DR="751  ULTRASOUND, ENDORECTAL........." D ^DIE G:$D(Y) JUMP
 S DR="430  OTHER.........................." D ^DIE G:$D(Y) JUMP
 W !
LOTBEE S DR="752LEVEL OF TUMOR BY ENDOSCOPIC EXAM" D ^DIE G:$D(Y) JUMP
LORT S DR="753LEVEL OF RECTAL TUMOR............" D ^DIE G:$D(Y) JUMP
DOID W !,"DATE OF INITIAL DIAGNOSIS........: ",DOID
PS W !,"PRIMARY SITE.....................: ",TOPCOD
H W !,"HISTOLOGY/BEHAVIOR CODE..........: ",ONC(165.5,ONCONUM,22)
G S DR="24GRADE............................" D ^DIE G:$D(Y) JUMP
DC S DR="26DIAGNOSTIC CONFIRMATION.........." D ^DIE G:$D(Y) JUMP
 W ! K DIR S DIR(0)="E" D ^DIR
 G EXIT
JUMP ;Jump to prompts
 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
 I X["?" D  G JUMP
 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
 I '$D(TABLE(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)
 S X=TABLE(X)
 G @X
EXIT K HTABLE,TABLE,CHOICES
 K DOID,HST,HSTCD,HSTNAM,PRINODE0,PRINODE2,TOPOG,TOPCD,SITE
 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
 Q