MAGD350K ;WOIFO/EDM - Call MAGFILEB ; Jun 03, 2024@07:04:48
;;3.0;IMAGING;**350**;Mar 19, 2002;Build 4
;; Per VHA Directive 2004-038, this routine should not be modified.
;; +---------------------------------------------------------------+
;; | Property of the US Government. |
;; | No permission to copy or redistribute this software is given. |
;; | Use of unreleased versions of this software requires the user |
;; | to execute a written test agreement with the VistA Imaging |
;; | Development Office of the Department of Veterans Affairs, |
;; | telephone (301) 734-0100. |
;; | |
;; | The Food and Drug Administration classifies this software as |
;; | a medical device. As such, it may not be changed in any way. |
;; | Modifications to this software may result in an adulterated |
;; | medical device under 21CFR820, the use of which is considered |
;; | to be a violation of US Federal Statutes. |
;; +---------------------------------------------------------------+
;;
;
; Copied from MAGDFB and then modified to support TIER-2 lookups
;
Q
;
; The purpose of this subroutine is to call FINDFILE in MAGFILEB
; in such a way that all parameters are passed in or out,
; and such that all internal variables of MAGFILEB are NEWed
;
FILEFIND(MAGXX,FILETYPE,MAGJBCP,VERBOSE,MAGFILE1,MAGFILE2,MAGFILE) ;
; Input:
; MAGXX -- IEN into file 2005, ^MAG(2005,IEN,0)
; FILETYPE -- "FULL", "ABSTRACT" or "BIG"
; MAGJBCP -- Flag: do or don't copy from JukeBox to HardDisk
; VERBOSE -- Flag: do or don't display interactive error messages
; Output:
; MAGFILE1 -- filename
; MAGFILE2 -- path + filename
; MAGFILE -- path + filename + $C(0)
; MAGPLACE -- pointer to ^MAG(2006.1) for "place" where image is stored
; MAGINST -- pointer to ^DIC(4) that corresponds to MAGPLACE
;
N MAGJBOL,MAGOFFLN,MAGPREF,MAGTYPE
D FINDFILE^MAGD350L
S MAGFILE2=$G(MAGPREF)_MAGFILE1,MAGFILE=MAGFILE2_$C(0)
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGD350K 2156 printed Nov 22, 2024@17:09:47 Page 2
MAGD350K ;WOIFO/EDM - Call MAGFILEB ; Jun 03, 2024@07:04:48
+1 ;;3.0;IMAGING;**350**;Mar 19, 2002;Build 4
+2 ;; Per VHA Directive 2004-038, this routine should not be modified.
+3 ;; +---------------------------------------------------------------+
+4 ;; | Property of the US Government. |
+5 ;; | No permission to copy or redistribute this software is given. |
+6 ;; | Use of unreleased versions of this software requires the user |
+7 ;; | to execute a written test agreement with the VistA Imaging |
+8 ;; | Development Office of the Department of Veterans Affairs, |
+9 ;; | telephone (301) 734-0100. |
+10 ;; | |
+11 ;; | The Food and Drug Administration classifies this software as |
+12 ;; | a medical device. As such, it may not be changed in any way. |
+13 ;; | Modifications to this software may result in an adulterated |
+14 ;; | medical device under 21CFR820, the use of which is considered |
+15 ;; | to be a violation of US Federal Statutes. |
+16 ;; +---------------------------------------------------------------+
+17 ;;
+18 ;
+19 ; Copied from MAGDFB and then modified to support TIER-2 lookups
+20 ;
+21 QUIT
+22 ;
+23 ; The purpose of this subroutine is to call FINDFILE in MAGFILEB
+24 ; in such a way that all parameters are passed in or out,
+25 ; and such that all internal variables of MAGFILEB are NEWed
+26 ;
FILEFIND(MAGXX,FILETYPE,MAGJBCP,VERBOSE,MAGFILE1,MAGFILE2,MAGFILE) ;
+1 ; Input:
+2 ; MAGXX -- IEN into file 2005, ^MAG(2005,IEN,0)
+3 ; FILETYPE -- "FULL", "ABSTRACT" or "BIG"
+4 ; MAGJBCP -- Flag: do or don't copy from JukeBox to HardDisk
+5 ; VERBOSE -- Flag: do or don't display interactive error messages
+6 ; Output:
+7 ; MAGFILE1 -- filename
+8 ; MAGFILE2 -- path + filename
+9 ; MAGFILE -- path + filename + $C(0)
+10 ; MAGPLACE -- pointer to ^MAG(2006.1) for "place" where image is stored
+11 ; MAGINST -- pointer to ^DIC(4) that corresponds to MAGPLACE
+12 ;
+13 NEW MAGJBOL,MAGOFFLN,MAGPREF,MAGTYPE
+14 DO FINDFILE^MAGD350L
+15 SET MAGFILE2=$GET(MAGPREF)_MAGFILE1
SET MAGFILE=MAGFILE2_$CHAR(0)
+16 QUIT
+17 ;