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

MAGVD004.m

Go to the documentation of this file.
  1. MAGVD004 ;WOIFO/BT,NST,MLH - Delete Study By Accession Number - display outputs; [ 02/03/2012 10:50 ]
  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. ;
  1. SHOWINFO(ACCNUM,MAGARR) ; show patient name, procedures, studies, series, #of images/series
  1. N MAGARRIX,MAGARRKT
  1. D EN^DDIOL("Information on Study(ies) to be deleted for accession number "_ACCNUM_":","","!!")
  1. D EN^DDIOL("------------------------------------------------------------------------","","!")
  1. S MAGARRIX=0 F MAGARRKT=0:1 S MAGARRIX=$O(MAGARR(MAGARRIX)) Q:'MAGARRIX
  1. S MAGARRIX=0
  1. F S MAGARRIX=$O(MAGARR(MAGARRIX)) Q:'MAGARRIX D
  1. . N DFN,VADM,STYSERKT,I
  1. . D:MAGARRKT>1 EN^DDIOL("GROUP "_MAGARRIX_":","","!!")
  1. . S DFN=$G(MAGARR(MAGARRIX,"MAGDFN")) D DEM^VADPT
  1. . D EN^DDIOL("PATIENT: "_$G(VADM(1)),"","!")
  1. . D EN^DDIOL(" SSN: "_$P($G(VADM(2)),"^",2),"","?30")
  1. . D EN^DDIOL(" DOB: "_$P($G(VADM(3)),"^",2),"","?55")
  1. . D EN^DDIOL("PROCEDURE: "_$G(MAGARR(MAGARRIX,"PROC")),"","!")
  1. . D STYSERKT^MAGVD010(.STYSERKT,$NA(MAGARR(MAGARRIX,"IMAGES"))) ; count studies & series
  1. . D EN^DDIOL("STUDIES: "_$G(STYSERKT("STUDY")))
  1. . D EN^DDIOL(" SERIES: "_$G(STYSERKT("SERIES")),"","?15")
  1. . D EN^DDIOL(" IMAGES: "_$G(STYSERKT("IMAGE")),"","?30")
  1. . Q
  1. Q