- APCLBUL ; IHS/CMI/LAB - Routine to create bulletin ;
- ;;2.0;IHS PCC SUITE;;MAY 14, 2009
- ;;
- ;;Here's how to make this work:
- ;;
- ;;1. Create your message in subroutine WRITEMSG
- ;;2. Identify recipients in GETRECIP by setting APCLKEY
- ;;3. Make changes in SUBJECT and SENDER as desired
- ;;4. Rename this routine in appropriate namespace and
- ;; call on completion of patch or upgrade
- ;
- I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
- D HOME^%ZIS,DT^DICRW
- ;
- NEW XMSUB,XMDUZ,XMTEXT,XMY,DIFROM
- KILL ^TMP($J,"APCLBUL")
- D WRITEMSG,GETRECIP
- ;Change following lines as desired
- SUBJECT S XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
- SENDER S XMDUZ="Cimarron Medical Informatics"
- S XMTEXT="^TMP($J,""APCLBUL"",",XMY(1)="",XMY(DUZ)=""
- I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_APCLKEY_" "_"security key."
- D ^XMD
- KILL ^TMP($J,"APCLBUL"),APCLKEY
- Q
- ;
- WRITEMSG ;
- F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"APCLBUL",%)=X
- Q
- ;;
- ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- ;;+ This message is intended to advise you of changes, +
- ;;+ upgrades or other important RPMS information
- ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- ;;
- ;;PCC Management Reports Patch 8 has recently been installed. This patch
- ;;includes the following modifications/enhancements:
- ;;
- ;;-DM Audit 2000. New items on the audit include:
- ;;--ARB drugs
- ;;--Lipid Lowering Drugs
- ;;--PAP Smear
- ;;--HDL
- ;;--Several new DM Audit taxonomies which must be populated prior to running the
- ;; audit.
- ;;-A new option to display DM Audit criteria by item.
- ;;-A new report listing all patients on the Diabetes Register or patients with
- ;; at least "n" diabetes diagnoses but DO NOT have DM on their problem list.
- ;;-A new report to list patients whose blood pressure is considered to be out
- ;; of control.
- ;;-A new report called RX Data Analysis report.
- ;;-Fixes to Injury Surveillance Reports.
- ;;-Fix to prevent program error if provider class not specified or a provider
- ;; class without a code is selected.
- ;;-Fix of the CHS portion of the Operations Summary.
- ;;-Enhancement of the Overweight/Obesity Prevalence Report.
- ;;-Update of the BMI Standard Reference Data Table
- ;;
- ;;For additional information contact your RPMS site manager, Area Office RPMS
- ;;support staff or any of the following Cimarron staff members:
- ;;
- ;;Dorothy Russell * Gary Lawless * Bill Mason * Lori Butcher
- ;;(520)-743-3275 (715)-358-3763 (520)-615-0689 (520)-577-2146
- ;;
- ;;+++++++++++++++++++++ end of announcement +++++++++++++++++++++++
- ;;###
- ;
- GETRECIP ;
- ;* * * Define key below to identify recipients * * *
- ;
- S CTR=0,APCLKEY="APCLZMENU"
- F S CTR=$O(^XUSEC(APCLKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
- Q
- APCLBUL ; IHS/CMI/LAB - Routine to create bulletin ;
- +1 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
- +2 ;;
- +3 ;;Here's how to make this work:
- +4 ;;
- +5 ;;1. Create your message in subroutine WRITEMSG
- +6 ;;2. Identify recipients in GETRECIP by setting APCLKEY
- +7 ;;3. Make changes in SUBJECT and SENDER as desired
- +8 ;;4. Rename this routine in appropriate namespace and
- +9 ;; call on completion of patch or upgrade
- +10 ;
- +11 IF '$GET(DUZ)
- WRITE !,"DUZ UNDEFINED OR ZERO.",!
- QUIT
- +12 DO HOME^%ZIS
- DO DT^DICRW
- +13 ;
- +14 NEW XMSUB,XMDUZ,XMTEXT,XMY,DIFROM
- +15 KILL ^TMP($JOB,"APCLBUL")
- +16 DO WRITEMSG
- DO GETRECIP
- +17 ;Change following lines as desired
- SUBJECT SET XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
- SENDER SET XMDUZ="Cimarron Medical Informatics"
- +1 SET XMTEXT="^TMP($J,""APCLBUL"","
- SET XMY(1)=""
- SET XMY(DUZ)=""
- +2 IF $EXTRACT(IOST)="C"
- WRITE !,"Sending Mailman message to holders of the"_" "_APCLKEY_" "_"security key."
- +3 DO ^XMD
- +4 KILL ^TMP($JOB,"APCLBUL"),APCLKEY
- +5 QUIT
- +6 ;
- WRITEMSG ;
- +1 FOR %=3:1
- SET X=$PIECE($TEXT(WRITEMSG+%),";",3)
- IF X="###"
- QUIT
- SET ^TMP($JOB,"APCLBUL",%)=X
- +2 QUIT
- +3 ;;
- +4 ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- +5 ;;+ This message is intended to advise you of changes, +
- +6 ;;+ upgrades or other important RPMS information
- +7 ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- +8 ;;
- +9 ;;PCC Management Reports Patch 8 has recently been installed. This patch
- +10 ;;includes the following modifications/enhancements:
- +11 ;;
- +12 ;;-DM Audit 2000. New items on the audit include:
- +13 ;;--ARB drugs
- +14 ;;--Lipid Lowering Drugs
- +15 ;;--PAP Smear
- +16 ;;--HDL
- +17 ;;--Several new DM Audit taxonomies which must be populated prior to running the
- +18 ;; audit.
- +19 ;;-A new option to display DM Audit criteria by item.
- +20 ;;-A new report listing all patients on the Diabetes Register or patients with
- +21 ;; at least "n" diabetes diagnoses but DO NOT have DM on their problem list.
- +22 ;;-A new report to list patients whose blood pressure is considered to be out
- +23 ;; of control.
- +24 ;;-A new report called RX Data Analysis report.
- +25 ;;-Fixes to Injury Surveillance Reports.
- +26 ;;-Fix to prevent program error if provider class not specified or a provider
- +27 ;; class without a code is selected.
- +28 ;;-Fix of the CHS portion of the Operations Summary.
- +29 ;;-Enhancement of the Overweight/Obesity Prevalence Report.
- +30 ;;-Update of the BMI Standard Reference Data Table
- +31 ;;
- +32 ;;For additional information contact your RPMS site manager, Area Office RPMS
- +33 ;;support staff or any of the following Cimarron staff members:
- +34 ;;
- +35 ;;Dorothy Russell * Gary Lawless * Bill Mason * Lori Butcher
- +36 ;;(520)-743-3275 (715)-358-3763 (520)-615-0689 (520)-577-2146
- +37 ;;
- +38 ;;+++++++++++++++++++++ end of announcement +++++++++++++++++++++++
- +39 ;;###
- +40 ;
- GETRECIP ;
- +1 ;* * * Define key below to identify recipients * * *
- +2 ;
- +3 SET CTR=0
- SET APCLKEY="APCLZMENU"
- +4 FOR
- SET CTR=$ORDER(^XUSEC(APCLKEY,CTR))
- IF 'CTR
- QUIT
- SET Y=CTR
- SET XMY(Y)=""
- +5 QUIT