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

IBAMTBU1.m

Go to the documentation of this file.
  1. IBAMTBU1 ;ALB/CPM - MEANS TEST BILLING BULLETINS (CON'T.) ; 09-APR-92
  1. ;;2.0;INTEGRATED BILLING;**153**;21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. OE ; Send bulletin when a Means Test copay vet, admitted for Observation
  1. ; and Examination, is discharged, but has previously been billed
  1. ; copayment and per diem charges.
  1. ; Input: DGPMA, DFN, DUZ
  1. ;
  1. K IBT
  1. S IBPT=$$PT^IBEFUNC(DFN)
  1. S XMSUB=$E($P(IBPT,"^"),1,14)_" "_$P(IBPT,"^",3)_" - O&E DISCHARGE"
  1. S IBT(1)="The following patient, admitted for Observation & Examination,"
  1. S IBT(2)="has been discharged:"
  1. S IBT(3)=" ",IBC=3
  1. S IBDUZ=DUZ D PAT^IBAERR1
  1. S IBC=IBC+1,IBT(IBC)=" "
  1. S Y=$P(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)="This patient has already been charged Means Test copayment and per diem"
  1. S IBC=IBC+1,IBT(IBC)="charges. The Integrated Billing 'event' action has automatically been"
  1. S IBC=IBC+1,IBT(IBC)="closed. All Means Test charges for this admission must be manually"
  1. S IBC=IBC+1,IBT(IBC)="cancelled, and the patient's billing clock must be manually adjusted."
  1. G SEND^IBAMTBU ; deliver message and quit.
  1. ;
  1. ;
  1. DISP ; Build before/after values, instructions for movement bulletins.
  1. I $D(IBVAL(1)) D
  1. .S IBC=IBC+1,IBT(IBC)="*** The Facility Treating Specialty was changed ***"
  1. .S IBC=IBC+1,IBT(IBC)=" Old Value: "_$S(IBVAL(1):$P($G(^DIC(45.7,+IBVAL(1),0)),"^"),1:" No value")
  1. .I $P(IBVAL(1),"^",2) S IBC=IBC+1,IBT(IBC)=$J("",12)_"(Billable Bedsection: "_$S($D(^DGCR(399.1,+$P(IBVAL(1),"^",2),0)):$P(^(0),"^"),1:"Unknown")_")"
  1. .S IBC=IBC+1,IBT(IBC)=" New Value: "_$S($P(IBVAL(1),"^",3):$P($G(^DIC(45.7,+$P(IBVAL(1),"^",3),0)),"^"),1:" No value")
  1. .I $P(IBVAL(1),"^",4) S IBC=IBC+1,IBT(IBC)=$J("",12)_"(Billable Bedsection: "_$S($D(^DGCR(399.1,+$P(IBVAL(1),"^",4),0)):$P(^(0),"^"),1:"Unknown")_")"
  1. .S IBC=IBC+1,IBT(IBC)=" "
  1. I $D(IBVAL(2)) D
  1. .S IBC=IBC+1,IBT(IBC)="*** The "_$S(IBMTYP=6:"Treating Specialty",1:"Movement")_" Date was changed ***"
  1. .S IBC=IBC+1,IBT(IBC)=" Old Value: "_$S(IBVAL(2):$$DAT2^IBOUTL(+IBVAL(2)),1:" No Value")
  1. .S IBC=IBC+1,IBT(IBC)=" New Value: "_$S($P(IBVAL(2),"^",2):$$DAT2^IBOUTL($P(IBVAL(2),"^",2)),1:" No Value")
  1. .S IBC=IBC+1,IBT(IBC)=" "
  1. ;
  1. ; - set up instructions
  1. S IBC=IBC+1,IBT(IBC)="Means Test charges have been billed for this episode of care."
  1. I IBMTYP=3,DGPMA="" S IBC=IBC+1,IBT(IBC)="Please review these charges and use the Cancel/Edit/Add Patient Charges option",IBC=IBC+1,IBT(IBC)="to re-open the event record, if necessary, so that billing may resume." Q
  1. S IBC=IBC+1,IBT(IBC)="Please review these charges and"_$S(IBMTYP=1&(DGPMA=""):"",1:" edit or")_" cancel any charges if necessary."
  1. Q