[613] | 1 | ONCCPC0 ;HIRMFO/GWB - PCE Study of Colorectal Cancer;2/7/97
|
---|
| 2 | ;;2.11;ONCOLOGY;**11,15**;Mar 07, 1995
|
---|
| 3 | ;Check PCE eligibility
|
---|
| 4 | ;Check if ACCESSION YEAR = 1997
|
---|
| 5 | I $P(^ONCO(165.5,ONCONUM,0),U,7)'=1997 S MSG="The Accession Year is not 1997." D ERRMSG G EXIT
|
---|
| 6 | ;Check if microscopically confirmed
|
---|
| 7 | S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6) I (DC'=1)&(DC'=2)&(DC'=4) S MSG="The Diagnostic Confirmation code is not 1, 2 or 4." D ERRMSG G EXIT
|
---|
| 8 | ;Check if Class of Case is either 1, 2 or 6.
|
---|
| 9 | S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4) I (COC'=1)&(COC'=2)&(COC'=6) S MSG="The Class of Case code is not 1, 2 or 6." D ERRMSG G EXIT
|
---|
| 10 | ;Check if HISTOLOGY and BEHAVIOR is eligible
|
---|
| 11 | S HIST=$P($G(^ONCO(165.5,ONCONUM,2)),U,3)
|
---|
| 12 | S HIST1234=$E(HIST,1,4),BEH=$E(HIST,5)
|
---|
| 13 | I HIST="" S MSG="There is no HISTOLOGY for this primary." D ERRMSG G EXIT
|
---|
| 14 | I (BEH'=2)&(BEH'=3) S MSG="The BEHAVIOR code is not 2 (in situ) or 3 (malignant)." D ERRMSG G EXIT
|
---|
| 15 | S HIST(8140)=""
|
---|
| 16 | S HIST(8141)=""
|
---|
| 17 | S HIST(8143)=""
|
---|
| 18 | S HIST(8144)=""
|
---|
| 19 | S HIST(8145)=""
|
---|
| 20 | S HIST(8147)=""
|
---|
| 21 | S HIST(8150)=""
|
---|
| 22 | S HIST(8154)=""
|
---|
| 23 | S HIST(8160)=""
|
---|
| 24 | S HIST(8190)=""
|
---|
| 25 | S HIST(8200)=""
|
---|
| 26 | S HIST(8210)=""
|
---|
| 27 | S HIST(8211)=""
|
---|
| 28 | S HIST(8220)=""
|
---|
| 29 | S HIST(8221)=""
|
---|
| 30 | S HIST(8244)=""
|
---|
| 31 | S HIST(8250)=""
|
---|
| 32 | S HIST(8251)=""
|
---|
| 33 | S HIST(8260)=""
|
---|
| 34 | S HIST(8261)=""
|
---|
| 35 | S HIST(8262)=""
|
---|
| 36 | S HIST(8263)=""
|
---|
| 37 | S HIST(8270)=""
|
---|
| 38 | S HIST(8280)=""
|
---|
| 39 | S HIST(8290)=""
|
---|
| 40 | S HIST(8300)=""
|
---|
| 41 | S HIST(8310)=""
|
---|
| 42 | S HIST(8312)=""
|
---|
| 43 | S HIST(8320)=""
|
---|
| 44 | S HIST(8322)=""
|
---|
| 45 | S HIST(8323)=""
|
---|
| 46 | S HIST(8330)=""
|
---|
| 47 | S HIST(8331)=""
|
---|
| 48 | S HIST(8332)=""
|
---|
| 49 | S HIST(8340)=""
|
---|
| 50 | S HIST(8350)=""
|
---|
| 51 | S HIST(8370)=""
|
---|
| 52 | S HIST(8380)=""
|
---|
| 53 | S HIST(8400)=""
|
---|
| 54 | S HIST(8401)=""
|
---|
| 55 | S HIST(8410)=""
|
---|
| 56 | S HIST(8420)=""
|
---|
| 57 | S HIST(8441)=""
|
---|
| 58 | S HIST(8450)=""
|
---|
| 59 | S HIST(8460)=""
|
---|
| 60 | S HIST(8470)=""
|
---|
| 61 | S HIST(8480)=""
|
---|
| 62 | S HIST(8481)=""
|
---|
| 63 | S HIST(8490)=""
|
---|
| 64 | S HIST(8500)=""
|
---|
| 65 | S HIST(8503)=""
|
---|
| 66 | S HIST(8504)=""
|
---|
| 67 | S HIST(8510)=""
|
---|
| 68 | S HIST(8520)=""
|
---|
| 69 | S HIST(8530)=""
|
---|
| 70 | S HIST(8550)=""
|
---|
| 71 | S HIST(8560)=""
|
---|
| 72 | S HIST(8570)=""
|
---|
| 73 | S HIST(8571)=""
|
---|
| 74 | S HIST(8572)=""
|
---|
| 75 | S HIST(8573)=""
|
---|
| 76 | S HIST(9070)=""
|
---|
| 77 | S HIST(9110)=""
|
---|
| 78 | I '$D(HIST(HIST1234)) S MSG="The Histology of "_$E(HIST,1,4)_"/"_$E(HIST,5)_" is not eligible." D ERRMSG G EXIT
|
---|
| 79 | MENU ;Colorectal Cancer PCE menu
|
---|
| 80 | S $P(^ONCO(165.5,ONCONUM,7),U,15)="COL"
|
---|
| 81 | S ^ONCO(165.5,"APCE","COL",ONCONUM)=""
|
---|
| 82 | K DIR D HEAD
|
---|
| 83 | S DIR(0)="SO^1:General Information;2:Initial Diagnosis/Cancer Identification;3:Extent of Disease and AJCC Stage;4:First Course of Treatment;5:Quality of Life;6:First Recurrence;7:Status at Last Contact;8:All;"
|
---|
| 84 | S DIR(0)=DIR(0)_"9:Print Colorectal Cancer PCE"
|
---|
| 85 | S DIR("A")="Select Table" D ^DIR
|
---|
| 86 | G:$D(DIRUT)!($D(DIROUT)) EXIT
|
---|
| 87 | I Y=8 S OUT="" D G MENU
|
---|
| 88 | .D ^ONCCPC1 Q:$G(OUT)="Y"
|
---|
| 89 | .D ^ONCCPC2 Q:$G(OUT)="Y"
|
---|
| 90 | .D ^ONCCPC3 Q:$G(OUT)="Y"
|
---|
| 91 | .D ^ONCCPC4 Q:$G(OUT)="Y"
|
---|
| 92 | .D ^ONCCPC5 Q:$G(OUT)="Y"
|
---|
| 93 | .D ^ONCCPC6 Q:$G(OUT)="Y"
|
---|
| 94 | .D ^ONCCPC7 Q:$G(OUT)="Y"
|
---|
| 95 | I Y=9 D ^ONCCPC9 G MENU
|
---|
| 96 | S SUB="^ONCCPC"_Y D @SUB G MENU
|
---|
| 97 | ERRMSG ;Error message
|
---|
| 98 | I ONCOANS=5 W !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG R Z:10
|
---|
| 99 | K MSG Q
|
---|
| 100 | HEAD ;Colorectal Cancer PCE header
|
---|
| 101 | W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
|
---|
| 102 | S HDL=$L("Patient Care Evaluation Study of Colorectal Cancer"),TAB=(80-HDL)\2,TAB=TAB-1
|
---|
| 103 | W !,?TAB,"Patient Care Evaluation Study of Colorectal Cancer",!,DASHES
|
---|
| 104 | Q
|
---|
| 105 | EXIT ;Kill variables and exit
|
---|
| 106 | K COC,DC,HDL,HIST,HIS1234,BEH,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
|
---|
| 107 | K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
|
---|
| 108 | Q
|
---|