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

MAGVSOPC.m

Go to the documentation of this file.
  1. MAGVSOPC ;WOIFO/DAC - Update file (#2006.532) ; 5 Nov 2012 12:12 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. UPDATE ; Update DICOM SOP CLASS file (#2006.532)
  1. N MAGN
  1. ;
  1. S MAGN("1.2.840.10008.5.1.4.1.1.77.1.5.4^Ophthalmic Tomography Image Storage")=""
  1. S MAGN("1.2.840.10008.5.1.4.1.1.104.1^Encapsulated PDF Storage")=""
  1. S MAGN("1.2.840.10008.5.1.4.1.1.104.2^Encapsulated CDA Storage")=""
  1. S MAGN("1.2.840.10008.5.1.4.1.1.131^Basic Structured Display Storage")=""
  1. S MAGN("1.2.840.10008.5.1.4.1.1.481.8^RT Ion Plan Storage")=""
  1. ;
  1. N MAGNFDA,MAGNIEN,MAGNXE,I
  1. N UID,SOPNAME,ACTIVE
  1. S I=""
  1. S ACTIVE="A"
  1. F S I=$O(MAGN(I)) Q:I="" D
  1. . K MAGNFDA,MAGNIEN,MAGNXE
  1. . S UID=$P(I,"^",1)
  1. . Q:$D(^MAG(2006.532,"B",UID))
  1. . S SOPNAME=$P(I,"^",2)
  1. . S MAGNFDA(2006.532,"?+1,",.01)=UID
  1. . S MAGNFDA(2006.532,"?+1,",2)=SOPNAME
  1. . S MAGNFDA(2006.532,"?+1,",4)=ACTIVE
  1. . D UPDATE^DIE("S","MAGNFDA","MAGNIEN","MAGNXE")
  1. . I $D(MAGNXE("DIERR","E")) W !,"Error updating DICOM SOP CLASS file (#2006.532): ",I
  1. . Q
  1. W !,"Update of DICOM SOP CLASS file (#2006.532) is done"
  1. Q