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

SDPST735.m

Go to the documentation of this file.
  1. SDPST735 ;;CCRA/PB - CCRA PRE INSTALL;NOV 4, 2019
  1. ;;5.3;Scheduling;**735**;NOV 4, 2019;Build 21
  1. ;;Per VA directive 6402, this routine should not be modified.
  1. ;Post install routine for patch SD*5.3*735.
  1. ;Checks for the CCRA-NAK logical link, if it exists, edits the link to remove
  1. ;the institution and adds the COM CARE-OTHER non count clinic to the
  1. ;Hospital Location File (#44)
  1. Q
  1. EN ; Entry point
  1. ;D CLINIC
  1. N LIEN,VAL,SDERR,FDA,DNS
  1. D MES^XPDUTL("Checking VistA system for CCRA-NAK logical link setup...")
  1. S VAL="CCRA-NAK"
  1. S LIEN=$$FIND1^DIC(870,,"B",.VAL)
  1. I $G(LIEN)'>0 D MES^XPDUTL("Link doesn't exists") Q
  1. S DNS=$$GET1^DIQ(870,$G(LIEN)_",",400.01,"I")
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL("CCRA-NAK logical link being set up now. ")
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL("")
  1. ;
  1. ; file link with IP address and port entered
  1. K FDA,SDERR
  1. S FDA(870,$G(LIEN)_",",.02)="@" ; delete the station number
  1. S FDA(870,$G(LIEN)_",",.08)=$G(DNS) ; add dns domain for HealthConnect server
  1. D UPDATE^DIE(,"FDA",$G(LIEN)_",","SDERR") K FDA
  1. D MES^XPDUTL("")
  1. I $D(SDERR) D Q ; something went wrong
  1. .D MES^XPDUTL("FileMan error when editing the CCCRA-NAK Link.")
  1. D MES^XPDUTL("CCRA-NAK Link has been updated.")
  1. Q
  1. QEND K DIR,SDERR Q
  1. QABORT S XPDABORT=1 K DIR,SDERR Q