VistA Analysis » VistA Reference » RPCs » ORWRP PRINT LAB REMOTE

ORWRP PRINT LAB REMOTE

This rpc is used to print a remote report on the Labs tab in CPRS. RETURN PARAMETER DESCRIPTION: If the print request was successfully queued then the Task manager task number is return. Otherwise, and error code and error description are returned. Error Code Table: Code Text —- —- 0 1 No device selected 2 No report specified 3 Report type specified is not valid 4 No date range specified 6 Patient specified is not valid

Properties

Property Value
Label REMOTE
MUMPS Implementation ORWRPL
Return Type SINGLE VALUE

MUMPS Method Description

Property Value
Method REMOTE^ORWRPL
Method Comment Print data for remote sites
Input Parameters ORIO, ORDFN, RPTID, ORHANDS
First Comment
  RPC: ORWRP PRINT REMOTE REPORT
Code
 N ZTDTH,ZTRTN,ZTSK,ZTDESC,ZTSAVE,I
S ZTIO=ORIO,ZTDTH=$H
S ZTDESC="Remote Lab Report Print"
S ZTRTN="DEQUE^ORWRPL"
F I="ORDFN","RPTID","ORHANDS(" S ZTSAVE(I)=""
D ^%ZTLOAD
I $D(ZTSK) D
. S ORY="0^Report queued. (Task #"_ZTSK_")"
E D
. S ORY="99^Task Rejected."

CPRS

File Type Description
Pascal File rLabs.pas


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