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

IBNCPDPR.m

Go to the documentation of this file.
  1. IBNCPDPR ;WOIFO/SS - ECME RELEASE CHARGES ON HOLD ;3/6/08 16:23
  1. ;;2.0;INTEGRATED BILLING;**276,347,384,452**;21-MAR-94;Build 26
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. Q
  1. ;==========
  1. ;version of "IB MT RELEASE CHARGES" option (^IBRREL) without PATIENT prompt
  1. ;(patient is selected from the User Screen)
  1. ;designed to use from ECME User Screen (IA #) in order to access Release
  1. ;copay functionality from ECME
  1. ;
  1. RELH(DFN,IBRXIEN,IBREFL,IBMODE) ; entry point
  1. N IBNUM,IBPT
  1. N IBNCPDPR,IBNCPDPRDEF S IBNCPDPR=1
  1. K IBA,PRCABN,BPX,IBI,IBCNT,IB350
  1. S IB350=0
  1. S IBI=0 F IBNUM=1:1 S IBI=$O(^IB("AH",DFN,IBI)) Q:'IBI S IBA(IBNUM)=IBI
  1. I '$D(IBA) W !!,"This patient does not have any charges 'on hold.'",! D PAUSE^VALM1 G RELHX
  1. ;
  1. S IBPT=$$PT^IBEFUNC(DFN) W @IOF,$P(IBPT,"^")," Pt ID: ",$P(IBPT,"^",2),! S I="",$P(I,"-",80)="" W I K I
  1. ;if the user selected specific RX/refill
  1. I IBMODE="C" D S:IB350>0 IBNCPDPRDEF=$P(IB350,U,2) ; default response# for list
  1. . ;find item that matches selected RX/refill
  1. . S IBCNT=0
  1. . F S IBCNT=$O(IBA(IBCNT)) Q:+IBCNT=0 D Q:IB350>0
  1. . . S BPX=$P($G(^IB(IBA(IBCNT),0)),U,4)
  1. . . I $P(BPX,":")'=52 Q ;if not RX type
  1. . . I $P($P(BPX,";"),":",2)'=IBRXIEN Q ;if not given RX#
  1. . . I IBREFL>0 I $P($P(BPX,";",2),":",2)'=IBREFL Q ;if not given refill #
  1. . . S IB350=IBA(IBCNT)_"^"_IBCNT
  1. ;
  1. I IBMODE="C",IB350=0 D G RELHX
  1. . W !!,"There is no copay charge 'on hold' for this Rx.",!
  1. . D PAUSE^VALM1
  1. . Q
  1. ;
  1. ; call the routine to display and release charges on hold
  1. D RESUME^IBRREL
  1. ;
  1. RELHX ;
  1. Q
  1. ;