fixed handling of nul results from Vitals and Problems RPCs
This commit is contained in:
parent
da93576617
commit
048e3cc26c
|
@ -30,7 +30,10 @@ EXTRACT(IPXML,DFN,OUTXML) ; EXTRACT PROBLEMS INTO PROVIDED XML TEMPLATE
|
|||
;
|
||||
N RPCRSLT,J,K,PTMP,X,VMAP,TBUF
|
||||
D LIST^ORQQPL3(.RPCRSLT,DFN,"") ; CALL THE PROBLEM LIST RPC
|
||||
I '$D(RPCRSLT(0)) W "ERROR CALLING LIST^ORQQPL3 ",! Q
|
||||
I '$D(RPCRSLT(1)) D ; RPC RETURNS NULL
|
||||
. W "NULL RESULT FROM LIST^ORQQPL3 ",!
|
||||
. S @OUTXML@(0)=0
|
||||
. Q
|
||||
ZWR RPCRSLT
|
||||
S TVMAP=$NA(^TMP("GPLCCR",$J,"PROBVALS"))
|
||||
S TARYTMP=$NA(^TMP("GPLCCR",$J,"PROBARYTMP"))
|
||||
|
|
|
@ -27,7 +27,10 @@ EXTRACT(VITXML,DFN,VITOUTXML) ; EXTRACT VITALS INTO PROVIDED XML TEMPLATE
|
|||
;
|
||||
N VITRSLT,J,K,VITPTMP,X,VITVMAP,TBUF
|
||||
D VITALS^ORQQVI(.VITRSLT,DFN,"","")
|
||||
I '$D(VITRSLT(1)) W "ERROR RUNNINIG VITALS RPC",! Q
|
||||
I '$D(VITRSLT(1)) D ; NULL RESULT FROM RPC
|
||||
. W "NULL RESULT FROM VITALS RPC",!
|
||||
. S @VITOUTXML@(0)=0
|
||||
. Q
|
||||
; ZWR RPCRSLT
|
||||
S VITTVMAP=$NA(^TMP("GPLCCR",$J,"VITALS"))
|
||||
S VITTARYTMP=$NA(^TMP("GPLCCR",$J,"VITALARYTMP"))
|
||||
|
|
Loading…
Reference in New Issue