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

DVBC227P.m

Go to the documentation of this file.
  1. DVBC227P ;ALB/BG;PATCH 227 POST INSTALL ; 9/17/21 9:48am
  1. ;;2.7;AMIE;**227**;Apr 10, 1995;Build 21
  1. ;Per VHA Directive 6402 this routine should not be modified
  1. ;Updates Capri Minimum version
  1. Q
  1. ;
  1. PMAIN ;-- update DVBAB CAPRI MINIMUM VERSION Parameter.
  1. ;
  1. N DVBERR
  1. W !!,"*************************************************"
  1. W !!,"Start DVBAB CAPRI Minimum Version Parameter Update"
  1. W !,"-------------------------",!
  1. S DVBERR=$$ENXPAR("PKG","DVBAB CAPRI MINIMUM VERSION","CAPRI GUI V2.7*227.2*1*A*3211230*1.3*1.3")
  1. D UPDMSG("CAPRI Minimum Version",DVBERR)
  1. ;
  1. W !!,"-------------------------"
  1. W !,"End DVBAB CAPRI Minimum Version Parameter Updates"
  1. W !,"****************************************************",!!
  1. ;
  1. D STATUS ;add reroute status
  1. D DIVUPD ;update capri division exam list (#396.15) file for ehrm 2507/7131 mod
  1. ;
  1. Q
  1. ENXPAR(DVBENT,DVBPAR,DVBVAL) ;
  1. ;
  1. N DVBERR
  1. D EN^XPAR(DVBENT,DVBPAR,1,DVBVAL,.DVBERR)
  1. Q DVBERR
  1. ;
  1. ;
  1. UPDMSG(DVBPAR,DVBERR) ;
  1. ;
  1. I DVBERR D
  1. . D MES^XPDUTL(DVBPAR_" update FAILURE.")
  1. . D MES^XPDUTL(" Failure reason: "_DVBERR)
  1. E D
  1. . D MES^XPDUTL(DVBPAR_" Update Successful")
  1. Q
  1. ;
  1. STATUS ;adding new reroute status
  1. N DVBFDA,DVBERR
  1. D BMES^XPDUTL("Updating the CAPRI 2507 STATUS (396.33) file...")
  1. S FIND="RE-ROUTED, PENDING AT TO SITE"
  1. D FIND^DIC(396.33,"",.01,"X",.FIND,"","","","","OUT")
  1. I $G(OUT("DILIST",2,1))'="" D BMES^XPDUTL("NEW RE-ROUTE STATUS HAS ALREADY ADDED") Q
  1. S DVBFDA(396.33,"+1,",.01)=FIND
  1. S DVBFDA(396.33,"+1,",.02)="RS"
  1. D UPDATE^DIE("","DVBFDA","","DVBERR")
  1. I $G(DVBERR)'="" D BMES^XPDUTL("NEW RE-ROUTE STATUS COULD NOT BE ADDED BY POST-INSTALL ROUTINE.")
  1. I $G(DVBERR)="" D BMES^XPDUTL("NEW RE-ROUTE STATUS HAS BEEN ADDED.")
  1. K DVBERR,DVBFDA
  1. Q
  1. ;
  1. DIVUPD ;add values to the new fields in the capri division exam list (#396.15) file
  1. N DVBAIEN,DVBAVAL,DVBAFIVE,DVBASIX,DVBASEVN,DVBAFDA,DVBAERR
  1. S DVBAIEN=0
  1. D BMES^XPDUTL("Updating the CAPRI DIVISION EXAM LIST (396.15) file...")
  1. F S DVBAIEN=$O(^DVB(396.15,DVBAIEN)) Q:'DVBAIEN D
  1. .S DVBAVAL=^DVB(396.15,DVBAIEN,3)
  1. .I $P(DVBAVAL,U)="Y" S DVBAFIVE="Y"
  1. .E S DVBAFIVE="N"
  1. .S (DVBASIX,DVBASEVN)="N"
  1. .S DVBAFDA(396.15,DVBAIEN_",",5)=DVBAFIVE
  1. .S DVBAFDA(396.15,DVBAIEN_",",6)=DVBASIX
  1. .S DVBAFDA(396.15,DVBAIEN_",",7)=DVBASEVN
  1. .K DVBAERR D FILE^DIE(,"DVBAFDA","DVBAERR")
  1. .I '$D(DVBAERR) D BMES^XPDUTL(" >>Division "_$$GET1^DIQ(396.15,DVBAIEN_",",.01)_" (IEN #"_DVBAIEN_") updated successfully")
  1. .I $D(DVBAERR) D BMES^XPDUTL(">>>....Error updating Division "_$$GET1^DIQ(396.15,DVBAIEN_",",.01)_" (IEN #"_DVBAIEN_")") D
  1. ..D MES^XPDUTL(" ERROR: "_DVBAERR("DIERR","1")) ;print error code to help identify filing issue
  1. ..D BMES^XPDUTL(" *** Please contact support for assistance. ***")
  1. D BMES^XPDUTL("...CAPRI DIVISION EXAM LIST (396.15) file updates complete.")
  1. Q