VistA Analysis » VistA Reference » RPCs » ORWDPS32 VALQTY

ORWDPS32 VALQTY

Validate a medication quantity and return a 1 if it is valid, otherwisereturn 0.

Properties

Property Value
Label VALQTY
MUMPS Implementation ORWDPS33
Return Type SINGLE VALUE

MUMPS Method Description

Property Value
Method VALQTY^ORWDPS33
Method Comment validate a quantity, return 1 if valid, 0 if not
Input Parameters X
First Comment
 to be compatible with LM, make sure X is integer from 1 to 240
this is based on the input transform from 52,7
Code
 K:(+X'>0)!(+X>99999999)!(X'?.8N.1".".2N)!($L(X)>12) X
S OK=$S($D(X):1,1:0)

CPRS

File Type Description
Pascal File Orders/rODBase.pas


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