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

PSS147EN.m

Go to the documentation of this file.
  1. PSS147EN ;BIR/RTR-Environment check routine for patch PSS*1*147 ;07/17/09
  1. ;;1.0;PHARMACY DATA MANAGEMENT;**147**;9/30/97;Build 16
  1. ;
  1. Q:'$G(XPDENV)
  1. ;
  1. ;
  1. EN ;
  1. N X,Y,DTOUT,DUOUT,DIRUT,DIROUT,DIC,DA,DLAYGO
  1. N PSSMGPAR,PSSMGPOR,PSSMGPMY,PSSMGPNM,PSSMGPDS,PSSMGPRS,PSSMGPQT,PSSMGPTP,PSSMGPSL
  1. S @XPDGREF@("PSS147IN","INSTALL")=0 I $$PATCH^XPDUTL("PSS*1.0*147") S @XPDGREF@("PSS147IN","INSTALL")=1
  1. I $$FIND1^DIC(3.8,"","X","PSS ORDER CHECKS","B") D KTM G REC
  1. D KTM K PSSMGPAR
  1. S PSSMGPAR(1)="A 'PSS ORDER CHECKS' Mail Group is now being created. Mail Group members will"
  1. S PSSMGPAR(2)="receive various notifications that impact Enhanced Order Checks (drug-drug"
  1. S PSSMGPAR(3)="interactions, duplicate therapy and dosing) introduced with PRE V. 0.5. Please"
  1. S PSSMGPAR(4)="enter the Pharmacy ADPAC or a designee to be the Mail Group Organizer."
  1. S PSSMGPAR(5)=" "
  1. S PSSMGPAR(6)="To continue this install, you must now enter a Mail Group organizer."
  1. S PSSMGPAR(7)=" "
  1. D MES^XPDUTL(.PSSMGPAR)
  1. K DIC S DIC=200,DIC(0)="QEAMZ",DIC("A")="Enter Mail Group Organizer: "
  1. D ^DIC K DIC I $D(DTOUT)!($D(DUOUT))!(+Y'>0) S XPDABORT=2 Q
  1. S PSSMGPOR=+Y,PSSMGPMY(+Y)=""
  1. S PSSMGPNM="PSS ORDER CHECKS",PSSMGPTP=0,PSSMGPSL=0,PSSMGPQT=1
  1. S PSSMGPDS(1)="Members of this mail group will receive various notifications that impact"
  1. S PSSMGPDS(2)="Enhanced Order Checks (drug-drug interactions, duplicate therapy and dosing"
  1. S PSSMGPDS(3)="checks) introduced with PRE V. 0.5 utilizing a COTS database."
  1. S PSSMGPRS=$$MG^XMBGRP(PSSMGPNM,PSSMGPTP,PSSMGPOR,PSSMGPSL,.PSSMGPMY,.PSSMGPDS,PSSMGPQT)
  1. I 'PSSMGPRS D BMES^XPDUTL(" ") D BMES^XPDUTL("Unable to create PSS ORDER CHECKS Mail Group, aborting install.") S XPDABORT=2 Q
  1. D BMES^XPDUTL("PSS ORDER CHECKS Mail Group successfully created.")
  1. ;
  1. ;
  1. ;
  1. REC ;Set up mail message recipients
  1. S @XPDGREF@("PSS147DZ",DUZ)=""
  1. S @XPDGREF@("PSS147DZ","G.PSS ORDER CHECKS")=""
  1. Q
  1. ;
  1. ;
  1. KTM ;Kill TMP global
  1. K ^TMP("DIERR",$J)
  1. Q