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

FBFHLU.m

Go to the documentation of this file.
  1. FBFHLU ;OIFO/SAB-FPPS HL UTILITIES ;08/24/2003
  1. ;;3.5;FEE BASIS;**61**;JULY 18, 2003
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. PAYMETH(FBCKNO) ; payment method extrinsic function
  1. ; input
  1. ; FBCHNO - check number
  1. ; result is string value
  1. ; CC, EFT, CHK
  1. ;
  1. I $G(FBCKNO)="" Q "" ; no check number
  1. I $E(FBCKNO,1,2)="CC" Q "CC" ; credit card payment
  1. I $L(FBCKNO)<8 Q "EFT" ; electronic funds transfer
  1. Q "CHK" ; all other are paper check
  1. ;
  1. POST(FBAAIN,FBFLAG,FBMSG) ; Post Exception/Warning
  1. ; input
  1. ; FBAAIN - invoice number
  1. ; FBFLAG - flag (E or W) for (E)xception or (W)arning
  1. ; exceptions will prevent transmit of invoice to FPPS
  1. ; warnings will not prevent transmit
  1. ; FBMSG - text of message
  1. ;
  1. N FBI
  1. ; determine last seq number used for invoice
  1. S FBI=$O(^TMP($J,"FB"_FBFLAG,FBAAIN," "),-1)
  1. ; post new message
  1. S ^TMP($J,"FB"_FBFLAG,FBAAIN,FBI+1)=FBMSG
  1. Q
  1. ;
  1. STANO(FBBATCH) ; station number extrinsic function
  1. ; Input
  1. ; FBBATCH - ien of entry in FEE BASIS BATCH (#161.7) file
  1. ; Returns station number or NULL value
  1. ;
  1. N FBRET,FBY
  1. S FBRET=""
  1. I $G(FBBATCH) D
  1. . S FBY=$G(^FBAA(161.7,FBBATCH,0))
  1. . S FBRET=$$SUB^FBAAUTL5(+$P(FBY,U,8)_"-"_$P(FBY,U,2))
  1. . Q:FBRET]"" ; have value from IFCAP API
  1. . ; else get from Institution file based on fee site parameters
  1. . S FBRET=$$GET1^DIQ(161.4,"1,","27:99")
  1. Q FBRET
  1. ;
  1. LAST(FBAAIN) ; function to return last entry in file 163.5 for invoice
  1. ; input
  1. ; FBAAIN - invoice number
  1. ; result is string with ien of last entry in file or null
  1. N FBRET
  1. S FBRET=""
  1. I $G(FBAAIN) S FBRET=$O(^FBHL(163.5,"B",FBAAIN," "),-1)
  1. Q FBRET
  1. ;
  1. ;FBFHLU