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

PXRMP4EC.m

Go to the documentation of this file.
  1. PXRMP4EC ; SLC/PKR - PXRM*2.0*4 environment check. ;03/15/2005
  1. ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21
  1. ;
  1. ;===============================================================
  1. ENVCHK ;Perform an environment check. Look for any reminders still using
  1. ;old-style MRD. Do not install if any are found.
  1. N NL,TEXT
  1. D FOMRD(.NL)
  1. I NL>2 S XPDABORT=1
  1. I $G(XPDABORT) D
  1. . S TEXT(1)="Patch PXRM*2*4 cannot be installed because some reminders are still using"
  1. . S TEXT(2)="the old-style MRD. A message is being sent to the reminders mailgroup that"
  1. . S TEXT(3)="lists the reminders still using the old-style MRD. Please replace the old-style"
  1. . S TEXT(4)="MRD with a function finding."
  1. . D EN^DDIOL(.TEXT)
  1. E D
  1. . S TEXTI(1)="Environment check passed, ok to install patch PXRM*2*4"
  1. . D EN^DDIOL(.TEXT)
  1. Q
  1. ;
  1. ;===============================================================
  1. FOMRD(NL) ;Flag all definitions using the old-style MRD.
  1. N CPCL,IEN,NAME,XMSUB
  1. K ^TMP("PXRMXMZ",$J)
  1. S XMSUB="Old-style MRD obsolete"
  1. S ^TMP("PXRMXMZ",$J,1,0)="The following reminder definitions use the old-style MRD function;"
  1. S ^TMP("PXRMXMZ",$J,2,0)="please change them to use a function finding."
  1. S NL=2
  1. S IEN=0
  1. F S IEN=+$O(^PXD(811.9,IEN)) Q:IEN=0 D
  1. . S CPCL=$G(^PXD(811.9,IEN,30))
  1. . I CPCL'["MRD" Q
  1. . S NAME=$P(^PXD(811.9,IEN,0),U,1)
  1. . S NL=NL+1
  1. . S ^TMP("PXRMXMZ",$J,NL,0)=" "
  1. . S NL=NL+1
  1. . S ^TMP("PXRMXMZ",$J,NL,0)="Reminder: "_NAME_", ien - "_IEN
  1. . S NL=NL+1
  1. . S ^TMP("PXRMXMZ",$J,NL,0)="Custom cohort logic: "_CPCL
  1. I NL=2 K ^TMP("PXRMXMZ",$J) Q
  1. D SEND^PXRMMSG(XMSUB)
  1. Q
  1. ;