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

IBARXEVT.m

Go to the documentation of this file.
  1. IBARXEVT ;ALB/AAS - IB EXEMPTION EVENT DRIVER ; 12-DEC-92
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. % ; -- Invokes items on the IB EXEMPTION EVENT protocol menu
  1. ; Input =: dfn = patient file ien
  1. ; ibaction = what is happening, add, chg, del
  1. ; ibevt = status^status text^reason code^date (from rxst^ibarxeu)
  1. ; ibevtp = exemption record zeroth node prior to change
  1. ; ibevta = exemption record zeroth node after change
  1. ;
  1. K DTOUT,DIROUT
  1. ;S X=$O(^ORD(101,"B","IB EXEMPTION EVENTS",0))_";ORD(101," D EN1^XQOR:X
  1. S X="IB EXEMPTION EVENTS",DIC=101 D EN1^XQOR
  1. K X,DIC
  1. Q
  1. ;
  1. BEFORE ; -- get prior exemption for date
  1. ; input =: dfn = patient file ien
  1. ; ibdt = date of exemption
  1. ;
  1. ; output =: ibevtp = zeroth node of exemtpion before action
  1. ;
  1. N IBLDT
  1. ; -- if forcing a more recent effective date to inactive set
  1. ; before to what is being canceled
  1. S IBLDT=$S($G(IBOLDAUT)?7N:IBOLDAUT,$G(IBFORCE)?7N:IBFORCE,1:IBDT)
  1. S IBEVTP=$$LST^IBARXEU0(DFN,IBLDT) ;I IBDT'=+IBEVTP K IBEVTP
  1. Q
  1. ;
  1. AFTER ; -- get exemption after change
  1. ; input =: dfn = patient file ien
  1. ; ibdt = date of exemption
  1. ;
  1. ; output =: ibevta = zeroth node of exemtpion after action
  1. ;
  1. S IBEVTA=$$LST^IBARXEU0(DFN,IBDT) ;I IBDT'=+IBEVTA K IBEVTA
  1. Q