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

DIFROMSO.m

Go to the documentation of this file.
  1. DIFROMSO ;SCISC/DCL-DIFROM SERVER EDE OUT ;01:18 PM 8 Feb 1995
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. ; * EXTENDED DATABASE ELEMENTS (EDE) OUT *
  1. EDEOUT(DIFRFILE,DIFRIEN,DIFRFLG,DIFRNAME,DIFRFIA,DIFRTA,DIFRLST,DIFRMSGR) ;
  1. ;FILE,IEN,FLAGS,PKGNAME,FIA_ARRAY,TARGET_ARRAY,RECORD_LIST,MSG_ROOT
  1. ;FILE=FILE NUMBER can only be:.5,.4,.401,.402,.403
  1. ; (.404 automatically comes with .403)
  1. ; (Required) -
  1. ; Forms .403 ^DIST(.403, "DIST(.403,"
  1. ; Blocks .404 ^DIST(.404, "DIST(.404,"
  1. ; Input Template .402 ^DIE( "DIE"
  1. ; Print Template .4 ^DIPT( "DIPT"
  1. ; Sort Template .401 ^DIBT( "DIBT"
  1. ; Functions .5 ^DD("FUNC", "FUN"
  1. ; Dialog .84 ^DI(.84, ????
  1. ;
  1. ; Note: Blocks pointed to by Forms
  1. ; are automatically sent
  1. ;*
  1. ;IEN=INTERNAL ENTRY NUMBER - DA
  1. ; (Required if LIST_ARRAY is not passed) - Identifies
  1. ; the internal entry number for the
  1. ; EDE being exported.
  1. ;*
  1. ;FLAGS="S" Strip Security Codes in Transport Structure (Do not send security codes for Forms and Templates)
  1. ;*
  1. ;PKGNAME=Package Name
  1. ; (Required) - Identifies the unique key subscript
  1. ; in the export target array.
  1. ;*
  1. ;FIA_ARRAY="FIA"_ARRAY_INPUT_ARRAY_ROOT * *NO LONGER USED* *
  1. ; (Optional) - Close Input Array Reference
  1. ; See DIFROM SERVER documentation for FIA array structure
  1. ; definitions. If undefined Target Array Root will be used
  1. ; to append the "FIA" subscript Default will be
  1. ; ^XTMP("XPDT",DIFRNAME,"FIA")
  1. ;*
  1. ;TARGET_ARRAY=CLOSED_OUTPUT_ARRAY_ROOT
  1. ; (Optional) - Closed Output Array Reference where the data will
  1. ; be retuned to be temporarily stored for distribution.
  1. ; ^XTMP("XPDT",DIFRNAME,"KRN") will be default.
  1. ;*
  1. ;LIST_ARRAY=LIST OF IENs PASSED BY VALUE
  1. ; (Required if ENTRY not passed) - Closed Array
  1. ; Reference where records for this type of template
  1. ; exist. Nodes can contain ,0). If +value is greater
  1. ; than 0 it is used, otherwise the subscript is
  1. ; used as the IEN.
  1. ;*
  1. ;MSG_ROOT=CLOSED ARRAY REFERENCE
  1. ; (Optional) - Closed array reference where messages such as
  1. ; errors will be returned. If not passed, decendents of ^TMP
  1. ; will be used.
  1. ;*
  1. I '$D(DIQUIET) N DIQUIET S DIQUIET=1
  1. I '$D(DIFM) N DIFM S DIFM=1
  1. I $G(U)'="^"!($G(DT)'>0)!($G(DTIME)'>0)!('$D(DUZ)) D DT^DICRW
  1. I $G(DIFRNAME)']"" D BLD^DIALOG(9530) Q
  1. D
  1. .N X
  1. .S X=DIFRFILE
  1. .I X=.5!(X=.4)!(X=.401)!(X=.402)!(X=.403)!(X=.84) Q
  1. .S DIFRFILE=0
  1. .Q
  1. I DIFRFILE'>0 D BLD^DIALOG(9531) Q
  1. I $G(DIFRTA)="" S DIFRTA=$NA(^XTMP("XPDT",DIFRNAME,"KRN"))
  1. ;*
  1. ; * *DIFRFIA NO LONGER USED* *
  1. ;S DIFRFIA=$G(DIFRFIA) S:DIFRFIA="" DIFRFIA=$NA(^XTMP("XPDT",DIFRNAME,"FIA"))
  1. ;I '$D(@DIFRFIA) D BLD^DIALOG(9501) Q
  1. ;*
  1. I $G(DIFRIEN)'>0&($G(DIFRLST)="") D BLD^DIALOG(9531) Q
  1. I $G(DIFRIEN)'>0,$D(@DIFRLST)'>9 D BLD^DIALOG(9532) Q
  1. S DIFRFLG=$G(DIFRFLG)
  1. N DIFRFNAM
  1. S DIFRFNAM=$P($P(".4;PRINT TEMPLATE^.401;SORT TEMPLATE^.402;INPUT TEMPLATE^.403;FORM^.404;BLOCK^.5;FUNCTION^.84;DIALOG",DIFRFILE_";",2),"^")
  1. D EDEOUT^DIFROMS5
  1. G EXIT
  1. ;
  1. EXIT I $G(DIFRMSGR)]"" D CALLOUT^DIEFU(DIFRMSGR)
  1. Q