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

SD53P519.m

Go to the documentation of this file.
  1. SD53P519 ;ALB/JAM - POST-INSTALL FOR PATCH SD*5.3*519 ; 6/21/07 8:15am
  1. ;;5.3;Scheduling;**519,1015**;Aug 13, 1993;Build 21
  1. Q
  1. POST ;Post-Install
  1. D MES^XPDUTL("****** ******")
  1. D BMES^XPDUTL("This installation will update the Combat Veteran DEFAULT field (#.04) value")
  1. D MES^XPDUTL("in the OUTPATIENT CLASSIFICATION TYPE file (#409.41) to 'YES'.")
  1. D MES^XPDUTL(" ")
  1. D POST1
  1. D BMES^XPDUTL("****** ******")
  1. Q
  1. POST1 ;Update OUTPATIENT CLASSIFICATION TYPE file #409.41, DEFAULT field #.04
  1. N X,Y,DIC,DIE,DA,DR
  1. S DIC(0)="MX",DIC="^SD(409.41,",X="COMBAT VETERAN" D ^DIC
  1. I +Y'>0 D Q
  1. .D MES^XPDUTL(" COMBAT VETERAN record not found. No change done.")
  1. I +Y'=7 D Q
  1. .D MES^XPDUTL(" COMBAT VETERAN record doesn't match nationally distributed entry number.")
  1. S DA=7
  1. I $$GET1^DIQ(409.41,DA,.04)="YES" D Q
  1. .D MES^XPDUTL(" COMBAT VETERAN DEFAULT field (#.04) already updated to YES.")
  1. S DIE=DIC,DR=".04////"_"YES" D ^DIE
  1. I $D(DTOUT)!($D(Y)'=0) D K DTOUT Q
  1. . D MES^XPDUTL(" COMBAT VETERAN record not updated.")
  1. D MES^XPDUTL(" COMBAT VETERAN DEFAULT field (#.04) updated successfully.")
  1. Q