VistA Analysis » VistA Reference » RPCs » ORQPT SPECIALTY PATIENTS

ORQPT SPECIALTY PATIENTS

Function returns an array of patients linked to a treating specialty.

Properties

Property Value
Label SPECPTS
MUMPS Implementation ORQPTQ2
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
SPECIALTY ID LITERAL 16 true The record number of the treating specialty from the Facility TreatingSpecialty File (#45.7).

MUMPS Method Description

Property Value
Method SPECPTS^ORQPTQ2
Method Comment RETURN LIST OF PATIENTS LINKED TO A TREATING SPECIALTY
Input Parameters SPEC
Code
 I +$G(SPEC)<1 S Y(1)="^No specialty identified" Q 
N ORI,DFN
S ORI=1,DFN=0
F S DFN=$O(^DPT("ATR",SPEC,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