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

RMPRTDEL.m

Go to the documentation of this file.
  1. RMPRTDEL ;DEV/RGB - STOP PATIENT NOTIFICATION NIGHTLY JOB;02/18/16
  1. ;;3.0;PROSTHETICS;**180**;Feb 09, 1996;Build 12
  1. ;
  1. Q
  1. EN ; Entry Point
  1. ;
  1. D DELETE
  1. D BMES^XPDUTL("Task removal completed")
  1. Q
  1. ;
  1. ;
  1. DELETE ;Delete Task
  1. N RMPRTSK,RMPROPT,DA,DIK
  1. S RMPRTSK="RMPR DVN NIGHTLY JOB"
  1. S RMPROPT=$O(^DIC(19,"B",RMPRTSK,"")) Q:'RMPROPT
  1. S DA="" S:'$G(DT) DT=$$DT^XLFDT
  1. F S DA=$O(^DIC(19.2,"B",RMPROPT,DA)) Q:'+DA D
  1. . S ^XTMP("RMPRTSK",$J,0)=$$FMADD^XLFDT(DT,90)_"^"_DT_"^copy of RMPR DVN NIGHTLY Task^"_DA
  1. . M ^XTMP("RMPRTSK",$J,"DIC",19.2,DA)=^DIC(19.2,DA)
  1. . S DIK="^DIC(19.2," D ^DIK
  1. . D BMES^XPDUTL("Legacy task "_RMPRTSK_" Deleted.")
  1. Q
  1. ;