Changeset 636 for FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGNTI1.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGNTI1.m
r628 r636 1 MAGGNTI1 ;WOIFO/GEK - Imaging interface to TIU . RPC Calls etc. ; 04 Apr 2002 2:37PM2 ;;3.0;IMAGING;**46 ,59**;Nov 27, 2007;Build 201 MAGGNTI1 ;WOIFO/GEK - Imaging interface to TIU RPC Calls etc. ; 20 Nov 2006 12:42 PM 2 ;;3.0;IMAGING;**46**;16-February-2007;;Build 1023 3 3 ;; Per VHA Directive 2004-038, this routine should not be modified. 4 4 ;; +---------------------------------------------------------------+ … … 9 9 ;; | Development Office of the Department of Veterans Affairs, | 10 10 ;; | telephone (301) 734-0100. | 11 ;; | |12 11 ;; | The Food and Drug Administration classifies this software as | 13 12 ;; | a medical device. As such, it may not be changed in any way. | … … 16 15 ;; | to be a violation of US Federal Statutes. | 17 16 ;; +---------------------------------------------------------------+ 18 ;; 17 ;; 19 18 Q 20 19 NEW(MAGRY,MAGDFN,MAGTITLE,MAGADCL,MAGMODE,MAGES,MAGESBY,MAGLOC,MAGDATE,MAGCNSLT,MAGTEXT) ;RPC [MAG3 TIU NEW] … … 37 36 ; MAGESBY - The DUZ of the Signer (Defaults to DUZ) 38 37 ; MAGADCL - 1 = Mark this Note as Administratively Closed 39 ; MAGMODE - Mode of Admin Closure: "S" = Scanned Document 38 ; MAGMODE - Mode of Admin Closure: "S" = Scanned Document 40 39 ; "M" = Manual closure, "E" = Electronically Filed 41 40 ; MAGDATE - Date of the Note. For New Notes. … … 55 54 I "MSE"'[MAGMODE S MAGRY="0^Invalid Mode of Closure: """_MAGMODE_"""" Q 56 55 ; 57 ; 56 ; Here if we have no Text, we'll add at least a line. 58 57 I $O(MAGTEXT(""))="" S MAGTEXT(.1)=" VistA Imaging - - Scanned Document" 59 58 ; Reformat Text - "TEXT",i,0)" for TIU Call. … … 97 96 I '$$VALID^MAGGSIV1(8925,1301,.MAGDATE,.MAGRES) S MAGRY=MAGRY_" "_MAGRES 98 97 E S MTXT(1301)=MAGDATE 99 ; - Fix in T30, if DUZ isn't MAGESBY, we have Author different than User. 100 I MAGESBY'=DUZ S MTXT("1202")=MAGESBY 101 ; Update and LINK TO CONSULT if needed. 98 ; 99 ; Update and LINK TO CONSULT if needed. 102 100 I MAGISC S MTXT("1405")=MAGCNSLT_";GMR(123," 103 101 I $D(MTXT) D I 'MUPD S MAGRY=MUPD Q … … 105 103 . Q 106 104 ; 107 ; 105 ; If Admin Close, then We quit. 108 106 I MAGADCL="1" D Q 109 107 . D ADMNCLOS^MAGGNTI2(.MAGTY,MAGDFN,MAGTIUDA,MAGMODE) … … 111 109 . Q 112 110 ; 113 ; 111 ; if caller sent esignature to Sign this Note. 114 112 I $L(MAGES) D 115 113 . D SIGN^MAGGNTI3(.MAGTY,MAGDFN,MAGTIUDA,MAGES,MAGESBY) … … 143 141 ; 144 142 I '$$VALDATA^MAGGNTI2(.MAGRY,MAGDFN,MAGTIUDA) Q 145 N MAGXT,I,CT,NEWTIUDA,MAGY,MAGRES ,MAGUPD143 N MAGXT,I,CT,NEWTIUDA,MAGY,MAGRES 146 144 S CT=1,I="" 147 145 S MAGXT("TEXT",1,0)="VistA Imaging Scanned Document - Addendum." … … 153 151 D MAKEADD^TIUSRVP(.MAGRY,MAGTIUDA,.MAGXT) 154 152 ; MAGRY could be 0^error message 155 ; -1^message156 ; TIUDA153 ; -1^message 154 ; TIUDA 157 155 I $P(MAGRY,"^")<0 S $P(MAGRY,"^")=0 Q 158 156 S NEWTIUDA=+MAGRY 159 157 S MAGRY=MAGRY_"^Addendum was created." 160 ; 158 ; 161 159 ;Put in the Date that was sent. 162 K MAGUPD163 160 I '$$VALID^MAGGSIV1(8925,1301,.MAGDATE,.MAGRES) S MAGRY=MAGRY_" "_MAGRES 164 161 E D 165 . S MAGUPD(1301)=MAGDATE 166 . S MAGUPD(1211)=$$GET1^DIQ(8925,1211,MAGTIUDA,"I") 167 ; - Fix in T30, if DUZ isn't MAGESBY, we have Author different than User. 168 I MAGESBY'=DUZ S MAGUPD("1202")=MAGESBY 169 I $D(MAGUPD) D 170 . D UPDATE^TIUSRVP(.MAGY,NEWTIUDA,.MAGUPD) 162 . K X 163 . S X(1301)=MAGDATE 164 . S X(1211)=$$GET1^DIQ(8925,1211,MAGTIUDA,"I") 165 . D UPDATE^TIUSRVP(.MAGY,NEWTIUDA,.X) 171 166 . I 'MAGY S MAGRY=MAGRY_" TIU Data was Not Correctly Filed." 172 167 . Q … … 185 180 Q 186 181 MOD(MAGRY,MAGDFN,MAGTIUDA,MAGADCL,MAGMODE,MAGES,MAGESBY,MAGTEXT) ; RPC [MAG3 TIU MODIFY NOTE] 187 ; After a Note is filed, we call this to Modify the Note. We do this to sign it.188 ; That way the Signed Date is After the Image Association Date/Time.189 182 N $ETRAP,$ESTACK S $ETRAP="D ERR^"_$T(+0) 190 183 S MAGDFN=$G(MAGDFN),MAGTIUDA=$G(MAGTIUDA)
Note:
See TracChangeset
for help on using the changeset viewer.