VistA Analysis » VistA Reference » RPCs » ORWPCE HASVISIT

ORWPCE HASVISIT

Returns the visit status of the visit associated with a note:1 if the visit is being pointed to by an appointment0 if the visit is NOT being pointed to by an appointment-1 if the visit is invalid or could not be determined

Properties

Property Value
Label HASVISIT
MUMPS Implementation ORWPCE
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
IEN LITERAL     IEN of the Note.
DFN LITERAL     Patient DFN.
ORLOC LITERAL     Hospital Location.
ORDTE LITERAL     Visit Date

MUMPS Method Description

Property Value
Method HASVISIT^ORWPCE
Method Comment Has visit or is stand alone
Input Parameters IEN, DFN, ORLOC, ORDTE
Code
 N ORVISIT
S ORY=-1
I +$G(IEN)>0 S ORVISIT=+$P($G(^TIU(8925,+IEN,0)),U,3)
I +$G(ORVISIT)'>0 S ORVISIT=$$GETENC^PXAPI(DFN,ORDTE,ORLOC)
I +$G(ORVISIT)>0 S ORY=$$VST2APPT^PXAPI(ORVISIT)

CPRS

File Type Description
Pascal File Encounter/rPCE.pas


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