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

BPHR1POS.m

Go to the documentation of this file.
BPHR1POS ;GDIT/HS/ALA-Post install program ; 23 Aug 2013  9:12 AM
 ;;2.1;IHS PERSONAL HEALTH RECORD;;Apr 01, 2014;Build 10
 ;
ENV ;EP - Environment check
 NEW VERSION
 ; Add code to check for Ensemble version greater or equal to 2012
 S VERSION=$$VERSION^%ZOSV
 I VERSION<2012 D BMES^XPDUTL("Ensemble 2012 or later is required!") S XPDQUIT=2
 Q
 ;
EN ;EP - Postinstall
 ;Delete existing BPHR classes
 S EXEC="DO $SYSTEM.OBJ.DeletePackage(""BPHR"")" X EXEC
 ;
 ; Import BPHR classes
 K ERR
 D IMPORT^BPHRCLAS(1,.ERR)
 I $G(ERR) Q
 Q
 ;
PRE ;EP - Preinstall
 NEW DA,DIK
 S DIK="^BPHR(90670.2,"
 S DA=0 F  S DA=$O(^BPHR(90670.2,DA)) Q:'DA  D ^DIK
 Q
 ;