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

RA86PST.m

Go to the documentation of this file.
  1. RA86PST ;Hines OI/GJC - Post-init Driver, patch 86 ;06/26/07 10:44
  1. VERSION ;;5.0;Radiology/Nuclear Medicine;**86**;Mar 16, 1998;Build 7
  1. ;
  1. ;Supported IA #10013 reference to ^DIK
  1. ;Removed the auditing for Requesting Location Field of file #75.1
  1. ;
  1. Q
  1. ;
  1. PRE ;entry point for the pre-install logic.
  1. S DIK="^DD(75.1,",DA(1)=75.1,DA=22 D ^DIK
  1. K DA,DIK
  1. Q
  1. ;
  1. EN ; entry point for the post-install logic
  1. ; re-compile RA REGISTER input template
  1. N X,Y,DMAX K RACTNAM,RADMAX,RAINPERR,RAINPNME S RADMAX=$$ROUSIZE^DILF
  1. S RAINPNME="RA REGISTER"
  1. S RACTNAM="RACTRG"
  1. D FIND^DIC(.402,"","","X",RAINPNME,"","B","","","RAINPARY","")
  1. I $P($G(RAINPARY("DILIST",0)),U)=0 S RAINPERR=$$ERROR(RAINPNME,0) Q
  1. I $P($G(RAINPARY("DILIST",0)),U)>1 S RAINPERR=$$ERROR(RAINPNME,-1) Q
  1. K DMAX,X,Y
  1. ;DMAX: maximum routine size
  1. ; X: the name of the routine for the compiled input template; i.e. RACTRG
  1. ; Y: the IEN of the input template to be compiled
  1. S DMAX=RADMAX,X=RACTNAM,Y=$G(RAINPARY("DILIST",2,1))
  1. D EN^DIEZ
  1. ;
  1. K RACTNAM,RADMAX,RAINPARY,RAINPERR,RAINPNME
  1. Q
  1. ;
  1. ; Integration Agreements utilized in this software
  1. ;
  1. ; tag routine number usage custodian
  1. ; --------------------------------------------------
  1. ; EN DIEZ 10002 supported VA FileMan
  1. ; BMES XPDUTL 10141 supported KERNEL
  1. ; FIND DIC 2051 supported VA FileMan
  1. ; ROUSIZE DILF 2649 supported VA FileMan
  1. ;
  1. ; RADMAX=maximum routine size (bytes) for this system
  1. ; RACTNAM=compiled input template name (fixed to input template)
  1. ; RAINPERR=error flag - default value is zero (no error condition)
  1. ; a value of one if: the input template lookup failed or
  1. ; expected compiled input template name is not associated
  1. ; with the proper input template
  1. ; RAINPARY=local array where input template specific data is stored
  1. ; RAINPNME=input template name
  1. ;
  1. ERROR(N,Y) ;This function set the error flag & records the error
  1. K RATXT
  1. S:Y=0 RATXT(1)="'"_N_"' was not found in the INPUT TEMPLATE (#.402) file."
  1. I Y=-1 D
  1. .S RATXT(1)="Multiple versions of '"_N_"' were found"
  1. .S RATXT(2)="in the INPUT TEMPLATE (#.402) file. Fix the"
  1. .S RATXT(3)="problem and manually recompile the input template using"
  1. .S RATXT(4)="the 'Template Compilation' [RA COMPILE TEMPLATES] option."
  1. .Q
  1. D BMES^XPDUTL(.RATXT) K RATXT
  1. Q 1