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

IB20P449.m

Go to the documentation of this file.
  1. IB20P449 ;ELZ/OAK - POST INIT FOR PATCH;02/22/2011
  1. ;;2.0;INTEGRATED BILLING;**449**;21-MAR-94;Build 15
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ;
  1. ENV ;
  1. ; setup so no queue of install
  1. S XPDNOQUE=1
  1. Q
  1. ;
  1. POST ; post init entry point
  1. ;
  1. D MES^XPDUTL(" Starting post-init for IB*2.0*449")
  1. ;
  1. D 3542
  1. D 3503
  1. D REPORT
  1. ;
  1. D MES^XPDUTL(" Finished post-init for IB*2.0*449")
  1. ;
  1. Q
  1. ;
  1. 3542 ; add entry to exemption file 354.2 if not there
  1. I $O(^IBE(354.2,"B","CATASTROPHICALLY DISABLED",0)) D Q
  1. . D MES^XPDUTL(" - CATASTROPHICALLY DISABLED already exists, nothing to add to 354.2.")
  1. ;
  1. N DO,X,Y,DIC
  1. ;
  1. S X="CATASTROPHICALLY DISABLED",DIC="^IBE(354.2,",DIC(0)=""
  1. S DIC("DR")=".02///Patient is Catastrophically Disabled;.03///1;.04///1;.05///100"
  1. D FILE^DICN
  1. ;
  1. D MES^XPDUTL($S(Y>1:" - CATASTROPHICALLY DISABLED Exemption Reason (#354.2) added.",1:"*** ERROR: COULD NOT CREATE NEW CD ENTRY IN 354.2 ***"))
  1. ;
  1. Q
  1. ;
  1. 3503 ; add entry to Charge Removal Reason file if not there
  1. ;
  1. N IBX,DO,DIC,X,Y
  1. ;
  1. D MES^XPDUTL(" - Adding entry to Charge Removal Reason (#350.3) file.")
  1. S IBX="CATASTROPHICALLY DISABLED^CD" D
  1. . K DO S DIC="^IBE(350.3,",DIC(0)="",X=$P(IBX,"^")
  1. . S DIC("DR")=".02///^S X=$P(IBX,U,2);.03///3"
  1. . I $O(^IBE(350.3,"B",X,0)) D MES^XPDUTL(" - "_X_" already exists.") Q
  1. . D FILE^DICN
  1. . D MES^XPDUTL($S(Y>1:" - "_$P(IBX,"^")_" entry added.",1:"*** ERROR: COULD NOT CREATE NEW "_$P(IBX,"^",2)_" ENTRY IN 350.3 ***"))
  1. ;
  1. D MES^XPDUTL(" - Done adding entry in Charge Removal Reason (#350.3) file.")
  1. Q
  1. ;
  1. REPORT ; - this will produce a report of patient's with charges that are CD.
  1. ;
  1. N POP,%ZIS,ZTRTN,ZTDESC,ZTSK,IBA,IBEDT,IBBDT,ZTSAVE
  1. S IBBDT=3100504,IBEDT=DT
  1. S IBA(1)="Select the device for the Catastrophically Disabled Charge report. It"
  1. S IBA(2)="should be queued to a printer off hours as it can take some time to run"
  1. S IBA(3)="with at least a margin of 132 columns."
  1. D MES^XPDUTL(.IBA)
  1. S %ZIS="QM" D ^%ZIS Q:POP
  1. I $D(IO("Q")) D Q
  1. .S ZTRTN="DQ^IBOCDRPT",ZTDESC="Catastrophically Disabled Copay Report"
  1. .S (ZTSAVE("IBEDT"),ZTSAVE("IBBDT"))=""
  1. .D ^%ZTLOAD D HOME^%ZIS K IO("Q")
  1. .D MES^XPDUTL("Catastrophically Disabled Copay Report queued #"_ZTSK)
  1. D DQ^IBOCDRPT
  1. Q