source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBPC0.m@ 1259

Last change on this file since 1259 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1ONCBPC0 ;HIRMFO/GWB - PCE Study of Cancers of the Urinary Bladder;03/18/96
2 ;;2.11;ONCOLOGY;**6,15**;Mar 07, 1995
3 ;Check PCE eligibility
4 ;Check if ACCESSION YEAR = 1995
5 I $P(^ONCO(165.5,ONCONUM,0),U,7)'=1995 S MSG="The Accession Year is not 1995." D ERRMSG G EXIT
6 ;Check if histologically confirmed
7 S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6) I DC'=1 S MSG="The Diagnostic Confirmation code is not 1." D ERRMSG G EXIT
8 ;Check if Class of Case is either 0, 1 or 2.
9 I $P($G(^ONCO(165.5,ONCONUM,0)),U,4)>2 S MSG="The Class of Case code is not 0, 1 or 2." D ERRMSG G EXIT
10 ;Check Date DX and/or Date of First Course Treatment
11 ;S ONCODT1=$P($G(^ONCO(165.5,ONCONUM,0)),U,16)
12 ;S ONCODT2=0 F S ONCODT2=$O(^ONCO(165.5,"ATX",ONCONUM,ONCODT2)) Q:ONCODT2'>0 Q:($E(ONCODT2,2,7)'="000000")&($E(ONCODT2,2,7)'=999999)
13 ;I $E(ONCODT1,1,3)'=ONCDT,$E(ONCODT2,1,3)'=ONCDT S MSG="Date DX and/or First Treatment Date not in 1995." D ERRMSG G EXIT
14MENU ;Bladder PCE menu
15 S $P(^ONCO(165.5,ONCONUM,7),U,15)="BLA"
16 S ^ONCO(165.5,"APCE","BLA",ONCONUM)=""
17 K DIR D HEAD
18 S DIR(0)="SO^1:General Information;2:Diagnostic Information;3:Extent of Disease and AJCC Stage;4:First Course of Treatment;5:First Recurrence;6:Status At Last Contact;7:All;8:Print Bladder PCE"
19 S DIR("A")="Select table" D ^DIR
20 I Y=7 S OUT="" D G MENU
21 .D ^ONCBPC1 Q:$G(OUT)="Y"
22 .D ^ONCBPC2 Q:$G(OUT)="Y"
23 .D ^ONCBPC3 Q:$G(OUT)="Y"
24 .D ^ONCBPC4 Q:$G(OUT)="Y"
25 .D ^ONCBPC5 Q:$G(OUT)="Y"
26 .D ^ONCBPC6 Q:$G(OUT)="Y"
27 G:$D(DIRUT)!($D(DIROUT)) EXIT S SUB="^ONCBPC"_Y D @SUB
28 G MENU
29ERRMSG ;Error message
30 I ONCOANS=5 W !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG R Z:10
31 K MSG Q
32HEAD ;PCE HEADER
33 W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
34 S HDL=$L("Patient Care Evaluation Study of Cancers of the Urinary Bladder"),TAB=(80-HDL)\2,TAB=TAB-1
35 W !,?TAB,"Patient Care Evaluation Study of Cancers of the Urinary Bladder",!,DASHES
36 Q
37EXIT ;Kill variables and exit
38 K COC,DC,HDL,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
39 K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
40 Q
Note: See TracBrowser for help on using the repository browser.