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

IB20PT61.m

Go to the documentation of this file.
  1. IB20PT61 ;ALB/AAS - Insurance post init stuff ; 2/22/93
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;
  1. 399 ; -- create new AE x-ref of file 399
  1. W !!!,"<<< Bill/Claims file Conversion."
  1. W !," Cross-reference Bill/Claims file by Primary Insurer"
  1. S ZTRTN="DQ399^IB20PT61",ZTDESC="IB - v2 BILL/CLAIMS FILE POST INIT UPDATE",ZTIO="" S:$G(IBFORCE) ZTDTH=$$15^IB20PT6
  1. W ! D ^%ZTLOAD I '$D(ZTSK) D Q:'IBOK
  1. .D MANUAL
  1. .I 'IBOK,$P($G(^IBE(350.9,1,3)),"^",19)="" W !!,"You must run the v2.0 post init routine IB20PT6 before allowing users to",!,"print or modify Bill/Claims entries."
  1. I $D(ZTSK) W !," Bill/Claims file update queued as task ",ZTSK K ZTSK Q
  1. ;
  1. N IBCNT,IBCNTD
  1. DQ399 D ^IB20PT62,BULL2 ;transfer/convert bill claims file
  1. Q
  1. ;
  1. BULL1 ; -- finish bulletin for patient file conversion
  1. S XMSUB="IB v2 PATIENT File Conversion Complete"
  1. S IBT(1)=" The Integrated Billing Version 2.0 conversion of the patient file"
  1. S IBT(2)=" completed.",IBT(2.5)=""
  1. S IBT(3)=" Started on: "_$$DAT1^IBOUTL(IBSPDT,"2P")
  1. S IBT(4)=" Completed on: "_$$DAT1^IBOUTL(IBEPDT,"2P")
  1. S IBT(5)=""
  1. S IBT(6)=" Total Patients Checked: "_$G(IBCNT)
  1. S IBT(7)=" Total Patients with Insurance Entries: "_$G(IBCNTI)
  1. S IBT(8)=" Total number of insurance policies: "_$G(IBCNTPP)
  1. S IBT(9)=" Total number of Group Plans created: "_$G(IBCNTP)
  1. D SEND^IBTRKR31
  1. K IBT,XMSUB
  1. Q
  1. ;
  1. BULL2 ; -- finish bulletin for bill/claims conversion
  1. S XMSUB="IB v2 BILL/CLAIMS File Conversion Complete"
  1. S IBT(1)=" The Integrated Billing Version 2.0 conversion of the BILL/CLAIMS file"
  1. S IBT(2)=" completed."
  1. S IBT(2.1)=""
  1. S IBT(3)=" Started on: "_$$DAT1^IBOUTL(IBSCDT,"2P")
  1. S IBT(4)=" Completed on: "_$$DAT1^IBOUTL(IBECDT,"2P")
  1. S IBT(5)=""
  1. S IBT(6)=" Total Entries in Bill/Claims file: "_$G(IBCNT)
  1. S IBT(7)=" Total Bill/Claims Diagnosis Entries Created: "_$G(IBCNTD)
  1. D SEND^IBTRKR31
  1. K IBT,XMSUB
  1. Q
  1. ;
  1. BULL3 ; -- finish bulletin for loading current inpatients
  1. S XMSUB="IB v2 Claims Tracking Update Complete"
  1. S IBT(1)=" The Integrated Billing Version 2.0 initial loading of current inpatients"
  1. S IBT(2)=" into the claims tracking module has completed.",IBT(2.5)=""
  1. S IBT(2.6)=" "_IBCNT_" Patients added to the Claims Tracking Module"
  1. S IBT(2.7)=""
  1. S IBT(3)=" Started on: "_$$DAT1^IBOUTL(IBSTDT,"2P")
  1. S IBT(4)=" Completed on: "_$$DAT1^IBOUTL(IBETDT,"2P")
  1. D SEND^IBTRKR31
  1. K IBT,XMSUB
  1. Q
  1. ;
  1. MANUAL ; -- ask if want to run manually
  1. N DIR,DIRUT,DUOUT,X,Y
  1. S IBOK=1
  1. W !!,"You did not select to QUEUE this portion of the IB v2 conversion",!
  1. S DIR(0)="Y",DIR("A")="OKAY TO RUN NOW"
  1. S DIR("?")="Enter 'YES' if you want to run this now directly on this device or 'NO' if you do not wish to run this part of the conversion now."
  1. D ^DIR
  1. S IBOK=+$G(Y)
  1. Q