VistA Analysis » VistA Reference » RPCs » ORQPT WARDRMBED

ORQPT WARDRMBED

Returns the ward, room-bed for a patient.

Properties

Property Value
Label WRB
MUMPS Implementation ORQPTQ3
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
PATIENT ID LITERAL 16 true Patient identifier (DFN) from file #2

MUMPS Method Description

Property Value
Method WRB^ORQPTQ3
Method Comment return patient's ward, room-bed: ward ien^ward name room-bed
Input Parameters DFN
Code
 N WNAME,WIEN S WIEN="",Y=""
S WNAME=$G(^DPT(DFN,.1)) I $L(WNAME) S WIEN=$O(^DIC(42,"B",WNAME,WIEN))
I $L($G(WNAME)),$L($G(WIEN)) S Y=WIEN_U_WNAME_" "_$G(^DPT(DFN,.101))

CPRS

File Type Description
NOT OSEHRA CPRS  


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