VistA Analysis » VistA Reference » RPCs » ORWPCE MH TEST AUTHORIZED

ORWPCE MH TEST AUTHORIZED

Indicates if a given mental health test can be given by the given user.

Properties

Property Value
Label MHATHRZD
MUMPS Implementation ORWPCE2
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
TEST LITERAL     MENTAL HEALTH TEST NAME
USER LITERAL     The user giving the test.

MUMPS Method Description

Property Value
Method MHATHRZD^ORWPCE2
Method Comment Indicates that user can score test
Input Parameters TEST, USER
Code
 N ORYS,ORANS
I $T(PRIVL^YTAPI5)="" S ORY=1 Q
S ORY=0
S ORYS("CODE")=TEST
S ORYS("STAFF")=USER
D PRIVL^YTAPI5(.ORANS,.ORYS)
I $G(ORANS(1))="[DATA]" S ORY=+$P($G(ORANS(2)),U,1)

CPRS

File Type Description
Pascal File Encounter/rPCE.pas


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