Changeset 636 for FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGBAPIP.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGBAPIP.m
r628 r636 1 1 MAGBAPIP ;WOIFO/MLH - Background Processor API to build queues - Modules for place 2 ;;3.0;IMAGING;**1,7,8,20,59**;Nov 27, 2007;Build 20 3 ;;Per VHA Directive 2004-038, this routine should not be modified. 2 ;;3.0;IMAGING;**1,7,8,20**;Apr 12, 2006 4 3 ;; +---------------------------------------------------------------+ 5 4 ;; | Property of the US Government. | … … 17 16 ;; +---------------------------------------------------------------+ 18 17 ;; 19 DUZ2PLC(WARN) ; Convert DUZ to a PLACE. File 2006.1 entry (PLACE)20 ; Extrinsic : Always returns a PLACE 21 ; WARN : message about where the PLACE was derived from. 18 DUZ2PLC(WARN) ; Moved from MAGGTU3 v2.5 - DBI - SEB Patch 4 19 ; Extrinsic : Always returns a PLACE /gek 8/2003 20 ; WARN : message about where the PLACE was derived from. /gek 8/2003 22 21 ; Compute the Users Institution for older versions of Imaging Display workstation. 23 ; This is called when DUZ(2) doesn't exist Or Can't resolve DUZ(2)24 ; into site param entry. This solved a GateWay Problem where DUZ(2) didn't25 ; exist. - Shouldn't get here anymore, that was fixed.22 ; This is called when : 23 ; DUZ(2) doesn't exist, 24 ; Or Can't resolve DUZ(2) into site param entry 26 25 N MAGINST,DIVDTA,PLACE 27 26 S MAGINST=0 … … 38 37 Q PLACE 39 38 ; 40 DA2PLC(MAGDA,TYPE) ; Get Place from Image File IEN39 DA2PLC(MAGDA,TYPE) ; Moved from MAGGTU7 v2.5 - DBI - SEB Patch 4 41 40 ; TYPE : Possible values "A" Abstract, "F" Full Res or "B" Big File 42 41 ; (defaults to "F" if null) 43 ; Resolve Place (PLC) using the Acquisition Site field (ACQS) 44 ; IF ACQS is null or not doesn't exist in the site parameter file 45 ; THEN Resolve PLC using NetWork Location pointer 42 ; Resolve current place of image using the Acquisition Site field, then 43 ; resolve current place of image using NetWork Location pointer 44 ; if the Acquisition Site field is null or not related to the site 45 ; parameter file. 46 46 ; 47 47 N MAGREF,MAG0,FBIG,SITE,PLC,MAGJB … … 49 49 S SITE=$P($G(^MAG(2005,MAGDA,100)),U,3) 50 50 I SITE S PLC=$$PLACE^MAGBAPI(SITE) Q:PLC PLC 51 ; p59 Stop the error when an Image is Deleted. 52 S MAG0=$G(^MAG(2005,MAGDA,0)) Q:MAG0="" 0 53 ; 51 S MAG0=^MAG(2005,MAGDA,0) 52 ;I '$D(TYPE) S TYPE="F" /gek 8/2003 mod for efficiency (from ed) 54 53 S TYPE=$E($G(TYPE)_"F",1) 55 54 I "AF"[TYPE D
Note:
See TracChangeset
for help on using the changeset viewer.