APCLP10 ; IHS/CMI/LAB - Routine to create bulletin ; [ 08/23/01 4:32 PM ]
;;3.0;IHS PCC REPORTS;**10**;FEB 15, 1997
;;
; The following line prevents the "Disable Options..." and "Move
; Routines..." questions from being asked during the install.
I $G(XPDENV)=1 S (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0
Q
;
POST ;EP
OPT ;add 2 new options (supplement, report)
S X=$$ADD^XPDMENU("APCL M MAIN DM MENU","APCL DM2001 AUDIT MENU","DM01",4)
I 'X W "Attempt to add DM 2001 Audit Menu option failed.." H 3
NEW X S X=$$ADD^XPDMENU("APCL M MAIN DM MENU","APCL DM PTS 4 MONTHS","DMV")
I 'X W "Attempt to add DM PTS WITH VALUES option failed." H 3
NEW X S X=$$ADD^XPDMENU("APCL M DX/PROC COUNT REPORTS","APCL P QA FREQ CPT","FCPT")
I 'X W "Attempt to add FREQUENCY OF CPT REPORT option failed." H 3
;*********SEND OUT ATXCHK
;;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 10 has recently been installed. This patch
;;includes the following modifications/enhancements:
;;
;;Contains the 2001 DM Audit.
;;Contains a new Frequency of CPTs report.
;;-DM Audit 2000. Changes the way lab values are found. If 2 of the
;;same lab are found on the same day, the one with a result is used.
;;-DM Audit 2000: fixes the duration of diabetes cumulative totals.
;;-DM Audit 2000: fixes the TB status totals on the cumulative audit.
;;-Adds VGEN items: 3P Bill Number, Exams, Posting Date of Visit
;;-Fixes VGEN items: PHN Items
;;-Adds an option to print a list of Patients on the Diabetes Register with their 2 most
;;recent HGB A1c, BP, LDL, HDL and Total Cholesterol Values.
;;This report is run by Primary Provider and compares a provider to
;;the entire register.
;;
;;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
APCLP10 ; IHS/CMI/LAB - Routine to create bulletin ; [ 08/23/01 4:32 PM ]
+1 ;;3.0;IHS PCC REPORTS;**10**;FEB 15, 1997
+2 ;;
+3 ; The following line prevents the "Disable Options..." and "Move
+4 ; Routines..." questions from being asked during the install.
+5 IF $GET(XPDENV)=1
SET (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0
+6 QUIT
+7 ;
POST ;EP
OPT ;add 2 new options (supplement, report)
+1 SET X=$$ADD^XPDMENU("APCL M MAIN DM MENU","APCL DM2001 AUDIT MENU","DM01",4)
+2 IF 'X
WRITE "Attempt to add DM 2001 Audit Menu option failed.."
HANG 3
+3 NEW X
SET X=$$ADD^XPDMENU("APCL M MAIN DM MENU","APCL DM PTS 4 MONTHS","DMV")
+4 IF 'X
WRITE "Attempt to add DM PTS WITH VALUES option failed."
HANG 3
+5 NEW X
SET X=$$ADD^XPDMENU("APCL M DX/PROC COUNT REPORTS","APCL P QA FREQ CPT","FCPT")
+6 IF 'X
WRITE "Attempt to add FREQUENCY OF CPT REPORT option failed."
HANG 3
+7 ;*********SEND OUT ATXCHK
+8 ;;Here's how to make this work:
+9 ;;
+10 ;;1. Create your message in subroutine WRITEMSG
+11 ;;2. Identify recipients in GETRECIP by setting APCLKEY
+12 ;;3. Make changes in SUBJECT and SENDER as desired
+13 ;;4. Rename this routine in appropriate namespace and
+14 ;; call on completion of patch or upgrade
+15 ;
+16 IF '$GET(DUZ)
WRITE !,"DUZ UNDEFINED OR ZERO.",!
QUIT
+17 DO HOME^%ZIS
DO DT^DICRW
+18 ;
+19 NEW XMSUB,XMDUZ,XMTEXT,XMY,DIFROM
+20 KILL ^TMP($JOB,"APCLBUL")
+21 DO WRITEMSG
DO GETRECIP
+22 ;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 10 has recently been installed. This patch
+10 ;;includes the following modifications/enhancements:
+11 ;;
+12 ;;Contains the 2001 DM Audit.
+13 ;;Contains a new Frequency of CPTs report.
+14 ;;-DM Audit 2000. Changes the way lab values are found. If 2 of the
+15 ;;same lab are found on the same day, the one with a result is used.
+16 ;;-DM Audit 2000: fixes the duration of diabetes cumulative totals.
+17 ;;-DM Audit 2000: fixes the TB status totals on the cumulative audit.
+18 ;;-Adds VGEN items: 3P Bill Number, Exams, Posting Date of Visit
+19 ;;-Fixes VGEN items: PHN Items
+20 ;;-Adds an option to print a list of Patients on the Diabetes Register with their 2 most
+21 ;;recent HGB A1c, BP, LDL, HDL and Total Cholesterol Values.
+22 ;;This report is run by Primary Provider and compares a provider to
+23 ;;the entire register.
+24 ;;
+25 ;;For additional information contact your RPMS site manager, Area Office RPMS
+26 ;;support staff or any of the following Cimarron staff members:
+27 ;;
+28 ;;Dorothy Russell * Gary Lawless * Bill Mason * Lori Butcher
+29 ;;(520)-743-3275 (715)-358-3763 (520)-615-0689 (520)-577-2146
+30 ;;
+31 ;;+++++++++++++++++++++ end of announcement +++++++++++++++++++++++
+32 ;;###
+33 ;
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