VistA Analysis » VistA Reference » RPCs » XWB REMOTE STATUS CHECK

XWB REMOTE STATUS CHECK

This RPC will return the status of a remote RPC.

Properties

Property Value
Label RPCCHK
MUMPS Implementation XWB2HL7
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
HANDLE LITERAL 30 true This is the handle used to check the status of the remote RPC.

MUMPS Method Description

Property Value
Method RPCCHK^XWB2HL7
Method Comment RPC call to check a handle status
Input Parameters HDL
Code
 N S,M,Z
I $G(HDL)="" S RET(0)="-1^Bad Handle" Q
S RET(0)=$$CHKHDL^XWBDRPC(HDL),S=$$GETNODE(HDL,"MSGID")
I RET(0)'["Done",$L(S) D S $P(RET(1),"^",3)=Z
. S RET(1)=$$MSGSTAT^HLUTIL(S),M=+RET(1),Z=""
. I M=1 S Z=$S($P(RET(1),"^",5)>1:"NOT first in queue",1:"First in queue")
. I M=1.5 S Z="Opening connection"_$S($P(RET(1),"^",6):", open failed "_$P(RET(1),"^",6)_" times.",1:"")
. I M=1.7 S Z="Sent, awaiting responce"
. I M=2 S Z="Awaiting application ACK"

CPRS

File Type Description
Pascal File rReports.pas


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