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

PSO441PI.m

Go to the documentation of this file.
  1. PSO441PI ;SLC/TDP - Post-intall for PSO*7*441 ;Dec 09, 2021@13:46
  1. ;;7.0;OUTPATIENT PHARMACY;**441**;DEC 1997;Build 208
  1. ;
  1. Q
  1. ;
  1. POST ; Entry Point for post-install
  1. D MES^XPDUTL(" Starting post-install of PSO*7*441")
  1. N PSORDHM,PSOHA1,XQORM,I
  1. ; Remove ^XUTL entry for hidden action menu protocols
  1. ; Get the IEN for the PSO HIDDEN ACTIONS
  1. S PSOHA1=$O(^ORD(101,"B","PSO HIDDEN ACTIONS",0))
  1. ;
  1. F I=PSOHA1 S XQORM=I_";ORD(101," I $D(^XUTL("XQORM",XQORM)) D
  1. . D BMES^XPDUTL(" Removing cached hidden menu for "_$P(^ORD(101,I,0),U,1))
  1. . K ^XUTL("XQORM",XQORM)
  1. ;
  1. D DELDD,SETPKOFF,ENPROT
  1. ;
  1. D BMES^XPDUTL(" Finished post-install of PSO*7*441")
  1. Q
  1. ;
  1. DELDD ;DELETE FIELD #2009 FROM FILE #59 IN DATA DICTIONARY
  1. I '$D(^DD(59,2009)) Q ;no need to run again
  1. D BMES^XPDUTL(" Deleting Park Function (#2009) field from the Outpatient Site (#59) file")
  1. D MES^XPDUTL(" in Data Dictionary.")
  1. N PSOX
  1. S PSOX=0 F S PSOX=$O(^PS(59,PSOX)) Q:'PSOX I $P($G(^PS(59,PSOX,1)),"^",34)]"" S DR="2009////@",DIE="^PS(59,",DA=PSOX D ^DIE
  1. K DIE,DR
  1. S DIK="^DD(59,",DA=2009,DA(1)=59
  1. D ^DIK
  1. D BMES^XPDUTL(" Deletion from Data Dictionary complete.")
  1. K DA,DIK,DIE,DR
  1. Q
  1. ;
  1. SETPKOFF ;Set Default PSO PARK ON parameter to NO
  1. N PSOERR
  1. ;S PARAM=$$GET^XPAR("PKG","PSO PARK ON",,"I")
  1. ;I PARAM=0 Q
  1. D EN^XPAR("PKG","PSO PARK ON",,"NO",.PSOERR)
  1. I PSOERR=0 D BMES^XPDUTL(" PSO PARK ON parameter set to ""NO"" at the Package level.")
  1. I PSOERR'=0 D
  1. . D BMES^XPDUTL(" Error setting PSO PARK ON parameter to ""NO"" at the Package level.")
  1. . D MES^XPDUTL(" Error: "_$P(PSOERR,U,2))
  1. Q
  1. ;
  1. ENPROT ;Enable protocol PSO LM PAT PREG/LACT DISPLAY
  1. D OUT^XPDPROT("PSO LM PAT PREG/LACT DISPLAY","@")
  1. D BMES^XPDUTL(" Enabled the PSO LM PAT PREG/LACT DISPLAY protocol.")
  1. Q