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

IBCEOB3.m

Go to the documentation of this file.
  1. IBCEOB3 ;ALB/TMP - 835 EDI EOB BULLETINS ;18-FEB-99
  1. ;;2.0;INTEGRATED BILLING;**137**;21-MAR-94
  1. Q
  1. ;
  1. CHGBULL(IBEOB,IBBULL) ; Send bulletin that name and/or id number for insured
  1. ; has been reported changed via EDI
  1. ; IBEOB = the internal entry # of the entry in file 361.1
  1. ; IBBULL = the flag that has 2 '^' pieces that indicate whether there
  1. ; was a name change ('^' piece 1 = 1) or an ID # change ('^'
  1. ; piece 2 = 1)
  1. ;
  1. N XMBODY,XMSUBJ,XMTO,XMDUZ,IB0,IBT
  1. Q:'$TR($P($G(IBBULL),U,1,2),U)
  1. S IB0=$G(^IBM(361.1,+IBEOB,0))
  1. S XMTO("I:G.IB EDI")="",XMBODY="IBT"
  1. S IBT(1)="An EOB for Bill # "_$$EXTERNAL^DILFD(399,.01,,+IB0)_" (COB sequence: "_$$EXTERNAL^DILFD(361.1,.15,,$P(IB0,U,15))_") has indicated the following changes:"
  1. S IBT(2)=" "
  1. S Z=2
  1. I $P(IBBULL,U) S Z=Z+1,IBT=" INSURED'S NAME CHANGED FROM: "_$P(IBBULL,U,3)_" to "_$P(IBBULL,U,4),Z=Z+1,IBT(Z)=$J("",10)_"(Only the claim has been updated with the new name)"
  1. I $P(IBBULL,U,2) S Z=Z+1,IBT=" INSURED'S ID # CHANGED FROM: "_$P(IBBULL,U,5)_" to "_$P(IBBULL,U,6),Z=Z+1,IBT(Z)=$J("",10)_"(Both claim and policy have been updated with the new id)"
  1. S XMSUBJ="INSURED'S "_$S(IBBULL:"NAME ",1:"")_$S($P(IBBULL,U,2):$S(IBBULL:"AND ",1:"")_"ID ",1:"")_"CHANGE INDICATED ON EOB"
  1. S XMDUZ=""
  1. D SENDMSG^XMXAPI(XMDUZ,XMSUBJ,XMBODY,.XMTO,,.XMZ)
  1. Q
  1. ;
  1. COBBULL(IBEOB) ; Send bulletin that COB may be pending on processing an EOB
  1. ; IBEOB = the internal entry # of the entry in file 361.1
  1. ;
  1. N IBBILL,IB0,IBT,XMBODY,XMSUBJ,XMTO,XMDUZ
  1. S XMTO("I:G.IB EDI")="",XMBODY="IBT"
  1. S IB0=$G(^IBM(361.1,+IBEOB,0))
  1. S IBBILL=$$BN^PRCAFN(+IB0)
  1. Q:IB0=""
  1. S IBT(1)=" BILL NUMBER: "_IBBILL
  1. S IBT(2)="CURRENT COB SEQUENCE: "_$$EXTERNAL^DILFD(361.1,.15,,$P(IB0,U,15))
  1. S IBT(3)=" EOB DATE: "_$$FMTE^XLFDT($P(IB0,U,5),2)
  1. S IBT(4)=" "
  1. S IBT(5)="There is subsequent insurance and the balance on the bill is > 0."
  1. S IBT(6)="COB processing is needed to collect from this bill's next payer."
  1. S XMSUBJ="FINAL EOB RECEIVED-"_IBBILL
  1. S XMDUZ=""
  1. D SENDMSG^XMXAPI(XMDUZ,XMSUBJ,XMBODY,.XMTO,,.XMZ)
  1. Q
  1. ;