Changeset 636 for FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGTU31.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/MAGGTU31.m
r628 r636 1 1 MAGGTU31 ;WOIFO/GEK - Silent calls for Imaging ; [ 06/20/2001 08:57 ] 2 ;;3.0;IMAGING;**46 ,59**;Nov 27, 2007;Build 202 ;;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. | … … 62 61 I MAGMED S J=J+1,MAGK(J)="MAGCAP MED" 63 62 Q 64 GETINFO(MAGRY,IEN) ; RPC [MAG4 GET IMAGE INFO]Called from MAGGTU365 ; Call (3.0p8) to get information on 1 image66 ; and Display in the Image Information Window67 N Y,J,JI,I,CT,IENC,FLAGS,SNGRP,Z,M40,T,QACHK,OBJTYP,VAL,LBL68 S I=0,CT=069 S MAGRY(CT)="Image ID#: "_IEN70 I $D(^MAG(2005.1,IEN)) D Q71 . S CT=CT+1,MAGRY(CT)=" STATUS: "_"HAS BEEN DELETED. !!"72 . S CT=CT+1,MAGRY(CT)="Deleted By: "_$$GET1^DIQ(2005.1,IEN,30,"E")73 . S CT=CT+1,MAGRY(CT)=" Reason: "_$$GET1^DIQ(2005.1,IEN,30.2,"E")74 . S CT=CT+1,MAGRY(CT)=" Date: "_$$GET1^DIQ(2005.1,IEN,30.1,"E")75 . Q76 S M40=$G(^MAG(2005,IEN,40)),T=$P(M40,"^",3)77 S Z=$P($G(^MAG(2005,IEN,0)),"^",10) I Z D78 . S CT=CT+1,MAGRY(CT)=" is in Group#: "_Z_" ("_+$P(^MAG(2005,Z,1,0),"^",4)_" images)"79 . D CHK^MAGGSQI(.QACHK,Z) Q:QACHK(0)80 . S CT=CT+1,MAGRY(CT)=" QA Warning - Group#: "_Z_" "_$P(QACHK(0),"^",2)81 . Q82 S OBJTYP=$P(^MAG(2005,IEN,0),"^",6)83 S SNGRP="FLDS"84 I (+$O(^MAG(2005,IEN,1,0)))!(OBJTYP=11)!(OBJTYP=16) D85 . S CT=CT+1,MAGRY(CT)=$P($G(^MAG(2005,IEN,40)),"^",1)_" Group of "_+$P($G(^MAG(2005,IEN,1,0)),U,4)86 . S SNGRP="FLDG"87 . Q88 K QACHK89 D CHK^MAGGSQI(.QACHK,IEN) I 'QACHK(0) D90 . S CT=CT+1,MAGRY(CT)=" QA Warning - Image#: "_IEN_" "_$P(QACHK(0),"^",2)91 N MAGOUT,MAGERR,MAGVAL,PKG92 S IENC=IEN_","93 S FLAGS="EN"94 S I=-195 S PKG=""96 F S I=I+1,Z=$T(@SNGRP+I) Q:$P(Z,";",3)="end" D97 . S J=$P(Z,";",4),JI=J_";"98 . K MAGOUT99 . S CT=CT+1,MAGRY(CT)=$P(Z,";",3)100 . I J=41 D Q ; Need to compute the Class. Class field in Image File is wrong.101 . . S MAGVAL=$S('T:"",'$D(^MAG(2005.83,T,0)):"",1:$P(^MAG(2005.82,$P(^MAG(2005.83,T,0),"^",2),0),"^",1))102 . . S MAGRY(CT)=MAGRY(CT)_" "_MAGVAL103 . . Q104 . D GETS^DIQ(2005,IEN,JI,FLAGS,"MAGOUT","MAGERR")105 . ; Get Extension from FileRef106 . I J=1 S MAGVAL=$P($G(MAGOUT(2005,IENC,J,"E")),".",2)107 . E S MAGVAL=$G(MAGOUT(2005,IENC,J,"E"))108 . S MAGVAL=$TR(MAGVAL,"&","+")109 . I J=40 S PKG=MAGVAL110 . I ((J>=50)&(J<=54)) D Q111 . . I PKG'="LAB" K MAGRY(CT) Q112 . . S MAGRY(CT)=MAGRY(CT)_" "_MAGVAL113 . . Q114 . S MAGRY(CT)=MAGRY(CT)_" "_MAGVAL115 ; Compare Parent Association Date with Date/Time Note Signed.116 I $P(^MAG(2005,IEN,0),"^",10) S IEN=$P(^MAG(2005,IEN,0),"^",10)117 I $P(^MAG(2005,IEN,2),"^",6)=8925 S CT=CT+1,MAGRY(CT)=$$ATTSTAT^MAGGTU31(IEN)118 ;119 I (OBJTYP=11),($P($G(^MAG(2005,IEN,100)),"^",6)="") D120 . S X=$O(^MAG(2005,IEN,1,0))121 . S IEN=+$G(^MAG(2005,IEN,1,X,0))122 . Q123 I $P($G(^MAG(2005,IEN,100)),"^",6)]"" D124 . I OBJTYP=11 D ; If a Group, get Object Type of First Child125 . . S Z=$O(^MAG(2005,IEN,1,0))126 . . I 'Z Q127 . . S Z=+$G(^MAG(2005,IEN,1,Z,0))128 . . S OBJTYP=+$P($G(^MAG(2005,Z,0)),"^",6) ; Object of First Child129 . . Q130 . S OBJTYP=","_OBJTYP_","131 . S LBL="",VAL=""132 . I ",3,9,10,12,100,"[OBJTYP S LBL="Image Creation Date: " ; "Acquisition Date";133 . I ",15,101,102,103,104,105,"[OBJTYP S LBL="Document Creation Date: "134 . I LBL="" S LBL="Image Creation Date: "135 . S VAL=$$GET1^DIQ(2005,IEN,110,"E") S:(VAL="") VAL="N/A"136 . S CT=CT+1,MAGRY(CT)=LBL_VAL137 . Q138 Q139 ;140 FLDS ;;Format: ;3;;141 ;;Extension: ;1;;142 FLDG ;;Patient: ;5;;143 ;;Desc: ;10;;144 ;;Procedure: ;6;;145 ;; Date: ;15;;146 ;;Class: ;41;;147 ;;Package: ;40;;148 ;;Type: ;42;;149 ;;Proc/Event: ;43;;150 ;;Spec/SubSpec: ;44;;151 ;;Origin: ;45;;152 ;;Accession # ;50;;153 ;;Specimen Desc ;51;;154 ;;Specimen# ;52;;155 ;;Stain ;53;;156 ;;Objective ;54;;157 ;;Captured on: ;7;;158 ;; by: ;8;;159 ;;end;;
Note:
See TracChangeset
for help on using the changeset viewer.