VistA Analysis » VistA Reference » RPCs » ORWLR CUMULATIVE SECTION

ORWLR CUMULATIVE SECTION

This rpc retrieves the part of the lab cumulative report selected by the user on the Labs tab.

Properties

Property Value
Label RPT
MUMPS Implementation ORWLR
Return Type GLOBAL ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
DFN LITERAL 20 true Internal entry number of entry in the Patient file.
PART OF CUMULATIVE LITERAL 20 true Name that uniquely identifies the desired part of the lab cumulative.
DATE RANGE LITERAL 5 true This parameter indicates the number of days from TODAYthat the cumulative should search for information.
REPORT SECTION LITERAL 2 true This parameter specifics which section of the lab cumulative partshould be retrieved. (An example of a part is 'Miscellaneous Tests'.)If REPORT SECTION equals 0 then the entire part is re-compiled and thefirst section is passed back. If the part is large then it isnecessary to divide it into sections. Currently, each section cannot be more than be more than 20,000 characters

MUMPS Method Description

Property Value
Method RPT^ORWLR
Method Comment return cum report text
Input Parameters DFN, RPTID, DTRANGE, SECTION
First Comment
  RPC: ORWLR REPORT TEXT
Code
 IF $G(SECTION),$D(^TMP("ORLABDATA",$J,SECTION)) D  G RPTQ
. S OROOT=$NA(^TMP("ORLABDATA",$J,SECTION))
N LINES,ORSUB
K ^TMP("ORLABDATA",$J)
D CUMB(DFN,RPTID,DTRANGE)
S LINES=$S($D(^TMP("LRH",$J,RPTID)):+^(RPTID),1:0)
IF LINES<241 D
. S OROOT=$NA(^TMP("LRC",$J))
. S @OROOT@(.001)="1^1"
ELSE D
. S ORSUB="ORLABDATA",OROOT=$NA(^TMP(ORSUB,$J,1))
. D BUILD

CPRS

File Type Description
NOT OSEHRA CPRS  


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