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

APCHBUL.m

Go to the documentation of this file.
  1. APCHBUL ; IHS/BJI/GRL - routine to create bulletin [ 03/14/01 8:37 PM ]
  1. ;;2.0;IHS RPMS/PCC Health Summary;**8**;JUN 24, 1997
  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 APCHKEY
  1. ;;3. Make changes in SUBJECT and SENDER as desired
  1. ;;4. Rename this routine in appropriate namespace and
  1. ;; call 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,"APCHBUL")
  1. D WRITEMSG,GETRECIP
  1. ;Change following lines as desired
  1. SUBJECT S XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
  1. SENDER S XMDUZ="Cimarron Medical Informatics"
  1. S XMTEXT="^TMP($J,""APCHBUL"",",XMY(1)="",XMY(DUZ)=""
  1. ;I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_APCHKEY_" "_"security key."
  1. I $E(IOST)="C" W !,"Sending Mailman message to all active RPMS users."
  1. D ^XMD
  1. KILL ^TMP($J,"APCHBUL"),APCHKEY
  1. Q
  1. ;
  1. WRITEMSG ;
  1. F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"APCHBUL",%)=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 Health Summary patch 8 has recently been installed on this RPMS computer
  1. ;;
  1. ;;This patch fixes/modifies the following functionality:
  1. ;;
  1. ;;-Fixes PAP display on Diabetes Supplement.
  1. ;;-Fixes lab results to not display "^^" on Diabetes Supplement.
  1. ;;-Fixes potential <UNDEF> in Medicare display.
  1. ;;-Expands the lookup for PAP, Influenza Immunization and Mammograms on Diabetes
  1. ;;Supplement to include CPT codes.
  1. ;;-Modifies the PPD prompt on Diabetes Supplement to state "Last Documented PPD".
  1. ;;-Modifies the prompt to state "Known Positive PPD or Hx of TB" on supplement.
  1. ;;-Adds the date of the last Mammogram from PCC to Diabetes Supplement.
  1. ;;
  1. ;;-Upgrades all Health Maintenance Remainders. Significant changes have been
  1. ;;made to the PCC Health Maintenance Reminders including:
  1. ;;
  1. ;;--Removal of DM reminders from health summary. All DM related Health Reminders
  1. ;;are provided for on the Diabetes Patient Care Summary (DM Supplement)
  1. ;;--Closer reminder correlation to recommendations of U.S. Preventive Services
  1. ;;Task Force (USPSTF), the Advisory Committee on Immunization Practices and other
  1. ;;appropriate groups.
  1. ;;--Creation of new Health Maintenance Reminder (HM) option on the Health Summa
  1. ;;ry Maintenance menu which allows sites to customize the Health Reminders to
  1. ;;meet locally determined standards.
  1. ;;
  1. ;;A complete review of the changes to the Health Maintenance Reminders was
  1. ;;provided to your Area Office with this patch and was recently published in the
  1. ;;IHS Provider.
  1. ;;
  1. ;;* * * It is imperative that all active health summaries be reviewed to assure
  1. ;;that desired Health Maintenance Reminders are present. Use the new option in
  1. ;;the Health Summary Maintenance menu "HM Health Maintenance Reminders..." to
  1. ;;print the reminder protocols and health summaries to which the reminders are
  1. ;;attached. * * *
  1. ;;
  1. ;;--------------------- End of Announcement -----------------------
  1. ;;###
  1. ;
  1. GETRECIP ;
  1. ;* * * Define key below to identify recipients * * *
  1. ;
  1. ;S CTR=0,APCHKEY="APCHZMENU"
  1. ;F S CTR=$O(^XUSEC(APCHKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
  1. ;
  1. ;Send bulletin to all active users
  1. S CTR=0
  1. F S CTR=$O(^VA(200,CTR)) Q:CTR'=+CTR D
  1. .I $P($G(^VA(200,CTR,0)),"^",11)]]"" Q ;inactive date
  1. .I $P($G(^VA(200,CTR,201)),"^")]"" S Y=CTR S XMY(Y)="" ;primary menu
  1. Q