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

PRCPCUDI.m

Go to the documentation of this file.
  1. PRCPCUDI ;WISC/RFJ-fileman input transforms for case carts ;01 Sep 93
  1. ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. ;
  1. CHECK(FILE,FIELD) ; check input transform for files 445.7 and 445.8
  1. ; x = item master number
  1. ; if it fails goto kill and kill x and dinum
  1. N MESSAGE
  1. S MESSAGE="UNAUTHORIZED ACCESS"
  1. I '$G(PRCPPRIV) D KILL Q MESSAGE
  1. S MESSAGE=""
  1. I FILE=445.7,FIELD=.01 D Q MESSAGE
  1. . I $$PURCHASE^PRCPU441(X) S MESSAGE="*** Item cannot be defined as 'purchasable' in item master file ***" D KILL Q
  1. . I $D(^PRCP(445.8,X,0)) S MESSAGE="*** Item is already defined as an Instrument Kit ***" D KILL Q
  1. . I $D(^PRCP(445.8,"AI",X)) S MESSAGE="*** Item is included in an Instrument Kit ***" D KILL Q
  1. ;
  1. I FILE=445.7,FIELD=1 D Q MESSAGE
  1. . I $D(^PRCP(445.7,"B",X)) S MESSAGE="*** A Case Cart cannot be an item in a Case Cart ***" D KILL Q
  1. ;
  1. I FILE=445.8,FIELD=.01 D Q MESSAGE
  1. . I $$PURCHASE^PRCPU441(X) S MESSAGE="*** Item cannot be defined as 'purchasable' in item master file ***" D KILL Q
  1. . I $D(^PRCP(445.7,X,0)) S MESSAGE="*** Item is already defined as a Case Cart ***" D KILL Q
  1. ;
  1. I FILE=445.8,FIELD=1 D Q MESSAGE
  1. . I $D(^PRCP(445.8,X,0)) S MESSAGE="*** Item is already defined as an Instrument Kit ***" D KILL Q
  1. . I $D(^PRCP(445.7,X,0)) S MESSAGE="*** Item is already defined as a Case Cart ***" D KILL Q
  1. Q
  1. ;
  1. ;
  1. KILL ; kill x and dinum
  1. K X,DINUM
  1. Q