VistA Analysis » VistA Reference » RPCs » ORQQLR SEARCH RANGE INPT

ORQQLR SEARCH RANGE INPT

Returns the date search range in number of days (e.g. 2) to begin the search before today. For example, a value of 2 would indicate to limit thesearch between two days and today. Limited to inpatients.

Properties

Property Value
Label SRIN
MUMPS Implementation ORQQLR
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
PATIENT LITERAL 32 true Identifier from Patient file [#2].

MUMPS Method Description

Property Value
Method SRIN^ORQQLR
Method Comment return lab results search date range for an inpatient
Input Parameters ORPT
Code
 N DIFF,SDT,EDT,ORSRV,ORLOC
I +$G(ORPT)>0 D
.N DFN S DFN=ORPT,VA200="" D OERR^VADPT
.I +$G(VAIN(4))>0 S ORLOC=+$G(^DIC(42,+$G(VAIN(4)),44))
.K VA200,VAIN
S ORSRV=$G(^VA(200,DUZ,5)) I +ORSRV>0 S ORSRV=$P(ORSRV,U)
S DIFF=$$GET^XPAR("USR^LOC.`"_$G(ORLOC)_"^SRV.`"_+$G(ORSRV)_"^DIV^SYS^PKG","ORQQLR SEARCH RANGE INPT",1,"E")
S:+$G(DIFF)<1 DIFF=2 ;if no default defined use 2 days
S ORY=DIFF

CPRS

File Type Description
NOT OSEHRA CPRS  


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