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

IBYPPG.m

Go to the documentation of this file.
  1. IBYPPG ;ALB/ARH - IB*2*148 POST INIT: REASONABLE CHARGES V1.2 ; 05/17/01
  1. ;;2.0;INTEGRATED BILLING;**148**;21-MAR-94
  1. ;
  1. Q
  1. POST ;
  1. N IBA
  1. S IBA(1)="",IBA(2)=" IB*2*148 Post-Install .....",IBA(3)="" D MES^XPDUTL(.IBA) K IBA
  1. ;
  1. ;
  1. D CPTINA ; inactivate charges for inactive CPT codes
  1. D CSEMPTY ; delete Charge Sets with no charges assigned
  1. D ERRORCD ; add error code IB320 to IB Error file (#350.8)
  1. ;
  1. S IBA(1)="",IBA(2)=" IB*2*148 Post-Install Complete",IBA(3)="" D MES^XPDUTL(.IBA) K IBA
  1. Q
  1. ;
  1. ;
  1. CPTINA ; inactivate charges for Inactive CPTs
  1. N IBA,IBCNT S IBCNT=0
  1. S IBA(1)="",IBA(2)=" >> Inactivating Charges for Inactive CPT codes, Please Wait..." D MES^XPDUTL(.IBA) K IBA
  1. ;
  1. S IBCNT=$$INACTCPT^IBCREC(0) ; inactivate charges for inactive CPT codes
  1. ;
  1. S IBA(1)=" Done. "_IBCNT_" Charges Inactivated." D MES^XPDUTL(.IBA) K IBA
  1. Q
  1. ;
  1. CSEMPTY ; delete Charges Sets with no Charges assigned
  1. N IBA,IBCNT S IBCNT=0
  1. S IBA(1)="",IBA(2)=" >> Removing Charges Sets that have no Charges Assigned..." D MES^XPDUTL(.IBA) K IBA
  1. ;
  1. S IBCNT=$$CSEMPTY^IBCRED() ; delete Charge Sets that have no charges
  1. ;
  1. S IBA(1)=" Done. "_IBCNT_" Charges Sets Removed." D MES^XPDUTL(.IBA) K IBA
  1. Q
  1. ;
  1. ERRORCD ; add a new Error Code to #350.8
  1. N IBA,IBCODE,IBEMES,IBFN,DD,DO,DLAYGO,DIC,DIE,DA,DR,X,Y
  1. ;
  1. S IBCODE="IB320",IBEMES="Clinic Required for Surgical Procedures (10000-69999, 93501-93533)"
  1. ;
  1. I $O(^IBE(350.8,"AC",IBCODE,0)) Q
  1. ;
  1. K DD,DO S DLAYGO=350.8,DIC="^IBE(350.8,",DIC(0)="L",X=IBCODE D FILE^DICN K DIC I Y<1 K X,Y Q
  1. S IBFN=+Y
  1. ;
  1. S DR=".02///"_IBEMES_";.03///"_IBCODE_";.04////1;.05////1"
  1. S DIE="^IBE(350.8,",DA=+IBFN D ^DIE K DIE,DA,DR,X,Y
  1. ;
  1. S IBA(1)="",IBA(2)=" >> Error Code IB320 Added to IB Error File (#350.8) " D MES^XPDUTL(.IBA) K IBA
  1. Q