ACMBUL6 ; IHS/CMI/TMJ - Routine to create bulletin; [ 05/11/06 3:01 PM ]
;;2.0;ACM CASE MANAGEMENT SYSTEM;**6**;JAN 10, 1996
;;
;;Here's how to make this work:
;;
;;1. Create your message in subroutine WRITEMSG
;;2. Identify recipients in GETRECIP by setting appropriate key
;;3. Make changes in SUBJECT and SENDER as desired
;;4. Callthis routine 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,"ACMBUL")
D WRITEMSG,GETRECIP
;Change following lines as desired
SUBJECT S XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
SENDER S XMDUZ="Case Management System Coordinator"
S XMTEXT="^TMP($J,""ACMBUL"",",XMY(1)="",XMY(DUZ)=""
I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_ACMKEY_" "_"security key."
D ^XMD
KILL ^TMP($J,"ACMBUL"),ACMKEY
Q
;
WRITEMSG ;
F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"ACMBUL",%)=X
Q
;;
;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;;+ This message is intended to advise you of changes, +
;;+ upgrades or other important RPMS information
;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;;
;;Case Management System patch 6 has recently been installed, and
;;includes the following modifications/enhancements:
;;
;;1. Various technical programming changes.
;;
;;2. New Option to install National Pre-Diabetes Register
;;
;;This option will guide the User through the following
;;1 = Installing the IHS National Pre-Diabetes Register"
;;if you currently are not using a Pre-Diabetes Register.
;;OR
;;2 = Converting an existing Case Management based
;;Register to the "IHS Pre-Diabetes Register, renaming your
;;register and adding Elements: Register Data, Case Review
;;Dates, Diagnoses, Complications, Diagnostic Criteria, and
;;Risk Factors included in the IHS Standard.
;;Answer NO if you have an existing Pre-Diabetes Register.
;;Answer YES if you want the IHS National Pre-Diabetes
;;Register installed.
;;
;;3. New General Retrieval Items
;; 1. Initial Entry Date
;; 2. Inactivation Date
;; 3. Risk Factors
;; 4. DX Criteria
;; 5. Intervention
;; 6. Intervention Due Date
;; 7. Intervention Result Date
;; 8. Intervention Results
;; 9. Mlg Address - State
;; 10. Mlg Address - Zip
;;
;;
;;4. Fix print template (ACM RECALL LETTERS) when printing Recall Letters.
;;5. Added a Screen Message, when installing the new Pre-Diabetes
;;Register. If an existing Register is named IHS-PRE DIABETES the
;;User must first change the existing Register name before install.
;;6. Added the Register Creator Name to the Screen Display - Stating
;;You are not the Creator of this Register.
;;7. Fix code on the Complication Onset Date under General Retrieval Item.
;;8. Fixed Master List to single space patient names.
;;9. Changed display on Case Summary for *Insurance Information* only if
;;patient has insurance and added new heading for Patient Information.
;;10. Completed data entry to include new measurement types.
;;
;;
;;For additional information contact your RPMS site manager, Area Office RPMS or
;;the HELP DESK.
;;
;;
;;+++++++++++++++++++++ End of Announcement +++++++++++++++++++++++
;;###
;
GETRECIP ;
;* * * Define key below to identify recipients * * *
;
S CTR=0,ACMKEY="ACMZMENU"
F S CTR=$O(^XUSEC(ACMKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
Q
ACMBUL6 ; IHS/CMI/TMJ - Routine to create bulletin; [ 05/11/06 3:01 PM ]
+1 ;;2.0;ACM CASE MANAGEMENT SYSTEM;**6**;JAN 10, 1996
+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 appropriate key
+7 ;;3. Make changes in SUBJECT and SENDER as desired
+8 ;;4. Callthis routine on completion of patch or upgrade
+9 ;
+10 IF '$GET(DUZ)
WRITE !,"DUZ UNDEFINED OR ZERO.",!
QUIT
+11 DO HOME^%ZIS
DO DT^DICRW
+12 ;
+13 NEW XMSUB,XMDUZ,XMTEXT,XMY,DIFROM
+14 KILL ^TMP($JOB,"ACMBUL")
+15 DO WRITEMSG
DO GETRECIP
+16 ;Change following lines as desired
SUBJECT SET XMSUB="* * * IMPORTANT RPMS INFORMATION * * *"
SENDER SET XMDUZ="Case Management System Coordinator"
+1 SET XMTEXT="^TMP($J,""ACMBUL"","
SET XMY(1)=""
SET XMY(DUZ)=""
+2 IF $EXTRACT(IOST)="C"
WRITE !,"Sending Mailman message to holders of the"_" "_ACMKEY_" "_"security key."
+3 DO ^XMD
+4 KILL ^TMP($JOB,"ACMBUL"),ACMKEY
+5 QUIT
+6 ;
WRITEMSG ;
+1 FOR %=3:1
SET X=$PIECE($TEXT(WRITEMSG+%),";",3)
IF X="###"
QUIT
SET ^TMP($JOB,"ACMBUL",%)=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 ;;Case Management System patch 6 has recently been installed, and
+10 ;;includes the following modifications/enhancements:
+11 ;;
+12 ;;1. Various technical programming changes.
+13 ;;
+14 ;;2. New Option to install National Pre-Diabetes Register
+15 ;;
+16 ;;This option will guide the User through the following
+17 ;;1 = Installing the IHS National Pre-Diabetes Register"
+18 ;;if you currently are not using a Pre-Diabetes Register.
+19 ;;OR
+20 ;;2 = Converting an existing Case Management based
+21 ;;Register to the "IHS Pre-Diabetes Register, renaming your
+22 ;;register and adding Elements: Register Data, Case Review
+23 ;;Dates, Diagnoses, Complications, Diagnostic Criteria, and
+24 ;;Risk Factors included in the IHS Standard.
+25 ;;Answer NO if you have an existing Pre-Diabetes Register.
+26 ;;Answer YES if you want the IHS National Pre-Diabetes
+27 ;;Register installed.
+28 ;;
+29 ;;3. New General Retrieval Items
+30 ;; 1. Initial Entry Date
+31 ;; 2. Inactivation Date
+32 ;; 3. Risk Factors
+33 ;; 4. DX Criteria
+34 ;; 5. Intervention
+35 ;; 6. Intervention Due Date
+36 ;; 7. Intervention Result Date
+37 ;; 8. Intervention Results
+38 ;; 9. Mlg Address - State
+39 ;; 10. Mlg Address - Zip
+40 ;;
+41 ;;
+42 ;;4. Fix print template (ACM RECALL LETTERS) when printing Recall Letters.
+43 ;;5. Added a Screen Message, when installing the new Pre-Diabetes
+44 ;;Register. If an existing Register is named IHS-PRE DIABETES the
+45 ;;User must first change the existing Register name before install.
+46 ;;6. Added the Register Creator Name to the Screen Display - Stating
+47 ;;You are not the Creator of this Register.
+48 ;;7. Fix code on the Complication Onset Date under General Retrieval Item.
+49 ;;8. Fixed Master List to single space patient names.
+50 ;;9. Changed display on Case Summary for *Insurance Information* only if
+51 ;;patient has insurance and added new heading for Patient Information.
+52 ;;10. Completed data entry to include new measurement types.
+53 ;;
+54 ;;
+55 ;;For additional information contact your RPMS site manager, Area Office RPMS or
+56 ;;the HELP DESK.
+57 ;;
+58 ;;
+59 ;;+++++++++++++++++++++ End of Announcement +++++++++++++++++++++++
+60 ;;###
+61 ;
GETRECIP ;
+1 ;* * * Define key below to identify recipients * * *
+2 ;
+3 SET CTR=0
SET ACMKEY="ACMZMENU"
+4 FOR
SET CTR=$ORDER(^XUSEC(ACMKEY,CTR))
IF 'CTR
QUIT
SET Y=CTR
SET XMY(Y)=""
+5 QUIT