VistA Analysis » VistA Reference » RPCs » ORQQPL SAVEVIEW

ORQQPL SAVEVIEW

Saves preferred view (inpatient/outpatient) and list of preferredclinics/services to NEW PERSON file, field 125.nn. Also sets value ofparameter [ORCH CONTEXT PROBLEMS], which controls the default status ofthe problems shown, as well as whether comments should be displayed.Preferences take effect for both GUI and List Manager, and can be changedfrom either interface.

Properties

Property Value
Label SAVEVIEW
MUMPS Implementation ORQQPL2
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
GMPLVIEW LITERAL 64 true See field 125.nn of the NEW PERSON file for format of the first piece,related to inpatient/outpatient and clinics/services. Piece 2 is in the format 'a;b;c;d'. The first two ';' pieces are ignored.The third piece represents the status of the problems to be displayed(A,I,R,B) for Active, Inactive, Removed, and Both Active/Inactive. The4th ';' piece is a 1 to show comments, and a 0 to hide comments. Seeparameter ORCH CONTEXT PROBLEMS for description.

MUMPS Method Description

Property Value
Method SAVEVIEW^ORQQPL2
Method Comment save new view in File #200/Field #125
Input Parameters GMPLVIEW
Code
 N TMP
Q:'$D(GMPLVIEW)
S TMP=$P($G(^VA(200,DUZ,125)),U,2,999)
S ^VA(200,DUZ,125)=$P(GMPLVIEW,U,1)_U_TMP
S TMP=$$GET^XPAR(DUZ_";VA(200,","ORCH CONTEXT PROBLEMS",1)
I TMP'="" D Q
. D CHG^XPAR(DUZ_";VA(200,","ORCH CONTEXT PROBLEMS",1,$P(GMPLVIEW,U,2))
D ADD^XPAR(DUZ_";VA(200,","ORCH CONTEXT PROBLEMS",1,$P(GMPLVIEW,U,2))

CPRS

File Type Description
Pascal File rProbs.pas


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