source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCNPC0.m@ 1586

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

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1ONCNPC0 ;HIRMFO/GWB - PCE Study of Non-Hodgkin's Lymphoma;4/11/97
2 ;;2.11;ONCOLOGY;**11,15**;Mar 07, 1995
3 ;Check PCE eligibility
4 ;Check if histologically or cytologically confirmed
5 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
6 ;Check if Class of Case is either 1, 2 or 6.
7 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
8 ;Check if BEHAVIOR is 3 (malignant)
9 I BEH'=3 S MSG="The BEHAVIOR code is not 3 (malignant)." D ERRMSG G EXIT
10MENU ;Non-Hodgkin's Lymphoma PCE menu
11 S $P(^ONCO(165.5,ONCONUM,7),U,15)="NHL"
12 S ^ONCO(165.5,"APCE","NHL",ONCONUM)=""
13 K DIR D HEAD
14 S DIR(0)="SO^1:General Information;2:Initial Diagnosis;3:Extent of Disease and AJCC Stage;4:First Course of Treatment;5:First Recurrence;6:Status at Last Contact;7:All;"
15 S DIR(0)=DIR(0)_"8:Print Non-Hodgkin's Lymphoma PCE"
16 S DIR("A")="Select Table" D ^DIR
17 G:$D(DIRUT)!($D(DIROUT)) EXIT
18 I Y=7 S OUT="" D G MENU
19 .D ^ONCNPC1 Q:$G(OUT)="Y"
20 .D ^ONCNPC2 Q:$G(OUT)="Y"
21 .D ^ONCNPC3 Q:$G(OUT)="Y"
22 .D ^ONCNPC4 Q:$G(OUT)="Y"
23 .D ^ONCNPC5 Q:$G(OUT)="Y"
24 .D ^ONCNPC6 Q:$G(OUT)="Y"
25 I Y=8 D ^ONCNPC8 G MENU
26 S SUB="^ONCNPC"_Y D @SUB G MENU
27ERRMSG ;Error message
28 I ONCOANS=5 W !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG R Z:10
29 K MSG Q
30HEAD ;Non-Hodgkin's Lymphoma PCE header
31 W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
32 S HDL=$L("Patient Care Evaluation Study of Non-Hodgkin's Lymphoma"),TAB=(80-HDL)\2,TAB=TAB-1
33 W !,?TAB,"Patient Care Evaluation Study of Non-Hodgkin's Lymphoma",!,DASHES
34 Q
35EXIT ;Kill variables and exit
36 K COC,DC,HDL,HIST,HIS1234,BEH,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
37 K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
38 Q
Note: See TracBrowser for help on using the repository browser.