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

APCDBUL.m

Go to the documentation of this file.
  1. APCDBUL ; 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
  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 3 has been installed. This patch includes the following
  1. ;;modifications/enchancements:
  1. ;;- Adds a new data entry option called UPDATE DIABETES PATIENT DATA. This
  1. ;; option can be used when providers are attempting to update historical data
  1. ;; related to diabetes care.
  1. ;;- Adds a new data entry option called PRINT A PCC VISIT IN ENCOUNTER FORM
  1. ;; FORMAT.
  1. ;; This option can be used to print a visit after it has been completely
  1. ;; entered. This similiar is to displaying a visit, but the format will look like
  1. ;; a PCC Encounter Form.
  1. ;;- New mnemonics:
  1. ;; CC - to pick up and record the Chief Complaint
  1. ;; AOP - similar to OP but this will prompt for anesthesia information
  1. ;; NMI - similar to the REF (Refusals) mnemonic. This one should be
  1. ;; used if the provider indicates that the refusal is because the item
  1. ;; is not medically indicated.
  1. ;;- The RAD mnemonic will now prompt for CPT Modifiers. These are not
  1. ;; required.
  1. ;;- The RAD mnemonic will now prompt for ordering provider. This is not
  1. ;; a required data element.
  1. ;;- If an IHS VCN is entered on a visit, it will now display when a visit
  1. ;; is being selected.
  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