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

MAGVRS14.m

Go to the documentation of this file.
  1. MAGVRS14 ;WOIFO/DAC,MLH - RPC calls for DICOM file processing ; 26 Jan 2012 11:01 PM
  1. ;;3.0;IMAGING;**118**;Mar 19, 2002;Build 4525;May 01, 2013
  1. ;; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;; +---------------------------------------------------------------+
  1. ;; | Property of the US Government. |
  1. ;; | No permission to copy or redistribute this software is given. |
  1. ;; | Use of unreleased versions of this software requires the user |
  1. ;; | to execute a written test agreement with the VistA Imaging |
  1. ;; | Development Office of the Department of Veterans Affairs, |
  1. ;; | telephone (301) 734-0100. |
  1. ;; | The Food and Drug Administration classifies this software as |
  1. ;; | a medical device. As such, it may not be changed in any way. |
  1. ;; | Modifications to this software may result in an adulterated |
  1. ;; | medical device under 21CFR820, the use of which is considered |
  1. ;; | to be a violation of US Federal Statutes. |
  1. ;; +---------------------------------------------------------------+
  1. ;;
  1. Q
  1. GETSER(OUT,STUDYIEN,SERIEN,OVERRIDE) ;RPC - MAGV GET SERIES
  1. D REFRESH^MAGVRS41(.OUT,2005.63,$G(SERIEN),$G(STUDYIEN),$G(OVERRIDE))
  1. Q
  1. INSERIES(OUT,SERIEN,STUDYIEN,OVERRIDE) ; RPC - MAGV INACTIVATE SERIES
  1. D INACTIVT^MAGVRS41(.OUT,2005.63,$G(SERIEN),$G(STUDYIEN),$G(OVERRIDE))
  1. Q
  1. FINDBYRF(OUT,REFUID) ; RPC - MAGV FIND SERIES BY UID
  1. ; Looks up for Series by Reference UID only.
  1. ; Returns null if no such Series found, else returns one or a list of Series Handles. Note: one Reference UID can point to multiple series.
  1. ; Generates exception on invalid input.
  1. ;
  1. ; Find reference IEN based on UID
  1. ; Look for IEN in Series
  1. N FILENO,I,IEN,STATUS,FIELD,OSEP,ISEP,SSEP
  1. S FILENO=2005.63
  1. S OSEP=$$OUTSEP^MAGVRS41,ISEP=$$INPUTSEP^MAGVRS41,SSEP=$$STATSEP^MAGVRS41
  1. I $G(REFUID)="" S OUT(1)="-2"_SSEP_"UID has no value" Q
  1. S I=1,IEN=""
  1. F D Q:IEN="" S I=I+1
  1. . S IEN=$O(^MAGV(FILENO,"B",REFUID,IEN))
  1. . Q:'IEN
  1. . S FIELD=$$GETFIELD^MAGVRS41(FILENO,"STATUS")
  1. . S STATUS=$$GET1^DIQ(FILENO,IEN,FIELD,"I")
  1. . I IEN'="",STATUS'="I" S OUT(I)="0"_SSEP_SSEP_IEN
  1. . Q
  1. I $G(OUT(1))="" S OUT(1)="-1"_SSEP_"Series reference UID not found"
  1. Q