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

IBCEXTR2.m

Go to the documentation of this file.
  1. IBCEXTR2 ;ALB/JEH - IB EXTRACT STATUS MANAGEMENT ;01/14/00
  1. ;;2.0;INTEGRATED BILLING;**137,155**;21-MAR-1994
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;This routine contains the action items to cancel,clone and authorize
  1. ;claims held in a ready for extract statue due to EDI/MRA parameters
  1. ;being turned off.
  1. ;
  1. CANCEL ;Cancel bill
  1. N IBIFN,IBDA,IB364,IBCEAUTO
  1. S IBCEAUTO=1
  1. ;
  1. ; Check for security key
  1. I '$$KCHK^XUSRB("IB AUTHORIZE") D G CANCELQ
  1. . D FULL^VALM1
  1. . W !!?5,"You don't hold the proper security key to access this function."
  1. . W !?5,"The necessary key is IB AUTHORIZE. Please see your manager."
  1. . D PAUSE^VALM1
  1. . Q
  1. ;
  1. D SEL(.IBDA,1)
  1. S IBDA=$O(IBDA(0)),IBIFN=+$G(IBDA(+IBDA)),IB364=$P($G(IBDA(+IBDA)),U,2)
  1. I 'IBIFN G CANCELQ
  1. D CANCEL^IBCEM3(.IBDA,IBIFN,IB364)
  1. D PAUSE^VALM1
  1. CANCELQ S VALMBCK="R"
  1. I $G(IBDA)'="" D BLD^IBCEXTR1
  1. Q
  1. ;
  1. CPYCLN ;Cancel/clone/authorize bill
  1. N IBIFN,IBDA,IB364,IBCEAUTO,IBNIEN,IBYY
  1. S IBCEAUTO=1
  1. ;
  1. ; Check for security key
  1. I '$$KCHK^XUSRB("IB AUTHORIZE") D G CPYCLNQ
  1. . D FULL^VALM1
  1. . W !!?5,"You don't hold the proper security key to access this function."
  1. . W !?5,"The necessary key is IB AUTHORIZE. Please see your manager."
  1. . D PAUSE^VALM1
  1. . Q
  1. ;
  1. D SEL(.IBDA,1)
  1. S IBDA=$O(IBDA(0)),IBIFN=+$G(IBDA(+IBDA)),IB364=$P($G(IBDA(+IBDA)),U,2)
  1. I 'IBIFN G CPYCLNQ
  1. D COPYCLON^IBCECOB2(IBIFN,IB364,.IBDA) ;Cancel/copy bill
  1. I '$G(IBNIEN) D PAUSE^VALM1 G CPYCLNQ
  1. S IBIFN=IBNIEN
  1. S DIE="^DGCR(399,",DA=IBIFN,DR="[IB STATUS]",IBYY="@902" D ^DIE K DIE,DA,DR,IBNIEN ;Authorize bill quietly
  1. W !,"Authorizing bill..."
  1. D ARONLY^IBCB1(IBIFN) ;Pass to AR as new bill
  1. D PAUSE^VALM1
  1. ;
  1. CPYCLNQ ;
  1. S VALMBCK="R"
  1. K IBCEAUTO
  1. Q
  1. ;
  1. SEL(IBDA,ONE) ;Select entry from List Manager
  1. ;D FULL^VALM1
  1. D EN^VALM2($G(XQORNOD(0)),$S('$G(ONE):"",1:"S"))
  1. S IBDA=0 F S IBDA=$O(VALMY(IBDA)) Q:'IBDA S IBDA(IBDA)=$P($G(^TMP("IBCERP61",$J,IBDA)),U,2,3)
  1. Q