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

APCHBU14.m

Go to the documentation of this file.
  1. APCHBU14 ; IHS/BJI/GRL - routine to create bulletin [ 01/14/05 10:36 AM ]
  1. ;;2.0;IHS RPMS/PCC Health Summary;**14**;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 14 has recently been installed on this RPMS computer
  1. ;;
  1. ;; - adds LOINC code lookups to all lab lookups in both
  1. ;; the Diabetes Supplement and the Health Maintenance
  1. ;; reminders
  1. ;;
  1. ;; - adds a New patient medical handout. This new
  1. ;; option is called "Patient Medical Handouts" (APCHPSUM) and can
  1. ;; be found on the APCHMENU option. This option is standalone
  1. ;; and can be added to a users menu. This provides the ability
  1. ;; to print out a handout sheet to give to the patient. There
  1. ;; are 2 handouts, one is a pre-visit handout to be given to
  1. ;; the patient before they see the provider and the second
  1. ;; one is a handout to be given to the patient after their
  1. ;; visit is over. The pre-visit handout can be printed at
  1. ;; check-in through scheduling by setting the parameter in the
  1. ;; PCC MASTER CONTROL file called "PROMPT FOR PT HANDOUT AT CHKIN"
  1. ;; to yes. For more information about these handouts please see
  1. ;; the supplemental document distributed with this patch.
  1. ;;
  1. ;; - fixed the DM Supplement to not display refusals for Mammogram
  1. ;; if the patient had a mammogram after the refusal date.
  1. ;;
  1. ;; - On the medication component called "MEDS - ALL W/#ISS & ALT NAME"
  1. ;; we have added the ability to display the ordering provider's name
  1. ;; if the site opts to do so. To turn this on you must set the field
  1. ;; called "DISPLAY PROV INITIALS W/MEDS" to YES in the health summary
  1. ;; type file for the type of summary on which you want the ordering
  1. ;; provider to display.
  1. ;;
  1. ;; - added a check for refusals to the pneumovax health maintenance
  1. ;; reminder.
  1. ;;
  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 D
  1. .I $P($G(^VA(200,CTR,0)),"^",11)]]"" Q
  1. .I $P($G(^VA(200,CTR,"PS")),U,4)]"" Q ;inactive date
  1. .I $P($G(^VA(200,CTR,201)),"^")]"" S Y=CTR S XMY(Y)="" ;primary menu
  1. ;
  1. Q