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

PSSHRPST.m

Go to the documentation of this file.
  1. PSSHRPST ;WOIFO/STEVE GORDON - PRE - Post-Init to load pharmacy classes ;08/26/08
  1. ;;1.0;PHARMACY DATA MANAGEMENT;**136**;9/30/97;Build 89
  1. ;
  1. QUIT
  1. ;
  1. EN ; -- main entry point for pharmacy post-init
  1. ;XML (PSSPRE_1_0.XML) must be in Kernel default directory
  1. ;
  1. ; -- delete all classes gov package
  1. DO DELETE()
  1. ;
  1. ; --
  1. ;
  1. NEW PSSTAT
  1. SET PSSTAT=$$IMPORT^XOBWLIB1($$GETDIR(),$$SUPPORT())
  1. IF 'PSSTAT DO
  1. . DO BMES^XPDUTL("Error occurred during the importing of pharmacy classes file:")
  1. . DO MES^XPDUTL(" Directory: "_$$GETDIR())
  1. . DO MES^XPDUTL(" File Name: "_$$SUPPORT())
  1. . DO MES^XPDUTL(" Error: "_$PIECE(PSSTAT,"^",2))
  1. . DO MES^XPDUTL(" o Pharmacy class not imported.")
  1. ELSE DO
  1. . DO MES^XPDUTL(" o Pharmacy classes imported successfully.")
  1. . DO MES^XPDUTL(" ")
  1. . DO MAILMSG
  1. ;
  1. QUIT
  1. ;
  1. DELETE() ; -- delete classes for clean slate and remove previous releases
  1. NEW PSSTAT
  1. ; -- delete all classes in pharmacy package
  1. DO BMES^XPDUTL(" o Deleting gov classes:")
  1. ;
  1. SET PSSTAT=$SYSTEM.OBJ.DeletePackage("gov")
  1. DO BMES^XPDUTL(" ...[gov] deletion "_$SELECT(PSSTAT:"finished successfully.",1:"failed."))
  1. DO MES^XPDUTL("")
  1. QUIT
  1. ;
  1. ;
  1. SUPPORT() ;Returns the standard name of the XML file
  1. ;
  1. Q "PSSPRE_1_0.XML"
  1. ;
  1. GETDIR() ; -- get directory where install files are located--default is in Kernel parameters.
  1. QUIT $$DEFDIR^%ZISH()
  1. ;
  1. MAILMSG ;
  1. N XMDUZ,XMY,XMSUB,XMTEXT,XMZ,XMMG,DIFROM
  1. S XMDUZ="PACKAGE PSS*1.0*136 INSTALL"
  1. S XMTEXT="^TMP($J,""PSSHRPST"","
  1. S XMY(+DUZ)=""
  1. S XMY("G.PSS ORDER CHECKS")=""
  1. S XMSUB="PSS*1.0*136 Installation Complete"
  1. S ^TMP($J,"PSSHRPST",1)="Installation of Patch PSS*1.0*136 has been successfully completed!"
  1. D ^XMD
  1. Q
  1. ;