source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCLPC0.m@ 1150

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1ONCLPC0 ;Hines OIFO/GWB - 2001 2001 Lung (NSCLC) PCE Study ;05/04/01
2 ;;2.11;ONCOLOGY;**29**;Mar 07, 1995
3 ;Check PCE eligibility
4 ;
5 ;ACCESSION YEAR (165.5,.07) = 2001
6 I $P(^ONCO(165.5,ONCONUM,0),U,7)'=2001 S MSG="The Accession Year is not 2001." D ERRMSG G EXIT
7 ;
8 ;DIAGNOSTIC CONFIRMATION (165.5,26) = 1, 2, or 4
9 S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6)
10 I (DC'=1)&(DC'=2)&(DC'=4) S MSG="The Diagnostic Confirmation code is not 1, 2 or 4." D ERRMSG G EXIT
11 ;
12 ;CLASS OF CASE (165.5,.04) = 0, 1 or 2
13 S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4)
14 I (COC'=0)&(COC'=1)&(COC'=2) S MSG="The Class of Case code is not 0, 1 or 2." D ERRMSG G EXIT
15 ;
16 ;BEHAVIOR = 3.
17 I HIST1234=8936 S MSG="GI stromal sarcomas (8936) are being collected via paper data form." D ERRMSG G EXIT ;GI stromal sarcomas
18 I BEH'=3 S MSG="The Behavior Code is not 3 (Malignant)." D ERRMSG G EXIT
19 ;
20HIST ;HISTOLOGY (165.5,22)
21 I (HIST1234=8041)!(HIST1234=8042)!(HIST1234=8043)!(HIST1234=8044)!(HIST1234=8045) G MSG ;exclude Small cell Carcinoma
22 I HIST1234=8240 G MSG ;exclude Carcinoid tumor
23 I (HIST1234>8011)&(HIST1234<8577) G MENU
24MSG S MSG="Invalid Histology code." D ERRMSG G EXIT
25 ;
26MENU ;Lung (NSCLC) Cancers PCE menu
27 S $P(^ONCO(165.5,ONCONUM,7),U,15)="LNG"
28 S ^ONCO(165.5,"APCE","LNG",ONCONUM)=""
29 K DIR D HEAD
30 S DIR(0)="SO^1:Patient Information;2:Tumor Identification and Diagnosis;3:Tumor Evaluation;4:Pathology;5:First Course of Treatment;6:Treatment Complications;7:Case Registration;8:All;9:Print Lung (NSCLC) PCE"
31 S DIR("A")="Select section" D ^DIR
32 G:$D(DIRUT)!($D(DIROUT)) EXIT
33 I Y=8 S OUT="" D G MENU
34 .D ^ONCLPC1 Q:$G(OUT)="Y"
35 .D ^ONCLPC2 Q:$G(OUT)="Y"
36 .D ^ONCLPC3 Q:$G(OUT)="Y"
37 .D ^ONCLPC4 Q:$G(OUT)="Y"
38 .D ^ONCLPC5 Q:$G(OUT)="Y"
39 .D ^ONCLPC6 Q:$G(OUT)="Y"
40 .D ^ONCLPC7 Q:$G(OUT)="Y"
41 S SUB="^ONCLPC"_Y D @SUB G MENU
42 ;
43ERRMSG ;Error message
44 I ONCOANS=5 W !!,?8,"This primary does not satisfy the PCE eligibility criteria:",!!,?8,MSG R Z:10
45 K MSG Q
46 ;
47HEAD ;PCE header
48 W @IOF,!,?1,PATNAM,?SITTAB,SITEGP
49 W !,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD
50 W !,DASHES
51 S HDL=$L("2001 Patient Care Evaluation Study of Non-Small Cell Lung Carcinoma")
52 S TAB=(80-HDL)\2,TAB=TAB-1
53 W !,?TAB,"2001 Patient Care Evaluation Study of Non-Small Cell Lung Carcinoma"
54 W !,DASHES
55 Q
56 ;
57EXIT ;Kill variables and exit
58 K HDL,ONCONUM,ONCOPA,OUT,SUB,TAB
59 K DIC,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
60 Q
Note: See TracBrowser for help on using the repository browser.