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

WIIPOST.m

Go to the documentation of this file.
  1. WIIPOST ;VISN20/WHN/WDE POST INIT
  1. ;;1.0;Wounded Injured and Ill Warriors;**1**;06/12/2008;Build 28
  1. ;------------------------------------------------------------------------------------------------- ;
  1. ;This post init will be used to populate the WII PARM file with the mail group exported with this build.
  1. ;-------------------------------------------------------------------------------------------------
  1. ;
  1. EN ;
  1. S WIIDA=0 F S WIIDA=$O(^WII(987.6,WIIDA)) Q:(WIIDA="")!('+WIIDA) D
  1. .S DIK="^WII(987.6,",DA=WIIDA D ^DIK
  1. .Q
  1. K DIK,WIIDA,DA
  1. S WIIMAIL="" S WIIMAIL=$O(^XMB(3.8,"B","WII ADT REVIEWER",WIIMAIL)) ;mail group sent out with the build
  1. I +WIIMAIL D
  1. .S DIC="^WII(987.6,"
  1. .S DIC(0)=""
  1. .S X=$P($G(^WII(987.6,0)),U,3) S:X="" X=0 S X=X+1
  1. .S DA=X
  1. .D FILE^DICN
  1. .S DIE=DIC
  1. .;S DR=".01///"_WIIMAIL_";1///S.WII ADT SERVER@TEST.VISN20.DOMAIN.EXT" ;TEST repository
  1. .S DR=".01///"_WIIMAIL_";1///S.WII ADT SERVER@WHITE-CITY.DOMAIN.EXT" ;LIVE REPOSITORY
  1. .D ^DIE
  1. .Q
  1. K DIC,DIE,X,WIIMAIL,DA,DR,Y
  1. Q