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

IBCEMVU.m

Go to the documentation of this file.
  1. IBCEMVU ;DAOU/ESG - STAND-ALONE VIEW MRA EOB ;18-APR-2003
  1. ;;2.0;INTEGRATED BILLING;**155**;21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. EN ; Entry point
  1. NEW DA,DIC,DILN,DISYS,X,Y,DTOUT,DUOUT,IBIFN,IBEOBIFN
  1. LOOP ;
  1. K IBIFN
  1. D INIT
  1. W !
  1. S DIC="^IBM(361.1,"
  1. S DIC(0)="AEMQ"
  1. S DIC("S")="I $P(^(0),U,4)=1" ; MRA EOB type
  1. S DIC("W")="D EOBLST^IBCEMU1(Y)" ; modify generic lister
  1. D ^DIC
  1. I Y=-1!$D(DTOUT)!$D(DUOUT) G EX
  1. S IBIFN=+$P(Y,U,2)
  1. I IBIFN D VIEWEOB(IBIFN,+$P(Y,U,1))
  1. I $$MRACNT^IBCEMU1(IBIFN)'>1 G LOOP
  1. ;
  1. ; At this point, we know the selected bill has multiple MRA's on file.
  1. ; Display the multiple MRA lister and let the user choose again
  1. ML1 ;
  1. D INIT
  1. S IBEOBIFN=$$SEL^IBCEMU1(IBIFN,1)
  1. I 'IBEOBIFN G LOOP
  1. D VIEWEOB(IBIFN,IBEOBIFN)
  1. G ML1
  1. ;
  1. EX ; Exit point
  1. Q
  1. ;
  1. INIT ; clear screen, intro text
  1. W @IOF
  1. W !?33,"View MRA EOB's"
  1. W !!?1,"This option will allow you to select and view Medicare Remittance Advice (MRA)"
  1. W !?1,"Explanations of Benefits (EOB). Only Medicare EOB's are displayed here."
  1. INITX ;
  1. Q
  1. ;
  1. VIEWEOB(IBIFN,IBEOBIFN) ; This procedure is responsible for
  1. ; invoking the ListManager list for viewing an EOB.
  1. ; IBIFN is the internal bill# (required)
  1. ; IBEOBIFN is the ien to file 361.1 if known (optional)
  1. ;
  1. NEW COL,CTRLCOL,FINISH,IB,IBCNT,IBONE,POP,VALMBCK,VALMY,X,Y,Z
  1. D EN^VALM("IBCEM VIEW EOB")
  1. VIEWX ;
  1. Q
  1. ;
  1. SCR(IBIFN) ; ?MRA action from the IB Bill Enter/Edit screens
  1. NEW DIR,X,Y,DTOUT,DUOUT,DIRUT,DIROUT,CNT,IBFASTXT,IBEOBIFN
  1. I '$D(IOUON)!'$D(IORVON) D ENS^%ZISS
  1. D SCHD
  1. S CNT=$$MRACNT^IBCEMU1(IBIFN)
  1. I 'CNT D G SCRX
  1. . W !!!?8,"There are no MRA EOB's on file for this bill."
  1. . D EOP
  1. . Q
  1. ;
  1. I CNT=1 D VIEWEOB(IBIFN) G SCRX ; only one MRA
  1. ;
  1. SCLOOP ; Multiple MRA's on file. Call the MRA/EOB lister.
  1. ;
  1. D SCHD
  1. S IBEOBIFN=$$SEL^IBCEMU1(IBIFN,1)
  1. I 'IBEOBIFN G SCRX
  1. D VIEWEOB(IBIFN,IBEOBIFN)
  1. G SCLOOP
  1. ;
  1. SCRX ;
  1. Q
  1. ;
  1. SCHD ; screen header info
  1. W @IOF
  1. W !!?24,"View Medicare Remittance Advice"
  1. W !?28,"Explanation of Benefits"
  1. SCHDX ;
  1. Q
  1. ;
  1. EOP ; End of page
  1. W !! S DIR("A")=" Press RETURN to continue",DIR(0)="E" D ^DIR K DIR
  1. EOPX ;
  1. Q
  1. ;