source: FOIAVistA/trunk/r/ONCOLOGY-ONC/ONCIPC0.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 2.0 KB
Line 
1ONCIPC0 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;01/14/00
2 ;;2.11;ONCOLOGY;**26,27**;Mar 07, 1995
3 ;
4CHECK ;Check PCE eligibility
5 ;ACCESSION YEAR (165.5,.07) = 2000
6 I $P(^ONCO(165.5,ONCONUM,0),U,7)'=2000 S MSG="The Accession Year is not 2000." D ERRMSG G EXIT
7 ;
8 ;DIAGNOSTIC CONFIRMATION (165.5,26) = 1, 2, 4 or 5
9 S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6)
10 I (DC'=1)&(DC'=2)&(DC'=4)&(DC'=5)&(DC'=7)&(DC'=8) S MSG="The Diagnostic Confirmation code is not 1, 2, 4, 5, 7 or 8." D ERRMSG G EXIT
11 ;
12 ;CLASS OF CASE (165.5,.04) = 0, 1, 2 or 5
13 S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4)
14 I (COC'=0)&(COC'=1)&(COC'=2)&(COC'=5) S MSG="The Class of Case code is not 0, 1, 2 or 5." D ERRMSG G EXIT
15 ;
16 ;BEHAVIOR = 0, 1 or 3.
17 I (BEH'=0)&(BEH'=1)&(BEH'=3) S MSG="The Behavior Code is not 0, 1 or 3." D ERRMSG G EXIT
18 ;
19MENU ;Primary Intracranial/CNS Tumors PCE menu
20 K HST
21 S $P(^ONCO(165.5,ONCONUM,7),U,15)="CNS"
22 S ^ONCO(165.5,"APCE","CNS",ONCONUM)=""
23 K DIR D HEAD
24 S DIR(0)="SO^1:Patient Information;2:Tumor Identification;3:First Course of Treatment;4:Recurrence/Progression;5:Subsequent Treatment;6:Status at Last Contact;7:All;8:Print Primary Intracranial/CNS Tumors PCE"
25 S DIR("A")="Select section" D ^DIR
26 G:$D(DIRUT)!($D(DIROUT)) EXIT
27 I Y=7 S OUT="" D G MENU
28 .D ^ONCIPC1 Q:$G(OUT)="Y"
29 .D ^ONCIPC2 Q:$G(OUT)="Y"
30 .D ^ONCIPC3 Q:$G(OUT)="Y"
31 .D ^ONCIPC4 Q:$G(OUT)="Y"
32 .D ^ONCIPC5 Q:$G(OUT)="Y"
33 .D ^ONCIPC6 Q:$G(OUT)="Y"
34 S SUB="^ONCIPC"_Y D @SUB G MENU
35ERRMSG ;Error message
36 I ONCOANS=5 W !!,?8,"This primary does not satisfy the PCE eligibility criteria:",!!,?8,MSG R Z:10
37 K MSG Q
38HEAD ;PCE HEADER
39 W @IOF,!,?1,PATNAM,?SITTAB,SITEGP
40 W !,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
41 S HDL=$L(" 2000 Patient Care Evaluation Study of Primary Intracranial & CNS Tumors"),TAB=(80-HDL)\2,TAB=TAB-1
42 W !,?TAB,"2000 Patient Care Evaluation Study of Primary Intracranial & CNS Tumors",!,DASHES
43 Q
44EXIT ;Kill Variables and Exit.
45 K HDL,ONCONUM,ONCOPA,OUT,SUB,TAB,HST
46 K DIC,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
47 Q
Note: See TracBrowser for help on using the repository browser.