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

APCDBUL7.m

Go to the documentation of this file.
  1. APCDBUL7 ; 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 7 has been installed. This patch includes the following:
  1. ;;modifications/enchancements:
  1. ;;
  1. ;; - add field OBJECTIVES to the PED mnemonic and re-orders the prompts
  1. ;; - adds creation of VA VISIT ID for Electronic Health Record Project
  1. ;; - Updated PCC form print with New fields for education
  1. ;; - added Hospital Location to visit lookup screen, if it exists
  1. ;; - added new visit display option which limits each lab entry to selected fields
  1. ;; - added entry of refusals to the DM Update option
  1. ;; - added a new option to complete 'orphan' blood bank visits
  1. ;; - added a new option to complete 'orphan' microbiology visits
  1. ;; - added option to the Supervisor menu for updating PCC links
  1. ;; (You must be given a special key for this option)
  1. ;; - Added 3 report that lists all allergies on the problem list for a group of pts
  1. ;; - New Mnemonics:
  1. ;; ALG - entry of allergies into Allergy tracking (not Problem list)
  1. ;; (you must have a special key to do this)
  1. ;; HHF - Historical Health Factor entry
  1. ;; UAS - Unable to Screen Refusal type
  1. ;; HADA - historical ada codes
  1. ;; ADA - ada codes (from outside your facility)
  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