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

IBINUT1.m

Go to the documentation of this file.
  1. IBINUT1 ;YMG/EDE - MEGABUS Act (Indian Self-Identification) Utilities ;NOV 23 2021
  1. ;;2.0;INTEGRATED BILLING;**716,782**;21-MAR-94;Build 9
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. ;
  1. INDCHK(IBTO,IBDFN) ; check if bill is covered by Indian Attestation exemption
  1. ;
  1. ; IBTO - "Bill To" date (350/.15)
  1. ; IBDFN - patient's DFN
  1. ;
  1. ; returns 1 if bill is covered by Indian Attestation exemption, 0 otherwise
  1. ;
  1. N IBINDATA
  1. S IBINDATA=$$INDGET(IBDFN)
  1. I $P(IBINDATA,U)'="Y" Q 0 ; self-identification flag is not set
  1. Q $$INDCHKDT(+IBTO,+$P(IBINDATA,U,2))
  1. ;
  1. INDCHKDT(IBTO,IBINSTDT) ; check if bill timeframe is covered by Indian Attestation exemption
  1. ;
  1. ; IBTO - "Bill To" date (350/.15)
  1. ; IBINSTDT - indian self-identification start date (2/.572)
  1. ;
  1. ; returns 1 if bill timeframe is covered by Indian Attestation exemption, 0 otherwise
  1. ;
  1. N RES
  1. S RES=0
  1. I $G(IBTO)>0,$G(IBINSTDT)>0,IBTO'<3220105,IBTO'<IBINSTDT S RES=1
  1. Q RES
  1. ;
  1. INDGET(DFN) ; get Indian Attestation data
  1. ;
  1. ; DFN - patient's DFN
  1. ;
  1. ; returns indian self-identification flag (2/.571) ^ indian self-identification start date (2/.572) ^ indian self-identification end date (2/.574)
  1. ;
  1. N RES,VADEMO
  1. S RES="^^"
  1. I +$G(DFN)>0 D DEMUPD^VADPT S $P(RES,U)=$G(VADEMO(15,1)),$P(RES,U,2)=$G(VADEMO(15,2)),$P(RES,U,3)=$G(VADEMO(15,4)) ; IB*2.0*782
  1. Q RES