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

MAGDQR07.m

Go to the documentation of this file.
  1. MAGDQR07 ;WOIFO/EDM,MLH,BT - Imaging RPCs for Query/Retrieve ; Feb 15, 2022@10:25:44
  1. ;;3.0;IMAGING;**54,118,138,305**;Mar 19, 2002;Build 3
  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. ; -- overflow from MAGDQR02
  1. ;
  1. ACCNUM(REQ,T,ACC,ANY) ; TAG = 0008,0050 R Accession Number
  1. N P
  1. S P="" F S P=$O(REQ(T,P)) Q:(P="") D:(REQ(T,P)'="")&((REQ(T,P))'="GMRC-")
  1. . S ANY=1
  1. . D ACCNEW^MAGDQR71(.REQ,T,P,.ACC) ; first look in the new database structure
  1. . D ACCRAD^MAGDQR72(.REQ,T,P,.ACC) ; then look for old radiology images
  1. . D ACCCON^MAGDQR73(.REQ,T,P,.ACC) ; then look for old consult images
  1. . D ACCLAB^MAGDQR75(.REQ,T,P,.ACC) ; finally look for lab images - P305 PMK 01/03/2022
  1. . Q
  1. Q