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

IBCNEPM2.m

Go to the documentation of this file.
  1. IBCNEPM2 ;DAOU/ESG - PAYER MAINTENANCE ENTRY POINT ;22-JAN-2003
  1. ;;2.0;INTEGRATED BILLING;**184,668**;21-MAR-94;Build 28
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. EN ; -- main entry point
  1. NEW X,Y,DIRUT,DIR,DTOUT,DUOUT,DIROUT
  1. W @IOF,!?22,"Payer Maintenance"
  1. W !!," This option will allow you to manage and maintain the entries"
  1. W !," in the Payer File for those Payers that were added to your system"
  1. W !," that are Nationally Enabled and who have potential missing links"
  1. W !," to active insurance companies."
  1. W !!," Potential missing links is defined as active insurance companies"
  1. W !," whose Professional and/or Institutional ID matches that of the "
  1. W !," Payer and whose pointer to the Payer Table is not populated.",!!!
  1. ;
  1. S DIR(0)="E" D ^DIR
  1. I $G(DUOUT)!$G(DTOUT) Q
  1. ;
  1. W !!?5,"Compiling the list of applicable payers ... "
  1. ;
  1. ; call ListMan Screen
  1. D EN^VALM("IBCNE PAYER MAINT LIST")
  1. KILL ^TMP("IBCNEPM",$J)
  1. EXIT ;
  1. Q
  1. ;
  1. EXPND ; -- expand code for action protocol IBCNE PAYER EXPAND
  1. ;
  1. NEW LINE,X,Y,DIRUT,DIR,DTOUT,DUOUT,DIROUT,PIEN,PAYER,PAYRDATA
  1. NEW PROFID,INSTID
  1. D FULL^VALM1 W !
  1. ;
  1. I 'VALMCNT D G EXPNDXT
  1. . W !!?5,"There are no entries in the list."
  1. . D PAUSE^VALM1
  1. ;
  1. ; Ask the user to choose the payer to expand
  1. S DIR("A")="Select entry to Expand, by line #"
  1. S DIR(0)="NO^1:"_VALMCNT D ^DIR K DIR
  1. I $D(DIRUT) K DIRUT G EXPNDXT
  1. I $G(DUOUT)!($G(DTOUT)) G EXPNDXT
  1. S LINE=+Y
  1. S PIEN=$O(^TMP("IBCNEPM",$J,"IDX",LINE,"")) ; payer ien
  1. I PIEN="" Q
  1. S PAYER=^TMP("IBCNEPM",$J,"IDX",LINE,PIEN) ; payer name
  1. S PAYRDATA=$G(^IBE(365.12,PIEN,0))
  1. S PROFID=$P(PAYRDATA,U,5),INSTID=$P(PAYRDATA,U,6)
  1. D EN^IBCNEPM1(PIEN,PAYER,PROFID,INSTID)
  1. EXPNDXT ;
  1. S VALMBCK="R"
  1. Q
  1. ;