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

DG53489P.m

Go to the documentation of this file.
  1. DG53489P ;ALB/EW;BPFO/MM -PRE/POST INIT FOR DG*5.3*489 ;3/10/2003
  1. ;;5.3;Registration;**489,1015**;Aug 13, 1993;Build 21
  1. ;
  1. ;The post initialization routine for DG*5.3*489 adds a new
  1. ;inconsistent data element to the Inconsistent Data Element
  1. ;(#38.6) file with internal entry number 63.
  1. ;
  1. POST ;Post-Install
  1. N MSGROOT,FDAWP,FDAROOT,IENROOT,IEN,X
  1. D BMES^XPDUTL("Creating definition for Conf. Address Data Incomplete - entry #63")
  1. D MES^XPDUTL("in INCONSISTENT DATA ELEMENT (#38.6) file.")
  1. I $D(^DGIN(38.6,63,0)) D Q
  1. . D BMES^XPDUTL("Internal entry number 63 already exist in file 38.6.")
  1. . D MES^XPDUTL("Cannot add Conf. Address Data Incomplete element.")
  1. S IEN="+1,"
  1. S FDAROOT(38.6,IEN,.01)="CONF. ADDRESS DATA INCOMPLETE"
  1. S FDAROOT(38.6,IEN,2)="'CONFIDENTIAL ADDRESS' INFORMATION INCOMPLETE"
  1. S FDAROOT(38.6,IEN,50)="FDAWP"
  1. S FDAWP(1,0)="Inconsistency results if a record with an active confidential"
  1. S FDAWP(2,0)="address does not contain the first line of the street address,"
  1. S FDAWP(3,0)="city, state, and zip code for the confidential address."
  1. S FDAROOT(38.6,IEN,3)="NO KEY REQUIRED"
  1. S FDAROOT(38.6,IEN,4)="NO"
  1. S FDAROOT(38.6,IEN,5)="CHECK"
  1. S IENROOT(1)=63
  1. D UPDATE^DIE("E","FDAROOT","IENROOT","MSGROOT")
  1. I $D(MSGROOT("DIERR")) D
  1. .N ERR,LN,LN2
  1. .S (ERR,LN2)=0
  1. .F S ERR=+$O(MSGROOT("DIERR",ERR)) Q:'ERR D
  1. ..S LN=0
  1. ..F S LN=+$O(MSGROOT("DIERR",ERR,"TEXT",LN)) Q:'LN D
  1. ...S LN2=LN2+1
  1. ...S X(LN2)=MSGROOT("DIERR",ERR,"TEXT",LN)
  1. ..D BMES^XPDUTL(.X)
  1. Q