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

SD53P499.m

Go to the documentation of this file.
  1. SD53P499 ;ALB/ESW - SD*5.3*499 POST INIT; Oct 04, 2006 ; Compiled February 12, 2008 11:19:50
  1. ;;5.3;SCHEDULING;**499**;AUG 13, 1993;Build 21
  1. ;Unflagging all entries from file 404.43 from inactivation
  1. ;Sending a notification to the PCMM PATIENT/PROVIDER INACTIVE Mail Group
  1. ;Flagging for inactivation entries in file 404.43 following the revised functionality
  1. Q
  1. ;
  1. POST ;
  1. N SDA
  1. S SDA(1)="",SDA(2)=" SD*5.3*499 Post-Install started.....",SDA(3)="" D ATADDQ
  1. ;
  1. N SDA
  1. S SDA(1)="",SDA(2)=" Un-flagging the current entries in the Patient Team Position Assignment"
  1. S SDA(3)=" file (# 404.43)",SDA(4)="" D ATADDQ
  1. N SDA
  1. N SD499,SDDATE S SDDATE="" F S SDDATE=$O(^SCPT(404.43,"AFLG",SDDATE)) Q:SDDATE="" D
  1. .S SD499="" F S SD499=$O(^SCPT(404.43,"AFLG",SDDATE,SD499)) Q:SD499="" D
  1. ..N ENTRY S ENTRY=SD499 D UNFLG^SCMCTSK2
  1. S SDA(1)="",SDA(2)=" Patients un-flagging process has been finished.",SDA(3)="" D ATADDQ
  1. ;
  1. N SDA S SDA(1)=""
  1. S SDA(2)=" Flagging patients for inactivation following new functionality started."
  1. S SDA(3)="" D ATADDQ
  1. D INACTIVE^SCMCTSK1
  1. N SDA S SDA(1)=""
  1. S SDA(2)=" Flagging Patients for Inactivation has been finished. "
  1. S SDA(3)="Use option: SCHD Patients Scheduled for Inactivation from PC Panels"
  1. S SDA(4)="to print the current list of patients flagged for inactivation."
  1. S SDA(5)="" D ATADDQ
  1. ;another message
  1. N SDX,CNT S CNT=0
  1. S CNT=CNT+1,SDX(CNT)=" PATIENT TEAM POSITION ASSIGNMENT file has been updated "
  1. S CNT=CNT+1,SDX(CNT)=" by un-flagging all entries from inactivation "
  1. S CNT=CNT+1,SDX(CNT)=" and then flagging them again following new functionality"
  1. S CNT=CNT+1,SDX(CNT)=" provided with patch SD*5.3*499."
  1. S CNT=CNT+1,SDX(CNT)=" Use option: SCHD Patients Scheduled for Inactivation from PC Panels"
  1. S CNT=CNT+1,SDX(CNT)=" to print a current list of patients flagged for inactivation."
  1. D MSGG(.SDX)
  1. Q
  1. ATADDQ D MES^XPDUTL(.SDA) K SDA
  1. Q
  1. MSG(X) ;
  1. N SDX S SDX=$O(SDA(999999),-1) S:'SDX SDX=1 S SDX=SDX+1
  1. S SDA(SDX)=$G(X)
  1. Q
  1. MSGG(SDX) ;send message
  1. N SDAMX,XMSUB,XMY,XMTEXT,XMDUZ,DIFROM
  1. S XMSUB="PATCH SD*5.3*499 POST-INSTALL: Update Entries in File 404.43"
  1. S XMY("G.PCMM PATIENT/PROVIDER INACTIVE")=""
  1. S XMY(DUZ)=""
  1. S XMTEXT="SDX("
  1. S CNT=$O(SDX(""),-1)
  1. D ^XMD