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

SD53459P.m

Go to the documentation of this file.
  1. SD53459P ;ALB/MRY - Pre/Post-Install; 9/29/05
  1. ;;5.3;Scheduling;**459**;Aug 13, 1993
  1. ;
  1. ;
  1. ENV ;Main entry point for Environment check point.
  1. ;
  1. S XPDABORT=""
  1. D PROGCHK(.XPDABORT) ;checks programmer variables
  1. I XPDABORT="" K XPDABORT
  1. Q
  1. ;
  1. ;
  1. PRE ;Main entry point for Pre-init items.
  1. ;
  1. ;Do AmbCare pre-install (copied from SD53142)
  1. ;Remove ERROR CODE DESCRIPTION (field #11) as an identifier of the
  1. ; TRANSMITTED OUTPATIENT ENCOUNTER ERROR CODE file (#409.76)
  1. ; (this causes problems when installing error codes)
  1. I ($D(^DD(409.76,0,"ID",11))) D
  1. .N TMP,X
  1. .S X(1)=" "
  1. .S X(2)="Removing ERROR CODE DESCRIPTION (field #11) as an identifier"
  1. .S X(3)="of the TRANSMITTED OUTPATIENT ENCOUNTER ERROR CODE file"
  1. .S X(4)="(#409.76) as it causes problems when installing error codes."
  1. .S X(5)=" "
  1. .D MES^XPDUTL(.X) K X
  1. .K ^DD(409.76,0,"ID",11)
  1. .Q:($D(^DD(409.76,0,"ID")))
  1. .S TMP=$P(^SD(409.76,0),U,2)
  1. .S TMP=$TR(TMP,"I","")
  1. .S $P(^SD(409.76,0),U,2)=TMP
  1. .Q
  1. Q
  1. ;
  1. ;
  1. ;
  1. PROGCHK(XPDABORT) ;checks for necessary programmer variables
  1. ;
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") DO
  1. .D BMES^XPDUTL("*****")
  1. .D MES^XPDUTL("Your programming variables are not set up properly.")
  1. .D MES^XPDUTL("Installation aborted.")
  1. .D MES^XPDUTL("*****")
  1. .S XPDABORT=2
  1. Q
  1. ;
  1. ;
  1. POST ;Main entry point for Post-init items.
  1. ;
  1. ;Make ERROR CODE DESCRIPTION (field #11) an identifier of the
  1. ; TRANSMITTED OUTPATIENT ENCOUNTER ERROR CODE file (#409.76)
  1. ; (this was removed by the pre init routine)
  1. I ('$D(^DD(409.76,0,"ID",11))) D
  1. .N TMP
  1. .S ^DD(409.76,0,"ID",11)="D EN^DDIOL($P(^(1),U,1))"
  1. .S TMP=$P(^SD(409.76,0),U,2)
  1. .S TMP=$TR(TMP,"I","")
  1. .S $P(^SD(409.76,0),U,2)=TMP_"I"
  1. ;
  1. ;Re-queue Ambcare records
  1. D POST^SD53459A
  1. Q