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

MAGIP079.m

Go to the documentation of this file.
  1. MAGIP079 ;;WOIFO/MAT - DICOM Storage Commit Post-install ; 8 Jul 2013 12:49 PM
  1. ;;3.0;IMAGING;**79**;Mar 19, 2002;Build 5366;Aug 30, 2013
  1. ;; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;; +---------------------------------------------------------------+
  1. ;; | Property of the US Government. |
  1. ;; | No permission to copy or redistribute this software is given. |
  1. ;; | Use of unreleased versions of this software requires the user |
  1. ;; | to execute a written test agreement with the VistA Imaging |
  1. ;; | Development Office of the Department of Veterans Affairs, |
  1. ;; | telephone (301) 734-0100. |
  1. ;; | The Food and Drug Administration classifies this software as |
  1. ;; | a medical device. As such, it may not be changed in any way. |
  1. ;; | Modifications to this software may result in an adulterated |
  1. ;; | medical device under 21CFR820, the use of which is considered |
  1. ;; | to be a violation of US Federal Statutes. |
  1. ;; +---------------------------------------------------------------+
  1. ;;
  1. Q
  1. ;
  1. ;+++++ INSTALLATION ERROR HANDLING
  1. ERROR ;
  1. S:$D(XPDNM) XPDABORT=1
  1. ;--- Display the messages and store them to the INSTALL file (#9.7).
  1. D DUMP^MAGUERR1(),ABTMSG^MAGKIDS()
  1. Q
  1. ;
  1. ;***** POST-INSTALL CODE
  1. ;
  1. POS ;
  1. N CALLBACK
  1. D CLEAR^MAGUERR(1)
  1. ;
  1. N MENU
  1. ;
  1. ;--- Send the notification e-mail
  1. D BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
  1. D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
  1. Q
  1. ;
  1. ;***** Below functionality is deprecated here as it has been consolidated
  1. ; in the MAG*3.0*138 post-install routine. Retaining the below for
  1. ; reference only.
  1. ;
  1. ;--- Link new remote procedures to context option MAG DICOM VISA.
  1. ;S CALLBACK="$$ADDRPCS^"_$NA(MAGKIDS1("RPCL079^"_$T(+0),"MAG DICOM VISA"))
  1. ;I $$CP^MAGKIDS("MAG ATTACH RPCS P79",CALLBACK)<0 D ERROR Q
  1. ;
  1. ;--- Add WORKLIST entry.
  1. ;S CALLBACK="$$ADDWRKLS^"_$T(+0)_"()"
  1. ;I $$CP^MAGKIDS("MAG ADD WORKLIST ENTRY",CALLBACK)<0 D ERROR Q
  1. ;
  1. ;--- Add MAG WORK ITEM STATUS entries.
  1. ;S CALLBACK="$$ADDSTATS^"_$T(+0)_"()"
  1. ;I $$CP^MAGKIDS("MAG ADD WORK ITEM STATUS",CALLBACK)<0 D ERROR Q
  1. ;
  1. ;--- Add StorageCommit entry to the MAG WORK ITEM SUBTYPE file.
  1. ;S CALLBACK="$$ADDSUBTP^"_$T(+0)_"()"
  1. ;I $$CP^MAGKIDS("MAG ADD WORK ITEM SUBTYPE",CALLBACK)<0 D ERROR Q
  1. ;
  1. ;--- Send the notification e-mail
  1. ;D BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
  1. ;D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
  1. Q
  1. ;
  1. ;--- Add StorageCommit STATUS values to the MAG WORK ITEM STATUS file.
  1. ;
  1. ADDSTATS() ;
  1. N CT,FDA1,FILE,STATUS S CT=0,FILE=2006.9413
  1. F STATUS="RECEIVED","IN PROGRESS","SUCCESS","SUCCESS SENT","FAILURE" D
  1. . I '$D(^MAGV(FILE,"B",STATUS)) S CT=CT+1,FDA1(FILE,"+"_CT_",",.01)=STATUS
  1. . Q
  1. F STATUS="FAILURE SENT","SENDING RESPONSE FAILED" D
  1. . I '$D(^MAGV(FILE,"B",STATUS)) S CT=CT+1,FDA1(FILE,"+"_CT_",",.01)=STATUS
  1. . Q
  1. D:CT UPDATE^DIE("","FDA1")
  1. Q 0
  1. ;
  1. ;--- Add a StorageCommit entry to the MAG WORK ITEM SUBTYPE file.
  1. ;
  1. ADDSUBTP() ;
  1. Q:$D(^MAGV(2006.9414,"B","StorageCommit")) 0
  1. N FDA1
  1. S FDA1(2006.9414,"+1,",.01)="StorageCommit"
  1. D UPDATE^DIE("","FDA1")
  1. Q 0
  1. ;
  1. ;--- Add a StorageCommit entry to the WORKLIST file.
  1. ;
  1. ADDWRKLS() ;
  1. Q:$D(^MAGV(2006.9412,"B","StorageCommit")) 0
  1. N FDA1
  1. S FDA1(2006.9412,"+1,",.01)="StorageCommit"
  1. D UPDATE^DIE("","FDA1")
  1. Q 0
  1. ;
  1. RPCL079 ;
  1. ;;MAG DICOM CHECK AE TITLE
  1. ;;MAG DICOM GET AE ENTRY
  1. ;;MAG DICOM GET AE ENTRY LOC
  1. ;;MAGVC WI DELETE
  1. ;;MAGVC WI GET
  1. ;;MAGVC WI LIST
  1. ;;MAGVC WI SUBMIT NEW
  1. ;;MAGVC WI UPDATE STATUS
  1. Q
  1. ;
  1. ; MAGIP079