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

DG531061P.m

Go to the documentation of this file.
  1. DG531061P ;ALB/JAM - DG*5.3*1061 INSTALL UTILITY;07/12/2021 15:21pm
  1. ;;5.3;Registration;**1061**;Feb 23 2021;Build 22
  1. ;
  1. QUIT ;No direct entry
  1. ;
  1. ;---------------------------------------------------------------------------
  1. ;Patch DG*5.3*1061: Environment, Pre-Install, and Post-Install entry points.
  1. ;---------------------------------------------------------------------------
  1. ;
  1. ; ICR: 10141 : BMES^XPDUTL
  1. ; : MES^XPDUTL
  1. ;
  1. ENV ;Main entry point for Environment check
  1. Q
  1. ;
  1. PRE ;Main entry point for Pre-Install items
  1. D BMES^XPDUTL(">>> Beginning the DG*5.3*1061 Pre-install routine...")
  1. ;
  1. ; Remove non-SAC compliant triggers from MAS ELIGIBILITY CODE field (#8) of ELIGIBILITY CODE file (#8)
  1. D BMES^XPDUTL("*** Removing non-SAC compliant triggers from MAS ELIGIBILITY CODE")
  1. D MES^XPDUTL(" field (#8) of the ELIGIBILITY CODE file (#8).")
  1. ;
  1. ; Delete trigger cross references 2, 3, 4 and 5 in the MAS ELIGBILITY CODE field (#8) in ELIGIBILITY CODE file (#8)
  1. N DGXREF,DGXREFNM
  1. F DGXREF=2:1:5 D
  1. . D DELIX^DDMOD(8,8,DGXREF)
  1. . S DGXREFNM=$S(DGXREF=2:"CARD COLOR",DGXREF=3:"VA CODE NUMBER",DGXREF=4:"TYPE",DGXREF=5:"SELECT AS ADDITIONAL",1:"")
  1. . D MES^XPDUTL("*** Trigger cross reference for field '"_DGXREFNM_"' removed.")
  1. ;
  1. D BMES^XPDUTL(">>> Patch DG*5.3*1061 - Pre-install complete.")
  1. Q
  1. ;
  1. POST ;Main entry point for Post-Install items
  1. ;
  1. D BMES^XPDUTL(">>> Beginning the DG*5.3*1061 Post-install routine...")
  1. D POST1
  1. D POST2
  1. D BMES^XPDUTL(">>> Patch DG*5.3*1061 - Post-install complete.")
  1. Q
  1. ;
  1. POST1 ; Add COMPACT ACT ELIGIBLE eligibility to file #8
  1. NEW DGEC,DGPH,DGFDA,DGERR
  1. S DGEC="COMPACT ACT ELIGIBLE"
  1. D BMES^XPDUTL("*** Adding 'COMPACT ACT ELIGIBLE' to the ELIGIBILITY CODE file (#8).")
  1. S DGPH=$$FIND1^DIC(8.1,"","X",DGEC)
  1. I 'DGPH D Q
  1. . D BMES^XPDUTL("*** WARNING!")
  1. . D MES^XPDUTL(" - COMPACT ACT ELIGIBLE entry missing from MAS ELIGIBILITY CODE file (#8.1)")
  1. . D MES^XPDUTL(" - Submit a YOUR IT Services ticket with the Enterprise Service Desk")
  1. . D MES^XPDUTL(" for assistance.")
  1. I $$FIND1^DIC(8,"","X",DGEC) D Q
  1. . D BMES^XPDUTL("*** COMPACT ACT ELIGIBLE entry already exists... No action required.")
  1. ; Add entry to file
  1. S DGFDA(8,"+1,",.01)=DGEC
  1. S DGFDA(8,"+1,",1)="BLUE"
  1. S DGFDA(8,"+1,",2)="CMPT"
  1. S DGFDA(8,"+1,",3)=12
  1. S DGFDA(8,"+1,",4)="N"
  1. S DGFDA(8,"+1,",5)=DGEC
  1. S DGFDA(8,"+1,",7)=1
  1. S DGFDA(8,"+1,",8)=DGEC
  1. S DGFDA(8,"+1,",9)="VA STANDARD"
  1. S DGFDA(8,"+1,",11)="VA"
  1. D UPDATE^DIE("E","DGFDA","","DGERR")
  1. I '$D(DGERR) D BMES^XPDUTL("*** COMPACT ACT ELIGIBLE successfully added to ELIGIBILITY CODE file (#8).")
  1. I $D(DGERR) D
  1. . D BMES^XPDUTL("*** COMPACT ACT ELIGIBLE was NOT successfully added to the ELIGIBILITY CODE file (#8).")
  1. . D MES^XPDUTL(" - Submit a YOUR IT Services ticket with the Enterprise Service Desk")
  1. . D MES^XPDUTL(" for assistance.")
  1. Q
  1. ;
  1. POST2 ; Add SPECIAL TX AUTHORITY CARE eligibility to file #8
  1. NEW DGEC,DGPH,DGFDA,DGERR
  1. S DGEC="SPECIAL TX AUTHORITY CARE"
  1. D BMES^XPDUTL("*** Adding 'SPECIAL TX AUTHORITY CARE' to the ELIGIBILITY CODE file (#8).")
  1. S DGPH=$$FIND1^DIC(8.1,"","X",DGEC)
  1. I 'DGPH D Q
  1. . D BMES^XPDUTL("*** WARNING!")
  1. . D MES^XPDUTL(" - SPECIAL TX AUTHORITY CARE entry missing from the")
  1. . D MES^XPDUTL(" MAS ELIGIBILITY CODE file (#8.1)")
  1. . D MES^XPDUTL(" - Submit a YOUR IT Services ticket with the Enterprise Service Desk")
  1. . D MES^XPDUTL(" for assistance.")
  1. I $$FIND1^DIC(8,"","X",DGEC) D Q
  1. . D BMES^XPDUTL("*** SPECIAL TX AUTHORITY CARE entry already exists... No action required.")
  1. ; Add entry to file
  1. S DGFDA(8,"+1,",.01)=DGEC
  1. S DGFDA(8,"+1,",1)="BLUE"
  1. S DGFDA(8,"+1,",2)="STAC"
  1. S DGFDA(8,"+1,",3)=12
  1. S DGFDA(8,"+1,",4)="N"
  1. S DGFDA(8,"+1,",5)=DGEC
  1. S DGFDA(8,"+1,",7)=1
  1. S DGFDA(8,"+1,",8)=DGEC
  1. S DGFDA(8,"+1,",9)="VA STANDARD"
  1. S DGFDA(8,"+1,",11)="VA"
  1. D UPDATE^DIE("E","DGFDA","","DGERR")
  1. I '$D(DGERR) D
  1. . D BMES^XPDUTL("*** SPECIAL TX AUTHORITY CARE successfully added to the")
  1. . D MES^XPDUTL(" ELIGIBILITY CODE file (#8).")
  1. I $D(DGERR) D
  1. . D BMES^XPDUTL("*** SPECIAL TX AUTHORITY CARE was NOT successfully added to the")
  1. . D MES^XPDUTL(" ELIGIBILITY CODE file (#8).")
  1. . D MES^XPDUTL(" - Submit a YOUR IT Services ticket with the Enterprise Service Desk")
  1. . D MES^XPDUTL(" for assistance.")
  1. Q