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

IBACVA2.m

Go to the documentation of this file.
  1. IBACVA2 ;ALB/CPM - BULLETINS FOR CHAMPVA BILLING ; 29-JUL-93
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ERRMSG(IBIND) ; Process CHAMPVA Error Messages.
  1. ; Input: IBIND -- 1=>billing 0=>cancelling
  1. K IBT S IBPT=$$PT^IBEFUNC(DFN)
  1. S XMSUB=$E($P(IBPT,"^"),1,14)_" "_$P(IBPT,"^",3)_" - ERROR ENCOUNTERED"
  1. S IBT(1)="An error occurred while "_$S($G(IBIND):"billing",1:"cancelling")_" the CHAMPVA inpatient subsistence charge"
  1. S IBT(2)=$S($G(IBIND):"to",1:"for")_" the following patient:"
  1. S IBT(3)=" " S IBC=3
  1. S IBDUZ=DUZ D PAT^IBAERR1
  1. S Y=+DGPMA D DD^%DT
  1. S IBC=IBC+1,IBT(IBC)="Disc Date: "_Y
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. S IBC=IBC+1,IBT(IBC)="The following error was encountered:"
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. D ERR^IBAERR1
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. S IBC=IBC+1,IBT(IBC)="Please review the circumstances surrounding this error and use the"
  1. S IBC=IBC+1,IBT(IBC)="Cancel/Edit/Add Patient Charges' option to bill or cancel any necessary"
  1. S IBC=IBC+1,IBT(IBC)="charges."
  1. D SEND
  1. Q
  1. ;
  1. ADM ; Send a bulletin when CHAMPVA patients are admitted.
  1. K IBT S IBPT=$$PT^IBEFUNC(DFN)
  1. S XMSUB=$E($P(IBPT,"^"),1,14)_" "_$P(IBPT,"^",3)_" - CHAMPVA PATIENT"
  1. S IBT(1)="The following CHAMPVA patient has been admitted:"
  1. S IBT(2)=" ",IBC=2
  1. S IBDUZ=DUZ D PAT^IBAERR1
  1. S Y=+DGPMA D DD^%DT
  1. S IBC=IBC+1,IBT(IBC)=" Adm Date: "_Y
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. S IBC=IBC+1,IBT(IBC)="This patient will be automatically billed the CHAMPVA inpatient"
  1. S IBC=IBC+1,IBT(IBC)="subsistence charge when discharged."
  1. D SEND
  1. Q
  1. ;
  1. WARN(IBB,IBE) ; Send bulletins when discharges are edited or deleted.
  1. ; Input: IBB -- Discharge date before edit
  1. ; IBE -- Discharge date after edit
  1. K IBT S IBPT=$$PT^IBEFUNC(DFN)
  1. S XMSUB=$E($P(IBPT,"^"),1,14)_" "_$P(IBPT,"^",3)_" - DISCHARGE CHANGED"
  1. S IBT(1)="A discharge was "_$S($G(IBB):"edited",1:"deleted")_" for the following CHAMPVA patient:"
  1. S IBT(2)=" " S IBC=2
  1. S IBDUZ=DUZ D PAT^IBAERR1
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. I $G(IBB) D
  1. .S Y=IBB D DD^%DT S IBC=IBC+1,IBT(IBC)="Prev Discharge Date: "_Y
  1. .S Y=IBE D DD^%DT S IBC=IBC+1,IBT(IBC)=" New Discharge Date: "_Y
  1. .S IBC=IBC+1,IBT(IBC)=" "
  1. S IBC=IBC+1,IBT(IBC)="Please review the circumstances surrounding these movement changes,"
  1. S IBC=IBC+1,IBT(IBC)="and use the 'Cancel/Edit/Add Patient Charges' option to bill or cancel"
  1. S IBC=IBC+1,IBT(IBC)="any necessary charges."
  1. D SEND
  1. Q
  1. ;
  1. SEND ; Send bulletin to recipients of the Means Test billing mailgroup.
  1. D MAIL^IBAERR1
  1. K IBC,IBT,IBPT,XMSUB,XMY,XMTEXT,XMDUZ
  1. Q
  1. ;
  1. ON() ; Is the CHAMPVA billing module fully installed?
  1. N X S X=+$O(^IBE(350.1,"E","CHAMPVA SUBSISTENCE",0))
  1. Q +$P($G(^IBE(350.1,X,0)),"^",3)