Changeset 636 for FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGQBPG1.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/MAGQBPG1.m
r628 r636 1 1 MAGQBPG1 ;WOIFO/RMP - REMOTE Task SERVER Program [ 11/08/2001 17:18 ] 2 ;;3.0;IMAGING;**7,8,20,81**;May 17, 2007 3 ;; Per VHA Directive 2004-038, this routine should not be modified. 2 ;;3.0;IMAGING;**7,8,20**;Apr 12, 2006 4 3 ;; +---------------------------------------------------------------+ 5 4 ;; | Property of the US Government. | … … 9 8 ;; | Development Office of the Department of Veterans Affairs, | 10 9 ;; | telephone (301) 734-0100. | 10 ;; | | 11 11 ;; | The Food and Drug Administration classifies this software as | 12 12 ;; | a medical device. As such, it may not be changed in any way. | … … 79 79 CNP2(RESULT,IEN,START,STOP) ;[MAGQ JBSCN] 80 80 S X="ERR^MAGQBTM",@^%ZOSF("TRAP") 81 N FNAME,PIECE,ZNODE,NODE2,BNODE,BNAME,PTR,HASH,TEMP,ORDER,RDATE,PLACE,OFFLINE,PLACEOK,GL,END ,ACQSITE81 N FNAME,PIECE,ZNODE,NODE2,BNODE,BNAME,PTR,HASH,TEMP,ORDER,RDATE,PLACE,OFFLINE,PLACEOK,GL,END 82 82 S (RESULT,GL)="",PLACE=$$PLACE^MAGBAPI(+$G(DUZ(2))),(OFFLINE,PLACEOK)=0 83 83 S:START="" START=$O(^MAG(2005,0)) S:STOP="" STOP=$O(^MAG(2005,"A"),-1) … … 91 91 . Q 92 92 S IEN=+IEN 93 F D SCAN^MAGQBPG1(.IEN,ORDER,.GL) D Q:((('OFFLINE)&PLACEOK)!('IEN)!($P(RESULT,U,21)="DUPE") !'$G(ACQSITE))93 F D SCAN^MAGQBPG1(.IEN,ORDER,.GL) D Q:((('OFFLINE)&PLACEOK)!('IEN)!($P(RESULT,U,21)="DUPE")) 94 94 . Q:'IEN 95 . S ZNODE=$G(@(GL_IEN_",0)")) ,ACQSITE=$P($G(@(GL_IEN_",100)")),U,3)96 . S PLACEOK=$S($ $PLACE^MAGBAPI(+ACQSITE)=$$PLACE^MAGBAPI($G(DUZ(2))):1,1:"")95 . S ZNODE=$G(@(GL_IEN_",0)")) 96 . S PLACEOK=$S($P($G(@(GL_IEN_",100)")),U,3)=$G(DUZ(2)):1,1:"") 97 97 . I $P(ZNODE,U,2)'="" S OFFLINE=$$IMOFFLN^MAGFILEB($P(ZNODE,U,2)) ; Only check the offline status of image files 98 98 . I ($D(^MAG(2005.1,IEN,0))&$D(^MAG(2005,IEN,0))) D Q ; Image is duplicated in the Archive file … … 133 133 . I $D(@(GL_IEN_",""FBIG"")")),'$P(BNODE,U),'$P(BNODE,U,2) S $P(RESULT,U,22)="EMPTY_FBIG" 134 134 . Q 135 I '$P($G(@(GL_IEN_",100)")),U,3) S $P(RESULT,U,23)=-1 ;"NO ACQ SITE VALUE"136 ;137 135 I GL[("^MAG(2005.1,") S $P(RESULT,U,21)="ARCH" 138 136 E S $P(RESULT,U,12,17)=$$CHKIMG^MAGQBUT2(IEN) … … 187 185 . D ^XMD 188 186 . K ^TMP($J,"MAGQDFN") 189 . K XMSUB190 187 . Q 191 188 E S CNT=CNT+1,^TMP($J,"MAGQDFN",CNT)=INPUT
Note:
See TracChangeset
for help on using the changeset viewer.