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

BPSOSQ.m

Go to the documentation of this file.
  1. BPSOSQ ;BHAM ISC/FCS/DRS/DLF - BPS Transactions Utils ;06/01/2004
  1. ;;1.0;E CLAIMS MGMT ENGINE;**1,5**;JUN 2004;Build 45
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. Q
  1. ;
  1. ; Numerous little functions for BPS Transactions
  1. ; BPS Log of Transaction versions in BPSOS57
  1. ; All functions assume that IEN59 will exist
  1. ;
  1. RXI() Q $P(^BPST(IEN59,1),U,11) ; Given IEN59, return RXI
  1. RXR() Q $P(^BPST(IEN59,1),U,1) ; Given IEN59, return RXR
  1. NDC() Q $P(^BPST(IEN59,1),U,2)
  1. QTY() Q $P(^BPST(IEN59,5),U) ; Given IEN59, return quantity
  1. AMT() Q $P(^BPST(IEN59,5),U,5) ; return total $amount
  1. CHG() Q $P(^BPST(IEN59,5),U,5) ; Given IEN59, ret total charge
  1. PATIENT() Q $P(^BPST(IEN59,0),U,6)
  1. USER() N X S X=$P(^BPST(IEN59,0),U,10) S:'X X=$G(DUZ) Q X
  1. NOW() N %,%H,%I,X D NOW^%DTC Q %