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

MAGGDEV.m

Go to the documentation of this file.
  1. MAGGDEV ;WOIFO/LB,NST - Routine to enter Imaging device entries ; 18 Mar 2013 1:40 PM
  1. ;;3.0;IMAGING;**98,119**;Mar 19, 2002;Build 4396;Apr 19, 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. EN ;Create/Update an entry in the Device file for an Imaging workstation.
  1. ;
  1. TERM N A,DA,DD,DO,DIC,DIE,DR,ENTRY,X,Y
  1. W !,"I will check the 'P-IMAGING' entry in the Terminal Type file."
  1. S DA=$$FIND1^DIC(3.2,,,"P-IMAGING","B")
  1. I DA D G DEV ;update
  1. . S DIE="^%ZIS(2,",DR="7///D CLOSE^MAGGTU5 X "_$C(34)_"C IO:"_$C(34,34)_"D"_$C(34,34,34)_" K IO(1,IO)" D ^DIE
  1. . Q
  1. ;Set the entry
  1. S DIC="^%ZIS(2,"
  1. S X="P-IMAGING",DIC(0)="O" K DD,D0 D FILE^DICN
  1. S ENTRY=+Y G:'ENTRY ERRDEV
  1. S DR=".02///0;1///80;2///"_"#"_";4///"_"$C(8)"_";7///D CLOSE^MAGGTU5 X "_$C(34)_"C IO:"_$C(34,34)_"D"_$C(34,34,34)_" K IO(1,IO);3///64"
  1. S DA=ENTRY,DIE="^%ZIS(2," D ^DIE
  1. ;.02/SELECTABLE AT SIGNON;1/RIGHT MARGIN;2/FORM FEED;4/BACK SPACE
  1. ;7/CLOSE EXECUTE*P98 - added X "...";3/PAGE LENGTH
  1. DEV N A,DA,DD,DO,DIC,DIE,ENTRY,X,Y,MAGOS
  1. W !,"I will check an 'Imaging Workstation' entry in the Device file."
  1. S DA=$$FIND1^DIC(3.5,,,"IMAGING WORKSTATION","B")
  1. I DA D Q ;update
  1. . S DIE="^%ZIS(1,",DR="19.7///S IO=$P(IO,""."")_$J_"".""_$P(IO,""."",2)" D ^DIE
  1. . Q
  1. S DIC="^%ZIS(1,"
  1. S X="IMAGING WORKSTATION",DIC(0)="O" K DD,D0 D FILE^DICN
  1. S ENTRY=+Y G:'ENTRY ERRDEV
  1. I ^%ZOSF("OS")["OpenM" D
  1. . S MAGOS="OPENM"
  1. . S DA=ENTRY,DR=".02///"_"BROKER"_";3///"_"P-IMAGING"_";1///"_"WS.DAT"
  1. . S DR=DR_";4///0;5///0;19///"_"""NWS"""_";2///"_"HFS;19.7///S IO=$P(IO,""."")_$J_"".""_$P(IO,""."",2)"
  1. . S DIE="^%ZIS(1,"
  1. I $D(MAGOS) D ^DIE
  1. ; The following lines describe the field number/name for the DR string.
  1. ;.02/LOCATION OF TERMINAL;3/SUBTYPE;1/$I;4=ASK DEVICE;5/ASK PARAMETERS
  1. ;19/OPEN PARAMETERS;2/TYPE
  1. Q
  1. ERRDEV ;
  1. W:$G(DIC)="^%ZIS(2," !,"Could not setup the IMAGING WORKSTATION entry in the Device file."
  1. W:$G(DIC)="^%ZIS(1," !,"Could not setup the P-IMAGING entry in the Terminal Type file."
  1. MSG W !,"Please review the Installation Manual to create this entry."
  1. Q