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

PRCPU441.m

Go to the documentation of this file.
  1. PRCPU441 ;WISC/RFJ-master item file utilities ;10 Feb 91
  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. PURCHASE(ITEMDA) ; return 1 if item is purchasable
  1. Q $S($P($G(^PRC(441,+ITEMDA,0)),"^",6)'="S":1,1:0)
  1. ;
  1. ;
  1. REUSABLE(ITEMDA) ; return if item is resuable or disposable
  1. Q $S($P($G(^PRC(441,+ITEMDA,0)),"^",13)="y":1,1:0)
  1. ;
  1. ;
  1. SUBACCT(ITEMDA) ; return subacct of item
  1. Q $P($G(^PRC(441,+ITEMDA,0)),"^",10)
  1. ;
  1. ;
  1. MANDSRCE(ITEMDA) ; return mandatory source for item
  1. Q $P($G(^PRC(441,+ITEMDA,0)),"^",8)
  1. ;
  1. ;
  1. INACTIVE(ITEMDA) ; return 1 if item is inactive
  1. Q +$P($G(^PRC(441,+ITEMDA,3)),"^")