VistA Analysis » VistA Reference » RPCs » ORRHCQ QRYITR

ORRHCQ QRYITR

Executes the query for a patient. An iterator is passed in, in the format: ListSource Subscript ^ DFN ^ Item# The value returned includes the records found and the next iterator: PtSearched ^ RecordCount ^ ListSource Subscript ^ NextDFN ^ Next Item#

Properties

Property Value
Label QRYITR
MUMPS Implementation ORRHCQ
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
ORRITR LITERAL   true Iterator used to get the next patient in the query.

MUMPS Method Description

Property Value
Method QRYITR^ORRHCQ
Method Comment Do query for the current iterator
Input Parameters ORRITR
First Comment
 VAL=PtSearched^RecordsFound^Iterator
Code
 S VAL=$$PTSCRN($P(ORRITR,";",2))
I VAL S $P(VAL,U,2)=$$QRYPT($P(ORRITR,";",2))
S $P(VAL,U,3)=$$NXTITER(ORRITR)

CPRS

File Type Description
NOT OSEHRA CPRS  


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