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

APCHBU12.m

Go to the documentation of this file.
  1. APCHBU12 ; IHS/BJI/GRL - routine to create bulletin [ 01/14/05 10:36 AM ]
  1. ;;2.0;IHS RPMS/PCC Health Summary;**12**;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 12 has recently been installed on this RPMS computer
  1. ;;
  1. ;;
  1. ;;- Modified the In-Hospital section of the health summary
  1. ;; to not display In-Hospital visits with no purpose
  1. ;; of visit. Displaying these takes up space is meaningless
  1. ;; without a purpose of visit. (APCHS2B)
  1. ;;
  1. ;;- Modified the EXAM section to display the provider's name
  1. ;; if the provider is recorded with the exam as the provider
  1. ;; performing the exam. Data entry will soon be prompted for
  1. ;; provider with the EX mnemonic, if the provider initials the
  1. ;; exam when it is documented they can enter the provider's name
  1. ;; to link that provider to the exam. This is being done for the
  1. ;; INTIMATE PARTNER VIOLENCE SCREENING exam. (APCHS3C)
  1. ;;
  1. ;;- Added a new component called RADIOLOGY EXAMS. This component
  1. ;; differs from the existing RADIOLOGY-MOST RECENT component
  1. ;; in that it lists all Radiology exams in the date range specified
  1. ;; by the summary type, not just the most recent. This component
  1. ;; was built for use on the PATIENT MERGE (COMPLETE) summary
  1. ;; type so that a user who is reviewing all of a patient's data
  1. ;; can see all radiology exams. This component may not be
  1. ;; appropriate for the adult regular summary type. (APCHS3C)
  1. ;;
  1. ;;- Diabetes Supplement:
  1. ;; 1. Modified the supplement to display the last DIABETES
  1. ;; SELF MONITORING health factor if no strips were
  1. ;; found as being dispensed through pharmacy. (APCHS9B2)
  1. ;; 2. Added the last ESTIMATED GFR value under the CREATININE
  1. ;; Value. (APCHS9B3)
  1. ;; 3. Modified the Tobacco Use display to the last TOBACCO
  1. ;; Health factor on file. (APCHS9B6, APCHSMU)
  1. ;; 4. Modified the PAP logic to match the GPRA logic for finding
  1. ;; a Pap Smear. (APCHS9B2,APCHS9B4)
  1. ;; 5. Added LOINC code lookups to selected lab test items.
  1. ;;
  1. ;;- Added a new PRE DIABETES CARE SUMMARY as a supplement type.
  1. ;; The user must put this supplement type on their health summary
  1. ;; Types in order to have it displayed. This new supplement,
  1. ;; designed by the diabetes providers will display if the patient
  1. ;; has had a pre diabetes diagnoses (e.g. IGT) and does not have
  1. ;; diabetes on the problem list and has not had a diabetes dx
  1. ;; in the past year. Two lab taxonomies must be reviewed and
  1. ;; populated for this supplement:
  1. ;; DM AUDIT GLUCOSE TESTS TAX
  1. ;; DM AUDIT 2 HR GTT TAX
  1. ;;
  1. ;;- Added the ability to automatically switch from the health
  1. ;; summary type defined by the clinic in scheduling to the
  1. ;; diabetes summary type if the patient has diabetes on the
  1. ;; problem list or has had a diagnosis of Diabetes on a visit
  1. ;; with a primary care provider. In order to make this happen,
  1. ;; it the site decides this is desired you must update the
  1. ;; Health Summary Site parameters using option HEALTH SUMMARY
  1. ;; SITE PARAMETER SETUP which is on the Health Summary Maintenance
  1. ;; and the Build Health Summary menu options. When you
  1. ;; choose this option you must answer YES to auto switch
  1. ;; summary types and then put the name of your Diabetes
  1. ;; summary type into the subsequent field.
  1. ;;
  1. ;;- Modified the allergy sections of the health summary to work
  1. ;; with both the new and old versions of allergy tracking.
  1. ;;
  1. ;;- added a new component for scheduled encounters that excludes
  1. ;; chart requests and walk ins.
  1. ;;
  1. ;; - added an new health maintenance reminder for IPV/DV screening
  1. ;; the criteria is to prompt for Due every year for females 15
  1. ;; and over.
  1. ;; If you would like to see this prompt on your summary types
  1. ;; it must be added to the surveillance items section of the health
  1. ;; summary type.
  1. ;;
  1. ;; - added 2 medication reorder documents as supplements to the health
  1. ;; summary. These documents are used as a means to re-order
  1. ;; medications
  1. ;; for a patient. Listed on this document are all current
  1. ;; medications (defined as twice duration or 60 days) and all
  1. ;; chronic medications (defined as those flagged as chronic in
  1. ;; the pharmacy package) that were dispensed in the last year.
  1. ;; To use this document you must have it added to the summary
  1. ;; type in the supplement section.
  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