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

APCDBUL4.m

Go to the documentation of this file.
  1. APCDBUL4 ; IHS/CMI/LAB - Routine to create bulletin ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;;Borrowed from ACHSP1, ACHSP1A
  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 APCDKEY
  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,"APCDBUL")
  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,""APCDBUL"",",XMY(1)="",XMY(DUZ)=""
  1. I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_APCDKEY_" "_"security key."
  1. D ^XMD
  1. KILL ^TMP($J,"APCDBUL"),APCDKEY
  1. Q
  1. ;
  1. WRITEMSG ;
  1. F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"APCDBUL",%)=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 Data Entry Patch 4 has been installed. This patch includes the following
  1. ;;modifications/enchancements:
  1. ;; - Changes the way patient education is entered using the PED
  1. ;; mnemonic. The user will now be able to enter a topic in the old
  1. ;; way by choosing T at the first prompt (this is the way it works
  1. ;; currently) or by choosing D and entering a diagnosis and a category
  1. ;; of education.
  1. ;; - modifies the immunization display when using the IM mnemonic
  1. ;; - checks for the required admitting diagnosis in the VRR
  1. ;; for hospitalizations
  1. ;; - fixes the form print for operations
  1. ;; - adds a new data entry option for entering data for a cohort of patients
  1. ;; - adds a new mnemonic for entering provider driven overrides
  1. ;; of health maintenance reminders
  1. ;; - add mnemonics ECO2 and ECO3 for entering a second and third
  1. ;; E-code for a POV
  1. ;; - adds the Place of Injury prompt to ECOD mnemonic
  1. ;; - adds Level of Decision Making field to PHN mnemonic
  1. ;; - adds BP to DM Update screen
  1. ;;
  1. ;;
  1. ;;+++++++++++++++++++++ end of announcement +++++++++++++++++++++++
  1. ;;###
  1. ;
  1. GETRECIP ;
  1. ;* * * Define key below to identify recipients * * *
  1. ;
  1. S CTR=0,APCDKEY="APCDZMENU"
  1. F S CTR=$O(^XUSEC(APCDKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
  1. Q