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

IBAUTL10.m

Go to the documentation of this file.
  1. IBAUTL10 ;ALB/MGD - DUPLICATE COPAY TRANSACTION UTILITIES - ACHDT X-REF; Sep 30, 2020@15:16:44
  1. ;;2.0;INTEGRATED BILLING;**630**;21-MAR-94;Build 39
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. ; Set and Kill logic for the ACHDT x-ref in the INTEGRATED BILLING ACTION (#350) file
  1. Q
  1. ;
  1. SACHDT ; Set the ACHDT x-ref
  1. ; X(1) = the IEN of the PATIENT (#.02)
  1. ; X(2) = The EVENT DATE (#.17) if defined
  1. ; X(3) = The DATE BILLED FROM (#.14) if defined
  1. ; DA = the IEN of the charge in the INTEGRATED BILLING ACTION (#350) file
  1. ; If the EVENT DATE is defined, use it for the index
  1. I X(1),X(2) S ^IB("ACHDT",X(1),X(2),DA)="" Q
  1. ; If EVENT DATE is not defined, use the DATE BILLED FROM as the index
  1. I X(1),X(3) S ^IB("ACHDT",X(1),X(3),DA)=""
  1. Q
  1. ;
  1. KACHDT ; Delete the ACHDT x-ref
  1. ; X(1) = the IEN of the PATIENT (#.02)
  1. ; X(2) = The EVENT DATE (#.17) if defined
  1. ; X(3) = The DATE BILLED FROM (#.14) if defined
  1. ; DA = the IEN of the charge in the INTEGRATED BILLING ACTION (#350) file
  1. ; If the EVENT DATE is defined, use it for the index
  1. I X(1),X(2) K ^IB("ACHDT",X(1),X(2),DA) Q
  1. ; If EVENT DATE is not defined, use the DATE BILLED FROM as the index
  1. I X(1),X(3) K ^IB("ACHDT",X(1),X(3),DA)
  1. Q