source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCMPC0.m@ 1416

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

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1ONCMPC0 ;Hines CIOFO/GWB - PCE Study of Melanoma ;1/05/99
2 ;;2.11;ONCOLOGY;**22**;Mar 07, 1995
3 ;Check PCE eligibility
4 ;Check if Class of Case = 0, 1, 2 or 6.
5 S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4) I (COC'=0)&(COC'=1)&(COC'=2)&(COC'=6) S MSG="The Class of Case is not 0, 1, 2 or 6." D ERRMSG G EXIT
6 ;Check if BEHAVIOR is 2 (melanoma in situ) or 3 (malignant)
7 I (BEH'=2)&(BEH'=3) S MSG="The BEHAVIOR is not 2 (melanoma in situ) or 3 (malignant)." D ERRMSG G EXIT
8MENU ;Melanoma PCE menu
9 S $P(^ONCO(165.5,ONCONUM,7),U,15)="MEL"
10 S ^ONCO(165.5,"APCE","MEL",ONCONUM)=""
11 K DIR D HEAD
12 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:Other Information;8:All;"
13 S DIR(0)=DIR(0)_"9:Print Melanoma PCE"
14 S DIR("A")="Select Table" D ^DIR
15 G:$D(DIRUT)!($D(DIROUT)) EXIT
16 I Y=8 S OUT="" D G MENU
17 .D ^ONCMPC1 Q:$G(OUT)="Y"
18 .D ^ONCMPC2 Q:$G(OUT)="Y"
19 .D ^ONCMPC3 Q:$G(OUT)="Y"
20 .D ^ONCMPC4 Q:$G(OUT)="Y"
21 .D ^ONCMPC5 Q:$G(OUT)="Y"
22 .D ^ONCMPC6 Q:$G(OUT)="Y"
23 .D ^ONCMPC7 Q:$G(OUT)="Y"
24 I Y=9 D ^ONCMPC9 G MENU
25 S SUB="^ONCMPC"_Y D @SUB G MENU
26ERRMSG ;Error message
27 I ONCOANS=5 W !!,?10,"This primary does not satisfy the Melanoma PCE eligibility criteria:",!,?10,MSG R Z:10
28 K MSG Q
29HEAD ;Melanoma PCE header
30 W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
31 S HDL=$L("1999 Patient Care Evaluation Study of Melanoma"),TAB=(80-HDL)\2,TAB=TAB-1
32 W !,?TAB,"1999 Patient Care Evaluation Study of Melanoma",!,DASHES
33 Q
34EXIT ;Kill variables and exit
35 K COC,DC,HDL,HIST,HIS1234,BEH,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
36 K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
37 Q
Note: See TracBrowser for help on using the repository browser.