VistA Analysis » VistA Reference » RPCs » XWB DIRECT RPC

XWB DIRECT RPC

This is the Broker RPC that is called to request that a RPC be run on aremote system. The data is passed by HL7 to the remote system as is thereturn value. The difference between this and the XWB REMOTE RPC is thisis a blocking call meaning the user’s workstation will not processanything else until the data returns from the remote system.

Properties

Property Value
Label DIRECT
MUMPS Implementation XWB2HL7
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
LOC LITERAL 30 true This is the Institution's station # to send the RPC to.
RRPC LITERAL 30 true This is the name of the remote RPC to be run.

MUMPS Method Description

Property Value
Method DIRECT^XWB2HL7
Method Comment Call a remote RPC
Input Parameters LOC, RPC, RPCVER, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10
Code
 N X,I,INX,N,XWBHL7,XWBPAR,XWBPCNT,XWBDVER,XWBESSO,XWBHDL,PMAX
N XWBMSG,XWBSEC,RPCIEN
N HLMTIEN,HLDOM,HLECH,HLFS,HLINSTN,HLNEXT,HLNODE,HLPARAM,HLQ,HLQUIT
D SETUP(1) I $G(RET(1))'="" Q
D DIRECT^XWB2HL7A("ZREMOTE RPC",XWBHDL,.XWBMSG,LOC,.XWBPAR)
I $P(XWBMSG,U,2) S RET(0)="-1^"_$P(XWBMSG,"^",3) Q
I 'HLMTIEN S RET(0)="-1^No Message returned" Q
D RETURN,RTNDATA^XWBDRPC(.RET,XWBHDL)

CPRS

File Type Description
Pascal File rCore.pas
Pascal File rReports.pas


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