Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

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:37 PM
    2  ;;3.0;IMAGING;**46,59**;Nov 27, 2007;Build 20
     1MAGGNTI1 ;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
    33 ;; Per VHA Directive 2004-038, this routine should not be modified.
    44 ;; +---------------------------------------------------------------+
     
    99 ;; | Development Office of the Department of Veterans Affairs,     |
    1010 ;; | telephone (301) 734-0100.                                     |
    11  ;; |                                                               |
    1211 ;; | The Food and Drug Administration classifies this software as  |
    1312 ;; | a medical device.  As such, it may not be changed in any way. |
     
    1615 ;; | to be a violation of US Federal Statutes.                     |
    1716 ;; +---------------------------------------------------------------+
    18  ;;     
     17 ;;
    1918 Q
    2019NEW(MAGRY,MAGDFN,MAGTITLE,MAGADCL,MAGMODE,MAGES,MAGESBY,MAGLOC,MAGDATE,MAGCNSLT,MAGTEXT) ;RPC [MAG3 TIU NEW]
     
    3736 ;  MAGESBY  - The DUZ of the Signer (Defaults to DUZ)
    3837 ;  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
    4039 ;             "M" = Manual closure, "E" = Electronically Filed
    4140 ;  MAGDATE  - Date of the Note. For New Notes.
     
    5554 I "MSE"'[MAGMODE S MAGRY="0^Invalid Mode of Closure: """_MAGMODE_"""" Q
    5655 ;
    57  ;       Here if we have no Text, we'll add at least a line.
     56 ; Here if we have no Text, we'll add at least a line.
    5857 I $O(MAGTEXT(""))="" S MAGTEXT(.1)="   VistA Imaging - - Scanned Document"
    5958 ;               Reformat Text - "TEXT",i,0)"   for TIU Call.
     
    9796 I '$$VALID^MAGGSIV1(8925,1301,.MAGDATE,.MAGRES) S MAGRY=MAGRY_"  "_MAGRES
    9897 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.
    102100 I MAGISC S MTXT("1405")=MAGCNSLT_";GMR(123,"
    103101 I $D(MTXT) D  I 'MUPD S MAGRY=MUPD Q
     
    105103 . Q
    106104 ;
    107  ;               If Admin Close, then We quit.
     105 ; If Admin Close, then We quit.
    108106 I MAGADCL="1" D  Q
    109107 . D ADMNCLOS^MAGGNTI2(.MAGTY,MAGDFN,MAGTIUDA,MAGMODE)
     
    111109 . Q
    112110 ;
    113  ;               if caller sent esignature to Sign this Note.
     111 ; if caller sent esignature to Sign this Note.
    114112 I $L(MAGES) D
    115113 . D SIGN^MAGGNTI3(.MAGTY,MAGDFN,MAGTIUDA,MAGES,MAGESBY)
     
    143141 ;
    144142 I '$$VALDATA^MAGGNTI2(.MAGRY,MAGDFN,MAGTIUDA) Q
    145  N MAGXT,I,CT,NEWTIUDA,MAGY,MAGRES,MAGUPD
     143 N MAGXT,I,CT,NEWTIUDA,MAGY,MAGRES
    146144 S CT=1,I=""
    147145 S MAGXT("TEXT",1,0)="VistA Imaging  Scanned Document - Addendum."
     
    153151 D MAKEADD^TIUSRVP(.MAGRY,MAGTIUDA,.MAGXT)
    154152 ; MAGRY could be 0^error message
    155  ;       -1^message
    156  ;       TIUDA
     153 ;                                -1^message
     154 ;                                TIUDA
    157155 I $P(MAGRY,"^")<0 S $P(MAGRY,"^")=0 Q
    158156 S NEWTIUDA=+MAGRY
    159157 S MAGRY=MAGRY_"^Addendum was created."
    160  ;
     158 ;       
    161159 ;Put in the Date that was sent.
    162  K MAGUPD
    163160 I '$$VALID^MAGGSIV1(8925,1301,.MAGDATE,.MAGRES) S MAGRY=MAGRY_"  "_MAGRES
    164161 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)
    171166 . I 'MAGY S MAGRY=MAGRY_" TIU Data was Not Correctly Filed."
    172167 . Q
     
    185180 Q
    186181MOD(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.
    189182 N $ETRAP,$ESTACK S $ETRAP="D ERR^"_$T(+0)
    190183 S MAGDFN=$G(MAGDFN),MAGTIUDA=$G(MAGTIUDA)
Note: See TracChangeset for help on using the changeset viewer.