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

APCP20P6.m

Go to the documentation of this file.
  1. APCP20P6 ; IHS/TUCSON/LAB - Routine to create bulletin ; [ 08/18/2003 7:44 AM ]
  1. ;;2.0;IHS PCC DATA EXTRACTION;**6**;APR 03, 1998
  1. ;;
  1. ; The following line prevents the "Disable Options..." and "Move
  1. ; Routines..." questions from being asked during the install.
  1. I $G(XPDENV)=1 S (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0
  1. Q
  1. ;
  1. PRE ;EP - pre init
  1. ;delete all entries from rec file
  1. S APCPX=0 F S APCPX=$O(^APCPREC(APCPX)) Q:APCPX'=+APCPX S DA=APCPX,DIK="^APCPREC(" D ^DIK
  1. ;data will be reloaded with kids install
  1. Q
  1. POST ;EP
  1. ;*** REMEMBER TO SEND APCPVSTS GLOBAL AS GLOBAL OR AS KIDS
  1. OPT ;add 2 new options (supplement, report)
  1. D LAB ;build lab taxonomy
  1. NEW X
  1. S X=$$ADD^XPDMENU("APCPMENU","APCP RE-EXPORT DATE RANGE","EDR")
  1. I 'X W "Attempt to new re-export option failed.." H 3
  1. S X=$$DELETE^XPDMENU("APCPMENU","APCP RE-EXPORT MENU")
  1. S X=$$DELETE^XPDMENU("APCP REPORTS MENU","APCP RPT CHA RECORDS")
  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 APCPKEY
  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,"APCPBUL")
  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,""APCPBUL"",",XMY(1)="",XMY(DUZ)=""
  1. I $E(IOST)="C" W !,"Sending Mailman message to holders of the"_" "_APCPKEY_" "_"security key."
  1. D ^XMD
  1. KILL ^TMP($J,"APCPBUL"),APCPKEY
  1. Q
  1. ;
  1. WRITEMSG ;
  1. F %=3:1 S X=$P($T(WRITEMSG+%),";",3) Q:X="###" S ^TMP($J,"APCPBUL",%)=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 Management Reports Patch 11 has recently been installed. This patch
  1. ;;includes the following modifications/enhancements:
  1. ;;
  1. ;;Prevents an Undefined error in various reports if Provider entry
  1. ;;is missing a discipline code.
  1. ;;Modifies slightly how BMI is calculated to match other applications
  1. ;;- Prevents an undef in several reports if provider narrative is blank
  1. ;;- fixes a problem with activity time report in file 200 converted sites
  1. ;;- fixed date disply on Calender Year First/Revisit report
  1. ;;- Adds a check for cpt code 92012 for eye exam in the 2001 audit
  1. ;;- Modifies the DM Diet Education portion of the 2001 audit to more accurately
  1. ;; determine if education was provided by an RD
  1. ;;- Modifies the 2001 DM Audit to look at Staged Diabetes Managemenent Health
  1. ;;- Modifies the 2001 DM Audit to look at Diabetes Self Monitoring Health
  1. ;;- Modifies verbage on BMI reports.
  1. ;; factors.
  1. ;;- Modifies lab lookup on 2001 audit to ignore tests with result COMMENT
  1. ;;- APCPDF2 - data fetcher - protects against invalid AA xref entries
  1. ;;- Operations Summary - removes APC recode display because recode table is out
  1. ;; of date.
  1. ;;- Added the ability to save the results of the Overweight/Obese report
  1. ;; to a search template
  1. ;;- NEW REPORTS:
  1. ;; - INPC Inpatient Discharges/Days by Community
  1. ;; - INPS Inpatient Discharges/Days by SU of Residence
  1. ;; - INPT Inpatient Discharges/Days by Tribe
  1. ;; - APCP List Patients on a Register w/an Appointment
  1. ;; - HSPrint Health Summary of DM patients w/Appointment
  1. ;; - TSCR Time and Services by Provider for chart reviews
  1. ;; - INCV Listing of Incomplete Lab, Rx or Radiology Visits
  1. ;; - UPLP Upload Patients from text file to search template
  1. ;;- NEW VGEN/PGEN items
  1. ;; - Medicare Part B
  1. ;; - Problem List DX (Any)
  1. ;; - Problem List DX (Active)
  1. ;; - Problem List DX (Inactive)
  1. ;; - Hx of Surgery
  1. ;; - Most recent Tobacco HF
  1. ;; - Most recent TB HF
  1. ;; - Most recent SDM HF
  1. ;; - Most recent Alcohol HF
  1. ;;
  1. ;;For additional information contact your RPMS site manager, Area Office RPMS
  1. ;;support staff or any of the following Cimarron staff members:
  1. ;;
  1. ;;Dorothy Russell * Gary Lawless * Bill Mason * Lori Butcher
  1. ;;(520)-743-3275 (715)-358-3763 (520)-615-0689 (520)-577-2146
  1. ;;
  1. ;;+++++++++++++++++++++ end of announcement +++++++++++++++++++++++
  1. ;;###
  1. ;
  1. GETRECIP ;
  1. ;* * * Define key below to identify recipients * * *
  1. ;
  1. S CTR=0,APCPKEY="APCPZMENU"
  1. F S CTR=$O(^XUSEC(APCPKEY,CTR)) Q:'CTR S Y=CTR S XMY(Y)=""
  1. Q
  1. LAB ;
  1. S APCPX="APCP PAP SMEAR TESTS" D PAPLAB1
  1. S APCPX="APCP PSA TESTS TAX" D PSALAB1
  1. Q
  1. PAPLAB1 ;
  1. W !,"Creating ",APCPX," Taxonomy..."
  1. S APCPDA=$O(^ATXLAB("B",APCPX,0))
  1. Q:APCPDA ;taxonomy already exisits
  1. S X=APCPX,DIC="^ATXLAB(",DIC(0)="L",DIADD=1,DLAYGO=9002228 D ^DIC K DIC,DA,DIADD,DLAYGO,I
  1. I Y=-1 W !!,"ERROR IN CREATING ",APCPX," TAX" Q
  1. S APCPTX=+Y,$P(^ATXLAB(APCPTX,0),U,2)=APCPX,$P(^(0),U,5)=DUZ,$P(^(0),U,6)=DT,$P(^(0),U,8)="B",$P(^(0),U,9)=60,^ATXLAB(APCPTX,21,0)="^9002228.02101PA^0^0"
  1. S APCPX=$O(^LAB(60,"B","PAP SMEAR",0))
  1. I APCPX S ^ATXLAB(APCPTX,21,1,0)=APCPX,^ATXLAB(APCPTX,21,"B",APCPX,1)="",$P(^ATXLAB(APCPTX,21,0),U,3)=APCPX,$P(^ATXLAB(APCPTX,21,0),U,4)=1
  1. S DA=APCPTX,DIK="^ATXAX(" D IX1^DIK
  1. Q
  1. ;
  1. PSALAB1 ;
  1. W !,"Creating ",APCPX," Taxonomy..."
  1. S APCPDA=$O(^ATXLAB("B",APCPX,0))
  1. Q:APCPDA ;taxonomy already exisits
  1. S X=APCPX,DIC="^ATXLAB(",DIC(0)="L",DIADD=1,DLAYGO=9002228 D ^DIC K DIC,DA,DIADD,DLAYGO,I
  1. I Y=-1 W !!,"ERROR IN CREATING ",APCPX," TAX" Q
  1. S APCPTX=+Y,$P(^ATXLAB(APCPTX,0),U,2)=APCPX,$P(^(0),U,5)=DUZ,$P(^(0),U,6)=DT,$P(^(0),U,8)="B",$P(^(0),U,9)=60,^ATXLAB(APCPTX,21,0)="^9002228.02101PA^0^0"
  1. S APCPX=$O(^LAB(60,"B","PSA",0))
  1. I APCPX S ^ATXLAB(APCPTX,21,1,0)=APCPX,^ATXLAB(APCPTX,21,"B",APCPX,1)="",$P(^ATXLAB(APCPTX,21,0),U,3)=APCPX,$P(^ATXLAB(APCPTX,21,0),U,4)=1
  1. S DA=APCPTX,DIK="^ATXAX(" D IX1^DIK
  1. Q
  1. ;