VistA Analysis » VistA Reference » RPCs » ORWPT LAST5

ORWPT LAST5

Returns a list of patients matching the string of Last Name Initial_Last 4SSN (Initial/Last 4 look-up to PATIENT file).

Properties

Property Value
Label LAST5
MUMPS Implementation ORWPT
Return Type ARRAY

MUMPS Method Description

Property Value
Method LAST5^ORWPT
Method Comment Return a list of patients matching A9999 identifiers
Input Parameters ID
Code
 N I,IEN,XREF
S (I,IEN)=0,XREF=$S($L(ID)=5:"BS5",1:"BS")
F S IEN=$O(^DPT(XREF,ID,IEN)) Q:'IEN D
. S I=I+1,LST(I)=IEN_U_$P(^DPT(IEN,0),U)_U_$$DOB^DPTLK1(IEN,2)_U_$$SSN^DPTLK1(IEN) ; DG249

CPRS

File Type Description
Pascal File rCore.pas


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