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

PXRMV1IE.m

Go to the documentation of this file.
  1. PXRMV1IE ; SLC/PJH - Error handling routines. ;06/02/1999
  1. ;;1.5;CLINICAL REMINDERS;;Jun 19, 2000
  1. ;
  1. ;======================================================================
  1. ERR(ERROR) ;
  1. ;Send a MailMan message to the mail group defined by the site
  1. N IC,MGIEN,MGROUP,SUB,XMSUB,XMY,XMZ
  1. ;;
  1. S XMSUB="Error in Reminder Conversion"
  1. ;
  1. ;Get the message number
  1. F D XMZ^XMA2 Q:XMZ>0
  1. ;
  1. ;Load the message
  1. S ^XMB(3.9,XMZ,2,1,0)="The time of the error was "_$$FMTE^XLFDT($$NOW^XLFDT,"5Y")
  1. ;
  1. S SUB=""
  1. F IC=3:1 S SUB=$O(ERROR(SUB)) Q:SUB="" D
  1. .S ^XMB(3.9,XMZ,2,IC,0)=ERROR(SUB)
  1. ;
  1. S ^XMB(3.9,XMZ,2,0)="^3.92^"_+6_U_+6_U_DT
  1. ;
  1. ;Send the message to the site defined mailgroup.
  1. S MGIEN=$G(^PXRM(800,1,"MGFE"))
  1. ;If the mailgroup has not been defined send the message to the user.
  1. I MGIEN="" D
  1. . S MGROUP=DUZ
  1. . S ^XMB(3.9,XMZ,2,IC,0)=" "
  1. . S ^XMB(3.9,XMZ,2,IC+1,0)="You received this message because your IRM has not setup a mailgroup to receive"
  1. . S ^XMB(3.9,XMZ,2,IC+2,0)="Clinical Reminder errors, please notify them."
  1. E S MGROUP="G."_$$GET1^DIQ(3.8,MGIEN,.01)
  1. ;
  1. S MGROUP=MGROUP_"@"_^XMB("NETNAME")
  1. S XMY(MGROUP)=""
  1. D ENT1^XMD
  1. Q