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

BDMBULP1.m

Go to the documentation of this file.
  1. BDMBULP1 ; cmi/anch/maw - Routine to create bulletin for Version 2 patch 1 ;
  1. ;;2.0;DIABETES MANAGEMENT SYSTEM;**1**;AUG 11, 2006
  1. ;;
  1. ;;Here's how to make this work:
  1. ;;
  1. ;;1. Create your message in subroutine WRITEMSG
  1. ;;2. Identify recipients in GETRECIP by setting appropriate key
  1. ;;3. Make changes in SUBJECT and SENDER as desired
  1. ;;4. Callthis routine on completion of patch or upgrade
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
  1. D HOME^%ZIS,DT^DICRW
  1. ;
  1. NEW XMSUB,XMDUZ,XMTEXT,XMY,DIFROM
  1. KILL ^TMP($J,"BDMBUL")
  1. D WRITEMSG,GETRECIP ;,RENAME
  1. ;Change following lines as desired
  1. SUBJECT S XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
  1. SENDER S XMDUZ="Diabetes Management System Coordinator"
  1. S XMTEXT="^TMP($J,""BDMBUL"",",XMY(1)="",XMY(DUZ)=""
  1. I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_BDMKEY_" "_"security key."
  1. D ^XMD
  1. KILL ^TMP($J,"BDMBUL"),BDMKEY
  1. Q
  1. ;
  1. WRITEMSG ;
  1. F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"BDMBUL",%)=X
  1. Q
  1. ;;
  1. ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1. ;;+ This message is intended to advise you of changes, +
  1. ;;+ upgrades or other important RPMS information
  1. ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1. ;;
  1. ;;PCC Diabetes Management System Version 2 patch 1 has recently been installed, and
  1. ;;includes the following modifications/enhancements:
  1. ;;
  1. ;;1. Various technical programming changes.
  1. ;;
  1. ;;2. Locked data entry items in Patient Management with the BDMZEDIT key.
  1. ;;
  1. ;;3. Added code set versioning to various routines.
  1. ;;
  1. ;;4. Fixed the follow up report when lab results are returned with an abnormal flag.
  1. ;;
  1. ;;MAKE SURE YOU ASSIGN THE BDMZEDIT KEY TO USERS WHO NEED TO UPDATE PATIENT RECORDS
  1. ;;
  1. ;;For additional information contact your RPMS site manager, Area Office RPMS or
  1. ;;the HELP DESK.
  1. ;;
  1. ;;
  1. ;;+++++++++++++++++++++ End of Announcement +++++++++++++++++++++++
  1. ;;###
  1. ;
  1. GETRECIP ;
  1. ;* * * Define key below to identify recipients * * *
  1. ;
  1. S CTR=0,BDMKEY="BDMZMENU"
  1. F S CTR=$O(^XUSEC(BDMKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
  1. Q
  1. ;
  1. RENAME ;-- rename sent routines for DM AUDIT 2008 patch
  1. N BDMX,I
  1. F BDMI=11,14,15,16,"1P" D
  1. . S BDMX="ZL BDMD8"_BDMI_" ZS APCLD8"_BDMI
  1. . X BDMX
  1. Q
  1. ;