source: FOIAVistA/trunk/r/IMAGING-MAG-ZMAG/MAGDLB9.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 2.5 KB
Line 
1MAGDLB9 ;WOIFO/LB - DICOM correct entries ; 01/30/2004 17:14
2 ;;3.0;IMAGING;**11**;14-April-2004
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() ;Start looping either by patient or loop thru Study uid
20 N DIR,X,Y
21 S DIR(0)="S^P:Patient;L:Loop thru file;D:Specify a Date Range"
22 S DIR("A")="Update entries by"
23 D ^DIR
24 Q Y
25 ;
26START ;
27 N KFIXALL,MAGSORT,MAGIEN,PREV,START,STOP,X,Y
28 N MAGTYPE ; -- type of image
29 S MAGSORT=$$EN Q:MAGSORT["^"
30 S KFIXALL=$$SECKEY^MAGDLB12()
31 I MAGSORT="P" D G EXIT
32 . D SRT^MAGDLBSR S MAGIEN=$$SELECT Q:MAGIEN<1
33 . I 'KFIXALL,$P($G(^MAGD(2006.575,MAGIEN,1)),"^",5)'=$G(DUZ(2)) D Q
34 . . W !,"The entry selected was not captured on your site's gateway."
35 . . W !,"You are not authorized to correct another site's entries."
36 . . Q
37 . S MAGTYPE=$P($G(^MAGD(2006.575,MAGIEN,"TYPE")),U)
38 . I "^CON^MED^"[(U_MAGTYPE_U) D Q
39 . . W !,"Use the MAGD FIX "
40 . . W $S(MAGTYPE="MED":"MEDICINE",1:"CLINSPEC")
41 . . W " menu option to correct this entry."
42 . . Q
43 . S PREV=MAGIEN D SET^MAGDLB1
44 I MAGSORT="D" D G EXIT
45 . D SRTDT^MAGDLBSR
46 . D ASKDT^MAGDLBSR
47 . I '$D(STR)!('$D(STP)) Q
48 . S START=STR,STOP=STP K STR,STP
49 . D DATELOOP^MAGDLB1(START,STOP)
50 E D LOOP^MAGDLB12
51EXIT ;
52 K ANS,ANSR,CASENO,COMNT1,DATA,DATA1,DATA2,DATE,FILE,FIRST,FIRSTS,I,MACHID,MAGDY
53 K MAGDIEN,MAGCSE,MAGERR,MAGFIX,MAGDTPRT,MAGTYPE,MAGDTPRT,MAGSTP,MSG
54 K MOD,MODEL,NEWCAS,NEWDFN,NEWDTI,NEWDTIM,NEWMUL,NEWNME,NEWPIEN,NEWPROC
55 K NEWSSN,OK,OOUT,OUT,PAT,PID,PREV,PREVS,REASON,STUDYUID,SUID,WHY
56 Q
57SELECT() ;
58 N DIC,D,X,Y
59 S DIC="^MAGD(2006.575,",D="D",DIC(0)="AE"
60 D MIX^DIC1
61 Q +Y
62SLDATE() ;
63 N DIC,D,X,Y
64 S DIC="^MAGD(2006.575,",D="AD",DIC(0)="AE"
65 D MIX^DIC1
66 Q +Y
Note: See TracBrowser for help on using the repository browser.