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

IBY155PO.m

Go to the documentation of this file.
  1. IBY155PO ;ALB/DSM - IB*2*155 POST INIT ROUTINE ;25-MAR-2003
  1. ;;2.0;INTEGRATED BILLING;**155**; 21-MAR-94
  1. ;
  1. POST ; Set up check points for post-init
  1. S %=$$NEWCP^XPDUTL("ADDUSR","ADDUSR^IBY155PO")
  1. ;
  1. ; default a No in the automatic MRA process parameter if undefined
  1. I $P($G(^IBE(350.9,1,8)),U,11)="" D
  1. . NEW D,D0,DA,DI,DIC,DIE,DQ,DR,X,Y
  1. . S DIE=350.9,DA=1,DR="8.11////0" D ^DIE
  1. . Q
  1. ;
  1. ; default a Yes in the allow MRA processing parameter if undefined
  1. I $P($G(^IBE(350.9,1,8)),U,12)="" D
  1. . NEW D,D0,DA,DI,DIC,DIE,DQ,DR,X,Y
  1. . S DIE=350.9,DA=1,DR="8.12////1" D ^DIE
  1. . Q
  1. ;
  1. ; Add new Claims Tracking non-billable reasons (File 356.8)
  1. D
  1. . NEW DA,DIC,DO,X,Y
  1. . F X="MRA REC'D. NO SEC RESP EXISTS","MRA REC'D. SEC NOT BILLED" D
  1. .. I $D(^IBE(356.8,"B",X)) Q ; already on file
  1. .. S DIC="^IBE(356.8,",DIC(0)="F"
  1. .. D FILE^DICN
  1. .. Q
  1. . Q
  1. ;
  1. ; Add a new Bill Form Type for MRA reports
  1. D BFT^IBY155PR
  1. ;
  1. ; Modify the Medicare entries in the IB PROVIDER ID # TYPE file (355.97)
  1. D
  1. . NEW P,NAME,CODE,DA,DIE,DR
  1. . F P="A","B" D
  1. .. S NAME="MEDICARE PART "_P
  1. .. I P="A" S CODE=670899
  1. .. I P="B" S CODE="VA0"_+$$SITE^VASITE()
  1. .. S DA=$O(^IBE(355.97,"B",NAME,"")) Q:'DA
  1. .. S DIE=355.97,DR=".03///1C;.04///"_CODE
  1. .. D ^DIE
  1. .. Q
  1. . Q
  1. ;
  1. ; Update Short Description field for IEN #964 in File 364.6
  1. N IBDESC,DA,DIE,DR
  1. D BMES^XPDUTL("Updating Short Description field for IEN #964 in the IB FORM SKELETON DEFINITION FILE")
  1. S IBDESC="COB COVERED DAYS"
  1. S DA=964,DIE="^IBA(364.6,",DR=".1///^S X=IBDESC" D ^DIE
  1. D COMPLETE
  1. ;
  1. ; Delete 3 action protocols from the CSA screen menu protocol
  1. D BMES^XPDUTL("Removing actions from the CSA screen")
  1. D CSA
  1. D COMPLETE
  1. ;
  1. ; Build the new "AMRA" index for file 361.1
  1. D BMES^XPDUTL("A new index will now be created for file 361.1.")
  1. D AMRA,COMPLETE
  1. ;
  1. ; Delete old remark codes fields
  1. D BMES^XPDUTL("Deleting old line item remarks code fields from EOB file 361.1")
  1. S DIK="^DD(361.115,",DA(1)=361.115,DA=3.01 D ^DIK
  1. S DIK="^DD(361.115,",DA(1)=361.115,DA=3.02 D ^DIK
  1. D COMPLETE
  1. ;
  1. ; Check the insurance company file for fake Medicare WNR entries
  1. D BMES^XPDUTL("Scanning Insurance Company File for Medicare WNR Entries ...")
  1. D INSCHK^IBCEMU3,COMPLETE
  1. ;
  1. ;
  1. Q ; IBY155PO
  1. ;
  1. ;
  1. ;
  1. ;
  1. ADDUSR ; Add the Bill Authorizer for acceptable MRA secondary claims
  1. ; to the New Person file (#200)
  1. ;
  1. N DIC,X,Y,DO,DD,DLAYGO
  1. S DIC(0)="",DIC="^VA(200,",X="AUTHORIZER,IB MRA" D ^DIC
  1. I Y>0 D Q
  1. . D BMES^XPDUTL("User, AUTHORIZER,IB MRA, already exists in the NEW PERSON file - not added")
  1. . D COMPLETE
  1. D BMES^XPDUTL("Adding new user, AUTHORIZER,IB MRA, to the NEW PERSON file")
  1. S DLAYGO=200,DIC(0)="L",DIC="^VA(200,",DIC("DR")="1////MRA",X="AUTHORIZER,IB MRA" D FILE^DICN K DIC,DO,DD,DLAYGO
  1. I Y'>0 D
  1. . D BMES^XPDUTL("A problem was encountered trying to add user, AUTHORIZER,IB MRA")
  1. . D BMES^XPDUTL("The entry must be added manually to the NEW PERSON file")
  1. E D
  1. .D BMES^XPDUTL("User, AUTHORIZER,IB MRA, was successfully added to the NEW PERSON file")
  1. D COMPLETE
  1. Q
  1. ;
  1. INCLUDE(Y) ; Code executed by build to determine which entries from file 364.7 should be included
  1. NEW IBOUT,LINE S IBOUT=0
  1. F LINE=2:1:5 I $P($T(ENT7+LINE),";;",2)[(U_+Y_U) S IBOUT=1 Q
  1. INCX ;
  1. Q IBOUT
  1. ;
  1. ENT7 ; changed and new entries for file 364.7 to be included in build
  1. ;
  1. ;;^115^176^181^182^188^268^270^275^293^296^297^305^306^308^309^310^322^344^346^353^493^503^504^
  1. ;;^623^630^631^633^635^717^728^729^736^809^814^815^816^822^823^824^832^839^842^846^851^
  1. ;;^852^853^854^855^856^857^858^859^860^861^862^864^865^870^871^872^875^876^882^883^886^890^947^951^956^957^
  1. ;;^958^959^960^961^962^963^964^965^966^967^975^978^980^982^983^985^1013^1014^
  1. Q
  1. ENT6 ; new entry for file 364.6
  1. ;;^716^964^
  1. Q
  1. ;
  1. CSA ; Remove 3 actions from the CSA screen menu protocol
  1. NEW AP,MPI,DA,DIK,API,APNM
  1. S AP("IBCEM CSA EDIT BILL")=""
  1. S AP("IBCEM CSA COB MANAGEMENT")=""
  1. S AP("IBCEM CSA VIEW EOB")=""
  1. S MPI=$O(^ORD(101,"B","IBCEM CSA MSG MENU","")) ; menu protocol ien
  1. I 'MPI G CSAX
  1. S DA(1)=MPI
  1. S DIK="^ORD(101,"_MPI_",10,"
  1. S DA=0 F S DA=$O(^ORD(101,MPI,10,DA)) Q:'DA D
  1. . S API=+$G(^ORD(101,MPI,10,DA,0))
  1. . S APNM=$P($G(^ORD(101,API,0)),U,1)
  1. . I APNM="" Q
  1. . I '$D(AP(APNM)) Q
  1. . D ^DIK
  1. . Q
  1. CSAX ;
  1. Q
  1. ;
  1. AMRA ; Build the new index
  1. N MRAXR,MRARES,MRAOUT
  1. S MRAXR("FILE")=361.1
  1. S MRAXR("NAME")="AMRA"
  1. S MRAXR("TYPE")="R"
  1. S MRAXR("USE")="S"
  1. S MRAXR("EXECUTION")="R"
  1. S MRAXR("ACTIVITY")="IR"
  1. S MRAXR("SHORT DESCR")="Index by EOB type and Review Status"
  1. S MRAXR("VAL",1)=.04
  1. S MRAXR("VAL",1,"SUBSCRIPT")=1
  1. S MRAXR("VAL",1,"COLLATION")="F"
  1. S MRAXR("VAL",2)=.16
  1. S MRAXR("VAL",2,"SUBSCRIPT")=2
  1. S MRAXR("VAL",2,"COLLATION")="F"
  1. D CREIXN^DDMOD(.MRAXR,"SW",.MRARES,"MRAOUT")
  1. I +$G(MRARES) D MES^XPDUTL("Index successfully created!") G AMRAX
  1. ;
  1. ; Index file failure. Not created for some reason
  1. ;
  1. D MES^XPDUTL("A PROBLEM WAS ENCOUNTERED. INDEX FILE NOT CREATED!!!")
  1. D MES^XPDUTL("SENDING MAILMAN MESSAGE...")
  1. D MES^XPDUTL("PLACING THE MRA MANAGEMENT SCREEN OUT-OF-ORDER.")
  1. NEW XMDUZ,XMSUBJ,XMBODY,MSG,XMTO,DA,DIE,DR
  1. S XMDUZ=DUZ,XMSUBJ="IB*2*155 Error: AMRA index not built",XMBODY="MSG"
  1. S MSG(1)="The new ""AMRA"" index for file 361.1 was not created at"
  1. S MSG(2)=" "
  1. S MSG(3)=" "_$$SITE^VASITE
  1. S MSG(4)=" "
  1. S MSG(5)="The MRA management worklist has been placed out of order."
  1. ;
  1. ; recipients of message
  1. S XMTO(DUZ)=""
  1. S XMTO("eric.gustafson@daou.com")=""
  1. S XMTO("michael.f.pida@us.pwc.com")=""
  1. S XMTO("Janet.Harris2@domain.ext")=""
  1. S XMTO("Loretta.Gulley2@domain.ext")=""
  1. S XMTO("G.PATCHES")=""
  1. S XMTO("G.IB EDI")=""
  1. S XMTO("G.IB EDI SUPERVISOR")=""
  1. ;
  1. D SENDMSG^XMXAPI(XMDUZ,XMSUBJ,XMBODY,.XMTO)
  1. ;
  1. ; place MRA management worklist screen out of order
  1. S DA=$O(^DIC(19,"B","IBCE MRA MANAGEMENT",""))
  1. I DA S DIE=19,DR="2////IB Patch 155 Installation Failure" D ^DIE
  1. ;
  1. AMRAX ;
  1. Q
  1. ;
  1. COMPLETE ;
  1. D BMES^XPDUTL("Step complete.")
  1. Q
  1. ;