VistA Analysis » VistA Reference » RPCs » ORQQCN LIST

ORQQCN LIST

Returns a list of consult requests for a patient within optional date rangeand optional service.

Properties

Property Value
Label LIST
MUMPS Implementation ORQQCN
Return Type GLOBAL ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
PATIENT LITERAL 16 true Patient DFN from File #2 (Patient File.)
START DATE LITERAL 16   Optional start date to begin the search.
STOP DATE LITERAL 16   Optional stop date to end the search.
SERVICE LITERAL 16   Optional consulting service from the Request Service file (#123.5).

MUMPS Method Description

Property Value
Method LIST^ORQQCN
Method Comment return patient's consult requests between start date and stop date for the service and status indicated:
Input Parameters ORPT, ORSDT, OREDT, ORSERV, ORSTATUS
Code
 N I,J,SITE,SEQ,DIFF,ORSRV,ORLOC,GMRCOER
S J=1,SEQ="",GMRCOER=2
S:'$L($G(ORSDT)) ORSDT=""
S:'$L($G(OREDT)) OREDT=""
S:'$L($G(ORSERV))!(+$G(ORSERV)=0) ORSERV=""
S:'$L($G(ORSTATUS)) ORSTATUS="" ;ALL STATI
K ^TMP("GMRCR",$J)
S ORY=$NA(^TMP("ORQQCN",$J,"CS"))
D OER^GMRCSLM1(ORPT,ORSERV,ORSDT,OREDT,ORSTATUS,GMRCOER)
M @ORY=^TMP("GMRCR",$J,"CS")
K @ORY@("AD")
K @ORY@(0)
K ^TMP("GMRCR",$J)

CPRS

File Type Description
Pascal File Consults/rConsults.pas


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