source: WorldVistAEHR/trunk/r/IMAGING-MAG-ZMAG/MAGGDEV.m@ 862

Last change on this file since 862 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 3.0 KB
Line 
1MAGGDEV ;WOIFO/LB - Routine to enter Imaging device entries ; [ 06/20/2001 08:56 ]
2 ;;3.0;IMAGING;;Mar 01, 2002
3 ;; +---------------------------------------------------------------+
4 ;; | Property of the US Government. |
5 ;; | No permission to copy or redistribute this software is given. |
6 ;; | Use of unreleased versions of this software requires the user |
7 ;; | to execute a written test agreement with the VistA Imaging |
8 ;; | Development Office of the Department of Veterans Affairs, |
9 ;; | telephone (301) 734-0100. |
10 ;; | |
11 ;; | The Food and Drug Administration classifies this software as |
12 ;; | a medical device. As such, it may not be changed in any way. |
13 ;; | Modifications to this software may result in an adulterated |
14 ;; | medical device under 21CFR820, the use of which is considered |
15 ;; | to be a violation of US Federal Statutes. |
16 ;; +---------------------------------------------------------------+
17 ;;
18 Q
19EN ;Create an entry in the Device file for an Imaging workstation.
20 ;
21TERM N A,DA,DD,DO,DIC,DIE,DR,ENTRY,X,Y
22 W !,"I will setup the 'P-IMAGING' entry in the Terminal Type file."
23 I $$FIND1^DIC(3.2,,,"P-IMAGING","B") D G DEV
24 . W !,"An entry already exists for 'P-IMAGING' in the Terminal Type file."
25 ;Set the entry
26 S DIC="^%ZIS(2,"
27 S X="P-IMAGING",DIC(0)="O" K DD,D0 D FILE^DICN
28 S ENTRY=+Y G:'ENTRY ERRDEV
29 S DR=".02///0;1///80;2///"_"#"_";4///"_"$C(8)"_";7///"_"D CLOSE^MAGGTU5;3///64"
30 S DA=ENTRY,DIE="^%ZIS(2," D ^DIE
31 ;.02/SELECTABLE AT SIGNON;1/RIGHT MARGIN;2/FORM FEED;4/BACK SPACE
32 ;7/CLOSE EXECUTE;3/PAGE LENGTH
33DEV N A,DA,DD,DO,DIC,DIE,ENTRY,X,Y,MAGOS
34 W !,"I will setup an 'Imaging Workstation' entry in the Device file."
35 I $$FIND1^DIC(3.5,,,"IMAGING WORKSTATION","B") D Q
36 . W !,"An entry already exists for 'IMAGING WORKSTATION' in the Device file."
37 S DIC="^%ZIS(1,"
38 S X="IMAGING WORKSTATION",DIC(0)="O" K DD,D0 D FILE^DICN
39 S ENTRY=+Y G:'ENTRY ERRDEV
40 I ^%ZOSF("OS")["DSM" D
41 . S MAGOS="DSM"
42 . S DA=ENTRY,DR=".02///"_"BROKER"_";3///"_"P-IMAGING"_";1///"_"WS.DAT"
43 . S DR=DR_";4///0;5///0;19///"_"(NEWVERSION,DELETE)"_";2///"_"HFS"
44 . S DIE="^%ZIS(1,"
45 I ^%ZOSF("OS")["OpenM" D
46 . S MAGOS="OPENM"
47 . S DA=ENTRY,DR=".02///"_"BROKER"_";3///"_"P-IMAGING"_";1///"_"WS.DAT"
48 . S DR=DR_";4///0;5///0;19///"_"""NWS"""_";2///"_"HFS"
49 . S DIE="^%ZIS(1,"
50 I ^%ZOSF("OS")["MSM" D
51 . S MAGOS="MSM"
52 . S DA=ENTRY,DR=".02///"_"BROKER"_";3///"_"P-IMAGING"_";1///"_"WS.DAT"
53 . S DR=DR_";4///0;5///0;19///"_"(""WS.DAT"":""M"")"_";2///"_"HFS"
54 . S DIE="^%ZIS(1,"
55 I $D(MAGOS) D ^DIE
56 ; The following lines describe the field number/name for the DR string.
57 ;.02/LOCATION OF TERMINAL;3/SUBTYPE;1/$I;4=ASK DEVICE;5/ASK PARAMETERS
58 ;19/OPEN PARAMETERS;2/TYPE
59 Q
60ERRDEV ;
61 W !,"Could not setup the IMAGING WORKSTATION entry in the Device file."
62 W !,"Could not setup the P-IMAGING entry in the Terminal Type file."
63MSG W !,"Please review the Installation Manual to create this entry."
64 Q
Note: See TracBrowser for help on using the repository browser.