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

ACRFTRIG.m

Go to the documentation of this file.
ACRFTRIG ;IHS/PHXAO/AEF - TRIGGER LOGIC FOR ARMS FIELDS [ 02/23/2005  4:24 PM ]
 ;;2.1;ADMIN RESOURCE MGT SYSTEM;**16**;DEC 17, 2004
 ; **** NEW ROUTINE AS OF ACR*2.1*16.12 IM15665
 ;THIS ROUTINE CONTAINS TRIGGER LOGIC FOR VARIOUS ARMS
 ;FIELDS
 ;
ORN17(D0)          ;EP
 ;----- TRIGGER FOR ORIGINAL REQUEST NUMBER FIELD #17 OF
 ;      THE FMS DOCUMENT FILE TO ENTER A NEW EXPANDED
 ;      DOCUMENT NUMBER INTO THE EXPANDED DOCUMENT NUMBER
 ;      FIELD #.011 OF THE FMS DOCUMENT FILE WHENEVER
 ;      THE DOCUMENT NUMBER IS CHANGED
 ;
 ;      INPUT: 
 ;      X  =  DOCUMENT IEN
 ;
 ;      OUTPUT:
 ;      Y  =  EXPANDED DOCUMENT NUMBER
 ;
 N (D0)
 D ^XBKVAR
 N DA,DIE,DR,X,Y
 S Y=$P($G(^ACRDOC(D0,"X")),U)
 I D0 D
 . S DA=D0
 . S DIE="^ACRDOC("
 . S DR=".011///^S X=""@"""
 . D ^DIE
 . ;
 . S Y=$$EXPDN^ACRFUTL(D0)
 Q Y