VistA Analysis » VistA Reference » RPCs » ORWDFH QTY2CC

ORWDFH QTY2CC

Returns cc’s given a product, strength, and quantity.

Properties

Property Value
Label QTY2CC
MUMPS Implementation ORWDFH
Return Type SINGLE VALUE

MUMPS Method Description

Property Value
Method QTY2CC^ORWDFH
Method Comment Return cc's given a product, strength, & quantity
Input Parameters PRD, STR, QTY
Code
 N X,VQTY,DUR
S VQTY=$$VALIDQTY^ORCDFHTF(QTY) I '$L(VQTY)!('PRD)!('STR) S VAL="" Q
S PRD=+$P($G(^ORD(101.43,PRD,0)),U,2)
S DUR=$P(VQTY," X ",2) I $L(DUR) S DUR=$S(DUR["H":"H",1:"X")_+DUR
S X=+VQTY_"&"_$E($P(VQTY," ",2))_U_$P($P(VQTY,"/",2)," ")_U_DUR
S VAL=$$QUAN^FHWOR5R(PRD_"-"_STR,X)_U_VQTY

CPRS

File Type Description
Pascal File Orders/rODDiet.pas


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