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

ORWRP PRINT REMOTE REPORT

This rpc is used to print a remote report on the Report tab in CPRS.

Properties

Property Value
Label REMOTE
MUMPS Implementation ORWRPP
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
DEVICE LITERAL 100 true Name of the device where the report should print. Format: <device name> ; <right margin> ; <page length> Right margin and page length are optional.
DFN LITERAL 20 true Internal entry number of entry in the Patient file.
REPORT ID LITERAL 20 true Identification number of the desired report.
HANDLE LIST     List of remote handles to print for.

MUMPS Method Description

Property Value
Method REMOTE^ORWRPP
Method Comment Print data for remote sites
Input Parameters ORIO, ORDFN, ORRPTID, ORHANDS
First Comment
  RPC: ORWRP PRINT REMOTE REPORT
Code
 N ZTDTH,ZTRTN,ZTSK,ZTDESC,ZTSAVE,I,ORHSTAG,ZTIO
S ORHSTAG=$P($G(ORRPTID),"~",2),ORRPTID=$P($G(ORRPTID),"~"),ORRPTID=$P($P(ORRPTID,";"),":")
S ZTIO=ORIO,ZTDTH=$H
S ZTDESC="Remote Report Print"
S ZTRTN="DEQUE^ORWRPP"
F I="ORDFN","ORRPTID","ORHANDS(","ORHSTAG" 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 rReports.pas


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