VistA Analysis » VistA Reference » RPCs » ORQPT PROVIDER PATIENTS

ORQPT PROVIDER PATIENTS

Function returns an array of patients linked to a provider/user.

Properties

Property Value
Label PROVPTS
MUMPS Implementation ORQPTQ2
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
USER ID LITERAL 16 true The record number of the user/provider from the New Person File (#200)

MUMPS Method Description

Property Value
Method PROVPTS^ORQPTQ2
Method Comment RETURN LIST OF PATIENTS LINKED TO A PRIMARY PROVIDER
Input Parameters PROV
Code
 I +$G(PROV)<1 S Y(1)="^No provider identified" Q
N ORI,DFN
S ORI=1,DFN=0
F S DFN=$O(^DPT("APR",PROV,DFN)) Q:DFN'>0 S Y(ORI)=+DFN_"^"_$P(^DPT(+DFN,0),"^"),ORI=ORI+1
S:+$G(Y(1))<1 Y(1)="^No patients found."

CPRS

File Type Description
Pascal File rCore.pas


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