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

IB20P142.m

Go to the documentation of this file.
  1. IB20P142 ;ALB/BGA - IB V2.0 POST INIT,ADD/EDIT ENTRIES #351.51 ; 3-8-2001
  1. ;;2.0;INTEGRATED BILLING;**142**;21-MAR-94
  1. ;
  1. ; Post Init Description: This init will UPDATE two existing entries
  1. ; in file #351.51 and also add one new entry to the same file.
  1. ; file 399.1. This post init is associated with path *142*.
  1. ;
  1. ; Control Logic
  1. D NEWAT ; Added new entry to #351.51
  1. D EDIT ; Edit entries in #351.51
  1. D LAST ; End Task
  1. Q
  1. ;
  1. ;
  1. NEWAT ; Add new IB CHAMPUS Error Codes into file #351.51
  1. D BMES^XPDUTL(">>>Adding new IB CHAMPUS error codes into file #351.51")
  1. F IBI=1:1 S IBCR=$P($T(NEW+IBI),";;",2) Q:IBCR="QUIT" D
  1. .S (X,IBSYS)=$P(IBCR,"^"),IBCODE=$P(IBCR,"^",2)
  1. .I $D(^IBE(351.51,"AD",IBSYS,IBCODE)) D Q
  1. . . D BMES^XPDUTL(" >>Error Code '"_IBCODE_"' is already on file for the "_IBSYS_" system.")
  1. .K DD,DO S DIC="^IBE(351.51,",DIC(0)="" D FILE^DICN Q:Y<0
  1. .S ^(0)=^IBE(351.51,+Y,0)_"^"_$P(IBCR,U,2,3) S DIK=DIC,DA=+Y D IX1^DIK
  1. .D BMES^XPDUTL(" >>Error Code '"_IBCODE_"' for the '"_IBSYS_"' System has been filed.")
  1. K DA,DIC,DIE,DIK,DR,IBI,IBCR,IBCODE,IBSYS,X,Y,Z
  1. Q
  1. ;
  1. NEW ; Action Types to add into file #351.51
  1. ;;UNIVERSAL^M6^Out of Region
  1. ;;QUIT
  1. ;
  1. EDIT ; Edit entries in IB CHAMPUS Error Codes
  1. N I,IBC51,IBIT,IBROW,IBSYSE,IBUP
  1. D BMES^XPDUTL(">>>Searching for IB CHAMPUS ERROR Codes to UPDATE")
  1. F IBIT=1:1 S IBROW=$P($T(MOD+IBIT),";;",2) Q:IBROW="QUIT" D
  1. . S IBC51=$P(IBROW,U,2),IBSYSE=$P(IBROW,U)
  1. . I (IBC51="O5")!(IBC51="O6") D
  1. . . I $D(^IBE(351.51,"AD",IBSYSE,IBC51)) D
  1. . . . S DA=$O(^IBE(351.51,"AD",IBSYSE,IBC51,0)) Q:'DA
  1. . . . S IBUP="0"_$E(IBC51,2),DIE="^IBE(351.51,",DR=".02////"_IBUP
  1. . . . D ^DIE K DIE,DA,DR
  1. . . . D BMES^XPDUTL(" >> "_IBSYSE_" Error Code '"_IBC51_"' has been UPDATED to '"_IBUP_"'")
  1. ;
  1. I '$D(IBUP) D BMES^XPDUTL(" >>Codes are CORRECT no MODIFICATIONS required.")
  1. Q
  1. ;
  1. MOD ; Edit entries that are currently incorrect in file #351.51
  1. ;;MLINK^O5^Bad Invalid Data bits Setting
  1. ;;UNIVERSAL^O6^Out of Region
  1. ;;QUIT
  1. ;
  1. LAST ;
  1. D BMES^XPDUTL(">>>ALL POST-INIT Activities have been completed. <<<")
  1. Q