Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ONCLPC0

ONCLPC0.m

Go to the documentation of this file.
  1. ONCLPC0 ;Hines OIFO/GWB - 2001 2001 Lung (NSCLC) PCE Study ;05/04/01
  1. ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
  1. ;Check PCE eligibility
  1. ;
  1. ;ACCESSION YEAR (165.5,.07) = 2001
  1. I $P(^ONCO(165.5,ONCONUM,0),U,7)'=2001 S MSG="The Accession Year is not 2001." D ERRMSG G EXIT
  1. ;
  1. ;DIAGNOSTIC CONFIRMATION (165.5,26) = 1, 2, or 4
  1. S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6)
  1. I (DC'=1)&(DC'=2)&(DC'=4) S MSG="The Diagnostic Confirmation code is not 1, 2 or 4." D ERRMSG G EXIT
  1. ;
  1. ;CLASS OF CASE (165.5,.04) = 0, 1 or 2
  1. S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4)
  1. I (COC'=0)&(COC'=1)&(COC'=2) S MSG="The Class of Case code is not 0, 1 or 2." D ERRMSG G EXIT
  1. ;
  1. ;BEHAVIOR = 3.
  1. I HIST1234=8936 S MSG="GI stromal sarcomas (8936) are being collected via paper data form." D ERRMSG G EXIT ;GI stromal sarcomas
  1. I BEH'=3 S MSG="The Behavior Code is not 3 (Malignant)." D ERRMSG G EXIT
  1. ;
  1. HIST ;HISTOLOGY (165.5,22)
  1. I (HIST1234=8041)!(HIST1234=8042)!(HIST1234=8043)!(HIST1234=8044)!(HIST1234=8045) G MSG ;exclude Small cell Carcinoma
  1. I HIST1234=8240 G MSG ;exclude Carcinoid tumor
  1. I (HIST1234>8011)&(HIST1234<8577) G MENU
  1. MSG S MSG="Invalid Histology code." D ERRMSG G EXIT
  1. ;
  1. S $P(^ONCO(165.5,ONCONUM,7),U,15)="LNG"
  1. S ^ONCO(165.5,"APCE","LNG",ONCONUM)=""
  1. K DIR D HEAD
  1. 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"
  1. S DIR("A")="Select section" D ^DIR
  1. G:$D(DIRUT)!($D(DIROUT)) EXIT
  1. I Y=8 S OUT="" D G MENU
  1. .D ^ONCLPC1 Q:$G(OUT)="Y"
  1. .D ^ONCLPC2 Q:$G(OUT)="Y"
  1. .D ^ONCLPC3 Q:$G(OUT)="Y"
  1. .D ^ONCLPC4 Q:$G(OUT)="Y"
  1. .D ^ONCLPC5 Q:$G(OUT)="Y"
  1. .D ^ONCLPC6 Q:$G(OUT)="Y"
  1. .D ^ONCLPC7 Q:$G(OUT)="Y"
  1. S SUB="^ONCLPC"_Y D @SUB G MENU
  1. ;
  1. ERRMSG ;Error message
  1. I ONCOANS=5 W !!,?8,"This primary does not satisfy the PCE eligibility criteria:",!!,?8,MSG R Z:10
  1. K MSG Q
  1. ;
  1. W @IOF,!,?1,PATNAM,?SITTAB,SITEGP
  1. W !,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD
  1. W !,DASHES
  1. S HDL=$L("2001 Patient Care Evaluation Study of Non-Small Cell Lung Carcinoma")
  1. S TAB=(80-HDL)\2,TAB=TAB-1
  1. W !,?TAB,"2001 Patient Care Evaluation Study of Non-Small Cell Lung Carcinoma"
  1. W !,DASHES
  1. Q
  1. ;
  1. EXIT ;Kill variables and exit
  1. K HDL,ONCONUM,ONCOPA,OUT,SUB,TAB
  1. K DIC,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
  1. Q