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

PSSEC123.m

Go to the documentation of this file.
  1. PSSEC123 ;JD-Environment check routine for PSS*1*123 ; 6/6/07 2:27pm
  1. ;;1.0;PHARMACY DATA MANAGEMENT;**123**;9/30/97;Build 6
  1. ;Reference to $$PATCH^XPDUTL(X) supported by DBIA #10141
  1. ;Reference to ^XMB("NETNAME") supported by DBIA #1131
  1. N PSSFL1,PSSFL2,PSSSTR
  1. S PSSFL1="",PSSFL2="",PSSSTR="",$P(PSSSTR,"*",77)=""
  1. I ^XMB("NETNAME")?1"CMOP-".E W !!,?10,"Consolidated Mail Outpatient Pharmacy Install.",!! Q
  1. ; Not a CMOP site. Check for required patches.
  1. ; Required patches are PSJ*5.0*134 and OR*3.0*243
  1. I '$$PATCH^XPDUTL("PSJ*5.0*134") S PSSFL1=1 ; Required patch
  1. I '$$PATCH^XPDUTL("OR*3.0*243") S PSSFL2=1 ; Required patch
  1. I PSSFL1=1!(PSSFL2=1) D
  1. . ; Logic to notify the IRM
  1. . W !!,?2,PSSSTR
  1. . W !,?2,"*",?34,"WARNING",?77,"*",!,?2,"*",?77,"*"
  1. . I PSSFL1=1 W !,?2,"*",?14,"Required patch PSJ*5.0*134 is not installed.",?77,"*"
  1. . I PSSFL2=1 W !,?2,"*",?14,"Required patch OR*3.0*243 is not installed.",?77,"*",!,?2,"*",?77,"*"
  1. . W !,?2,"*",?10,"Please install the above mentioned required patch(es).",?77,"*"
  1. . W !,?2,"*Once the required patch(es) are installed, you can reinstall",?77,"*"
  1. . W !,?2,"*patch PSS*1.0*123.",?77,"*"
  1. . W !,?2,PSSSTR
  1. . S XPDQUIT=1 ; This will cause the install to quit and delete the transport global.
  1. Q