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

EAS1092P.m

Go to the documentation of this file.
  1. EAS1092P ;ALB/LBD - Patch Post-Install functions ; 9/26/11 4:18pm
  1. ;;1.0;ENROLLMENT APPLICATION SYSTEM;**92**;15-MAR-01;Build 20
  1. Q
  1. ;
  1. ;Update fields in 1010EZ MAPPING file #711
  1. ;
  1. EN ;Post Install entry point
  1. ; Update fields in 1010EZ MAPPING file #711
  1. D UPD711
  1. Q
  1. ;
  1. UPD711 ;Update fields in the 1010EZ MAPPING file #711
  1. ;For the records related to the Last Service Episode, change the
  1. ;data dictionary locations in the fields MAP-TO SUB-FILE (#3) and
  1. ;MAP-TO FIELD (#4) to the new Military Service Episode sub-file
  1. ;#2.3216
  1. N RECNAM,FLD,NUM,LINE,IEN,DATA,ERROR,STOP
  1. D BMES^XPDUTL("Updating records in 1010EZ MAPPING file #711")
  1. F NUM=1:1 S LINE=$T(REC711+NUM) Q:LINE=""!($P(LINE,";",3)="END") D Q:$G(STOP)
  1. .S RECNAM=$P(LINE,";",3),FLD=$P(LINE,";",4)
  1. .S IEN=$O(^EAS(711,"B",RECNAM,"")) I 'IEN D ERR711(RECNAM) Q
  1. .S DATA(3)=2.3216,DATA(4)=FLD
  1. .D UPD^DGENDBS(711,IEN,.DATA,.ERROR) I $G(ERROR)]"" D ERR711(RECNAM) Q
  1. .D MES^XPDUTL(" "_RECNAM_" -- Updated")
  1. Q
  1. ;
  1. ERR711(RECNAM) ;Display error message and set STOP=1
  1. ;
  1. N ARR
  1. S STOP=1
  1. S ARR(1)="===================================================="
  1. S ARR(2)="= ERROR ="
  1. S ARR(3)="===================================================="
  1. S ARR(4)="Unable to update record "_RECNAM
  1. S ARR(5)="===================================================="
  1. ;
  1. D BMES^XPDUTL(.ARR)
  1. ;
  1. Q
  1. REC711 ;;RECORD NAME;NEW FIELD NUMBER
  1. ;;LAST BRANCH OF SERVICE;.03
  1. ;;LAST ENTRY DATE;.01
  1. ;;LAST DISCHARGE DATE;.02
  1. ;;LAST DISCHARGE TYPE;.06
  1. ;;SERVICE NUMBER;.05
  1. ;;END