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

IBY797PO.m

Go to the documentation of this file.
  1. IBY797PO ;YMG/EDE - IB*2.0*797 POST INSTALL;FEB 16 2024
  1. ;;2.0;Integrated Billing;**797**;21-MAR-94;Build 2
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. ;
  1. EN ; entry point
  1. D BMES^XPDUTL(" >> Starting the Post-Initialization routine for IB*2.0*797")
  1. D NEWCANC
  1. D UPDCANC
  1. D BMES^XPDUTL(" >> End of the Post-Initialization routine for IB*2.0*797")
  1. Q
  1. ;
  1. NEWCANC ; add new cancellation reason to file 350.3
  1. N FDA,IBCNNM
  1. D MES^XPDUTL(" -> Adding new Cancellation Reason to file 350.3...")
  1. S IBCNNM="INCORRECT CLINIC/STOP CODE"
  1. I $$FIND1^DIC(350.3,,"X",IBCNNM,"B")>0 D MES^XPDUTL(" Already exists.") Q ; already exists
  1. S FDA(350.3,"+1,",.01)=IBCNNM ; name
  1. S FDA(350.3,"+1,",.02)="ICS" ; abbreviation
  1. S FDA(350.3,"+1,",.03)=3 ; limit
  1. S FDA(350.3,"+1,",.07)=1 ; MH visit processing
  1. S FDA(350.3,"+1,",.08)=1 ; Can cancel MH Visit
  1. D UPDATE^DIE("","FDA")
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. UPDCANC ; update fields .09 and .1 in file 350.3
  1. N FDA,IBCNNM,IBDATA,IBEFDT,IBENDT,IBIEN,IENS,Z
  1. D MES^XPDUTL(" -> initializing EFFECTIVE DATE and END DATE fields in file 350.3...")
  1. F Z=1:1 S IBDATA=$T(REASDAT+Z),IBCNNM=$P(IBDATA,";",3) Q:IBCNNM="END" D
  1. .S IBEFDT=$P(IBDATA,";",4),IBENDT=$P(IBDATA,";",5)
  1. .S IBIEN=$O(^IBE(350.3,"B",IBCNNM,""))
  1. .I 'IBIEN D BMES^XPDUTL(" >> Unable to update the Charge Remove Reason "_IBCNNM_".") Q
  1. .S IENS=IBIEN_","
  1. .S FDA(350.3,IENS,.09)=IBEFDT
  1. .I IBENDT>0 S FDA(350.3,IENS,.1)=IBENDT
  1. .D FILE^DIE("","FDA") K FDA
  1. .Q
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. REASDAT ; Cancellation reasons (350.3) to update
  1. ;;AI/AN VERIFIED;3220105
  1. ;;CLELAND-DOLE;3230627;3271231
  1. ;;COMPACT;3230117
  1. ;;HANNON ACT;3220919;3250918
  1. ;;MEDAL OF HONOR;3161216
  1. ;;PACT103;3240305
  1. ;;PANDEMIC RESPONSE;3200301;3210930
  1. ;;UC - CHANGE IN ELIGIBILITY;3190606
  1. ;;UC - DUPLICATE VISIT;3190606
  1. ;;UC - ENTERED IN ERROR;3190606
  1. ;;UC - PG6 REVIEWED;3190606
  1. ;;UC - SEQUENCE UPDATE;3190606
  1. ;;WORLD WAR II;3230325
  1. ;;END
  1. Q