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

IVM289M.m

Go to the documentation of this file.
  1. IVM289M ;ALB/RMM IVM Patient File Xref Cleanup Mailman Msg ; 01/27/2004
  1. ;;2.0;INCOME VERIFICATION MATCH;**89**:21-OCT-94
  1. ;
  1. ; This routine was created to handle MailMan message for the
  1. ; Cleanup in Patch IVM*2*89
  1. ;
  1. MAIL ; Send a mailman msg to user with results
  1. N DIFROM,%,X,XMDUZ,XMSUB,XMTEXT,XMY,Y,MSG
  1. N LNCNT
  1. ;
  1. K ^TMP("IVM289",$J)
  1. S XMSUB="IVM Patient File Xref Cleanup"
  1. S XMDUZ="IVM Cleanup Package",XMY(DUZ)=""
  1. S XMTEXT="MSG("
  1. ;
  1. BLDHD ; Build the message head section of the report
  1. S LNCNT=0
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" IVM Patient File Xref Cleanup"
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Patch IVM*2.0*89 Post Install"
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=$$REPEAT^XLFSTR("=",50)
  1. ;
  1. BLDBDY ; Build the data section of the report
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Recap of Purged Xrefs for Future Dated"
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Income Tests"
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=$$REPEAT^XLFSTR("-",50)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Invalid 301.5 record pointers: "_$$RJ^XLFSTR($FN(^XTMP("IVM289",0,"IVM"),","),6)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Invalid 408.31 record pointers: "_$$RJ^XLFSTR($FN(^XTMP("IVM289",0,"DGMT"),","),6)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Duplicate xref entries: "_$$RJ^XLFSTR($FN(^XTMP("IVM289",0,"DUP"),","),6)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=$$REPEAT^XLFSTR("-",50)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Total xrefs checked: "_$$RJ^XLFSTR($FN(^XTMP("IVM289",0,"TOT"),","),6)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=" Total xrefs deleted: "_$$RJ^XLFSTR($FN(^XTMP("IVM289",0,"DEL"),","),6)
  1. S LNCNT=LNCNT+1,MSG(LNCNT)=$$REPEAT^XLFSTR("-",50)
  1. ;
  1. SNDMSG ; Send the MailMan message
  1. D ^XMD
  1. ;
  1. Q