source: WorldVistAEHR/trunk/r/IMAGING-MAG-ZMAG/MAGDCCSD.m@ 834

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

initial load of WorldVistAEHR

File size: 2.6 KB
Line 
1MAGDCCSD ;WOIFO/MLH - DICOM Correct - Clinical Specialties - Driver ; 01/30/2004 17:14
2 ;;3.0;IMAGING;**10,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 MAGSORT,MAGIEN,PREV,START,STOP,X,Y
28 N KFIXALL ; -- does user hold MAGDFIX ALL key
29 ;
30 S KFIXALL=$$SECKEY^MAGDLB12()
31 S MAGSORT=$$EN Q:MAGSORT["^"
32 I MAGSORT="P" D G EXIT
33 . L +^MAGD(2006.575,"D") D SRT^MAGDCCSS S MAGIEN=$$SELECT L -^MAGD(2006.575,"D") Q:MAGIEN<1
34 . I 'KFIXALL,$P($G(^MAGD(2006.575,MAGIEN,1)),"^",5)'=$G(DUZ(2)) D Q
35 . . W !,"The entry selected was not captured on your site's gateway."
36 . . W !,"You are not authorized to correct another site's entries."
37 . . Q
38 . I $D(^MAGD(2006.575,MAGIEN,"TYPE")),$P(^("TYPE"),"^")'="CON" D Q
39 . . W !,"Only Clinical Specialties images may be fixed using this option."
40 . . Q
41 . S PREV=MAGIEN D SET^MAGDCCS
42 . Q
43 I MAGSORT="D" D G EXIT
44 . D SRTDT^MAGDCCSS
45 . D ASKDT^MAGDCCSS
46 . I '$D(STR)!'($D(STP)) Q
47 . S START=STR,STOP=STP K STR,STP
48 . D DATELOOP^MAGDCCS(START,STOP)
49 . Q
50 E D
51 . D L^MAGDCCS
52 . Q
53EXIT ;
54 K ANS,ANSR,CASENO,COMNT1,DATA,DATA1,DATA2,DATE,FILE,FIRST,FIRSTS,I,MACHID,MAGDY
55 K MAGDIEN,MAGCSE,MAGERR,MAGFIX,MAGDTPRT,MAGTYPE,MAGDTPRT,MAGSTP,MSG
56 K MOD,MODEL,NEWCAS,NEWDFN,NEWDTI,NEWDTIM,NEWMUL,NEWNME,NEWPIEN,NEWPROC
57 K NEWSSN,OK,OOUT,OUT,PAT,PID,PREV,PREVS,REASON,STUDYUID,SUID,WHY
58 Q
59SELECT() ;
60 N DIC,D,X,Y
61 S DIC="^MAGD(2006.575,",D="D",DIC(0)="AEQ"
62 D MIX^DIC1
63 Q +Y
64SLDATE() ;
65 N DIC,D,X,Y
66 S DIC="^MAGD(2006.575,",D="AD",DIC(0)="AE"
67 D MIX^DIC1
68 Q +Y
Note: See TracBrowser for help on using the repository browser.