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

SD53128P.m

Go to the documentation of this file.
  1. SD53128P ;ALB/JRP - ENV CHECK / PRE-INIT / POST-INIT;29-JUL-97
  1. ;;5.3;Scheduling;**128**;AUG 13, 1993
  1. ;
  1. ENV ;Environment check entry point
  1. ;
  1. ;Declare variables
  1. N TMP,ROUTINE
  1. ;Check for installation of SD*5.3*66 (released after 128)
  1. Q:('$$PATCH^XPDUTL("SD*5.3*66"))
  1. ;Site installed patch 66
  1. S TMP(1)=" "
  1. S TMP(2)="*** Patch SD*5.3*66 has been installed at this site. ***"
  1. S TMP(3)="*** ***"
  1. S TMP(3)="*** Although patches SD*5.3*66 and SD*5.3*128 modified ***"
  1. S TMP(4)="*** some common routines, they could not be released ***"
  1. S TMP(5)="*** as a single patch. ***"
  1. S TMP(6)="*** ***"
  1. S TMP(7)="*** Routines common to pathes SD*5.3*66 and SD*5.3*128 ***"
  1. S TMP(8)="*** will not be installed. ***"
  1. S TMP(9)=" "
  1. D MES^XPDUTL(.TMP)
  1. ;Tell KIDS to skip overlap routines during installation
  1. F ROUTINE="SCDXMSG","SCDXMSG2","SCDXFU02" D
  1. .D BMES^XPDUTL("Telling KIDS to skip installation of "_ROUTINE)
  1. .I ($$RTNUP^XPDUTL(ROUTINE,2)) D MES^XPDUTL("Done") Q
  1. .;Error - abort install
  1. .K TMP
  1. .S TMP(1)=" >>"
  1. .S TMP(2)=" >> Unable to tell KIDS to skip installation of "_ROUTINE
  1. .S TMP(3)=" >> Installation will be aborted"
  1. .S TMP(4)=" >>"
  1. .D MES^XPDUTL(.TMP)
  1. .S XPDQUIT=1
  1. ;Done
  1. Q
  1. ;
  1. PRE ;Pre-init entry point
  1. ;
  1. Q
  1. ;
  1. POST ;Post-init entry point
  1. ;
  1. ;Declare variables
  1. N TMP,COUNT,SEED
  1. ;Get seed date (quit if not found - means question wasn't asked)
  1. S SEED=+$G(XPDQUES("POSSEED"))
  1. Q:('SEED)
  1. ;Seed ACRP Transmission History file (#409.77) with xmit & ack
  1. ; information in Transmitted Outpatient Encounter file (#409.73)
  1. S TMP(1)=" "
  1. S TMP(2)="Seeding ACRP Transmission History file (#409.77) with"
  1. S TMP(3)="transmission and acknowledgement information currently"
  1. S TMP(4)="contained in the Transmitted Outpatient Encounter file"
  1. S TMP(5)="(#409.73). Seeding will be based on transmissions that"
  1. S TMP(6)="occurred between "_$$FMTE^XLFDT(SEED)_" and "_$$FMTE^XLFDT($$DT^XLFDT())_"."
  1. S TMP(7)=" "
  1. D MES^XPDUTL(.TMP)
  1. S COUNT=$$SEEDHIST^SD53128A(SEED)
  1. K TMP
  1. S TMP(1)=" "
  1. S TMP(2)=COUNT_" entries in the ACRP Transmission History file"
  1. S TMP(3)="have been created"
  1. S TMP(4)=" "
  1. D MES^XPDUTL(.TMP)
  1. ;Done
  1. Q