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

PSO254EN.m

Go to the documentation of this file.
  1. PSO254EN ;BHAM-ISC/MFR - ENVIRONMENT CHECK ROUTINE FOR PATCH PSO*7*254 ;10/03/06
  1. ;;7.0;OUTPATIENT PHARMACY;**254**;DEC 1997;Build 19
  1. ;Reference to $$PROD^XPROD supported by IA 4440
  1. ;Reference to NEW PERSON file (#200) supported by IA 224
  1. ;Reference to BMES^XPDUTL supported by IA 10141
  1. ;
  1. Q:'$G(XPDENV) S XPDABORT=0
  1. ;
  1. ;I $$PROD^XUPROD(),'$$FIND1^DIC(4,,"B","LEAVENWORTH PHARMACY") D Q
  1. ;. S XPDQUIT=1 D BMES^XPDUTL("THE POST-INSTALL FOR XU*8*416 HAS NOT COMPLETED AND/OR RUN. TRY AGAIN LATER!")
  1. ;
  1. W !
  1. W !," The post-install routine included with this patch will send out a"
  1. W !," Mailman message with the list of Pharmacy Divisions in your site"
  1. W !," along with their related National Provider Identifier (NPI)"
  1. W !," Institution, which is being automatically assigned by this patch."
  1. W !," "
  1. W !," It will also indicate if there were problems in the automatic"
  1. W !," assignment, which will have to be followed-up by an Outpatient"
  1. W !," Pharmacy user as outlined in the patch description."
  1. W !," "
  1. W !," So, please enter the Outpatient Pharmacy user(s) (e.g., Pharmacy"
  1. W !," ADPAC or designee) who should receive this message (at least 1 user"
  1. W !," is required). The user entered should be the person responsible for"
  1. W !," the maintenance of the PSO Site Parameters. The message will also"
  1. W !," be sent to the user installing the patch."
  1. W !
  1. ;
  1. N ARRAY,DIC,DTOUT,DUOUT,QT,Y,X,I,USR
  1. S DIC=200,DIC(0)="QEZAM",DIC("A")="PHARMACY USER: "
  1. F D ^DIC Q:X="" D Q:$G(QT)
  1. . I $D(DTOUT)!$D(DUOUT) K ARRAY S QT=1 Q
  1. . W " ",$P(Y,"^",2),$S($D(ARRAY(+Y)):" (already selected)",1:"")
  1. . W ! S ARRAY(+Y)="",DIC("A")="ANOTHER ONE: "
  1. ;
  1. I '$D(ARRAY) D S XPDABORT=2 Q
  1. . D BMES^XPDUTL("AT LEAST ONE PHARMACY USER MUST BE ENTERED FOR THIS PATCH TO BE INSTALLED!")
  1. ;
  1. S @XPDGREF@("PSO254USR0")=DUZ
  1. S USR="" F I=1:1 S USR=$O(ARRAY(USR)) Q:USR="" S @XPDGREF@("PSO254USR"_I)=USR
  1. ;
  1. Q