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

RA63PST.m

Go to the documentation of this file.
  1. RA63PST ;HIOFO/SWM-Post install
  1. ;;5.0;Radiology/Nuclear Medicine;**63**;Mar 16, 1998
  1. ; This is the post-install routine for patch RA*5.0*63
  1. ; It will loop thru the first record in file 79
  1. ; and insert "Y" for the new field, "IS THIS FOR HQ?" only if
  1. ; the SMTP address is "VHARADIOLOGYREPORTS@HQ.DOMAIN.EXT"
  1. ;
  1. ; This routine may be deleted after RA*5.0*63 is installed.
  1. ;
  1. N RA1,RA2,RASTR,RAVAL,RAFDA,RAIEN
  1. S RATXT(1)=""
  1. S RATXT(2)="** File 79, RAD/NUC MED DIVISION,"
  1. S RATXT(3)=" new field ""OQP PERFORMANCE MGMT?"" "
  1. S RATXT(4)=" has been updated with data. **"
  1. S RA1=$O(^RA(79,0)),RA2=0,RAC=0
  1. F S RA2=$O(^RA(79,RA1,1,RA2)) Q:'RA2 D
  1. . S RAC=RAC+1 ;counter
  1. . S RASTR=$G(^RA(79,RA1,1,RA2,0)) Q:RASTR=""
  1. . S RAIEN=RA2_","_RA1_","
  1. . S RAVAL=$P(RASTR,"^"),RAVAL=$$UP^XLFSTR(RAVAL) ;smtp address all caps
  1. . I RAVAL="VHARADIOLOGYREPORTS@HQ.DOMAIN.EXT" S RAFDA(79.0175,RAIEN,1)="Y"
  1. . E S RAFDA(79.0175,RAIEN,1)="N"
  1. . D FILE^DIE("","RAFDA") K RAFDA,RAIEN
  1. . Q
  1. I RAC=0 S RATXT(4)=" has NO data because there are NO Outlook mail groups in this file."
  1. D MES^XPDUTL(.RATXT)
  1. Q