VistA Analysis » VistA Reference » RPCs » MAG4 REMOTE IMPORT

MAG4 REMOTE IMPORT

Called from MS Windows Application.

Properties

Property Value
Label REMOTE
MUMPS Implementation MAGGSIUI
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
MAGDATA LIST   true This is the array of data needed to Import the Image(s)Format is sequential array of "Data Node^Data"i.e. MAGDATA(1)="PXPKG^8925" MAGDATA(2)="PXIEN^443" MAGDATA(3)="IMAGE^\SERVER\SHARE\FILENAME.EXT^Description"

MUMPS Method Description

Property Value
Method REMOTE^MAGGSIUI
Method Comment RPC [MAG4 REMOTE IMPORT]
Input Parameters MAGDATA
First Comment
 Import Images from a Windows App, by sending an array.
Code
 I ($D(MAGDATA)<10) S MAGRY(0)="0^Missing Data Array !." Q
N I,J,ICT,DCT,MAGIX,IMAGES,ERR,X,Z
S (ERR,ICT,DCT)=0
S I="" F S I=$O(MAGDATA(I)) Q:I="" S X=MAGDATA(I) D Q:ERR
. S Z=$P(X,U)
. I (X="")!(Z="") S MAGRY(0)="0^INVALID Data in Input Array: Node "_I_"="""_X_"",ERR=1 Q
. I Z="IMAGE" S ICT=ICT+1,IMAGES(ICT)=$P(X,U,2,99) Q
. S DCT=DCT+1,MAGIX(Z)=$P(X,U,2,99)
I 'ERR D IMPORT(.MAGRY,.IMAGES,.MAGIX)

CPRS

File Type Description
NOT OSEHRA CPRS  


Document generated on August 31st 2022, 2:55:43 pm