HMP MED ORDER CHECKS (3679)    REMOTE PROCEDURE (8994)

Name Value
NAME HMP MED ORDER CHECKS
TAG ORCHECK
ROUTINE HMPWBM1
RETURN VALUE TYPE GLOBAL ARRAY
WORD WRAP ON TRUE
VERSION 1
DESCRIPTION
This RPC wraps the broker calls for both ORWDXC ACCEPT and ORCHECK 
GETXTRA into a single call.  It will use the same inputs as the ORWDXC 
ACCEPT RPC; but will combine the outputs from both broker calls into a 
single return.
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Patient IEN found in the PATIENT FILE (#2)
    
  • FID
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    FILLER ID, aka namespace.  Acquired by passing the selected 
    orderDialogIen from the ORWDX WRLST RPC output to the ORWDXC FILLID RPC.
    
  • STRT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Desired date in Mmm DD,YYYY@HH:SS format  (Does not apply to pharmacy 
    orders)
    
  • ORL
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Ordering Location (locationIen from the Visit)
    
  • OIL
    PARAMETER TYPE:   REFERENCE
    MAXIMUM DATA LENGTH:   256
    REQUIRED:   YES
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    An ordered list (array) of orderable items for Radiology, Lab, Pharmacy, 
    etc.  Note:  Pharmacy orders contains orderable items + package 
    information (inpatient, infusion, non-VA, and outpatient medication 
    orders) as appropriate.
    
  • ORIFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    This is only available and required for existing orders that are being
    copied, changed, or renewed.  New orders do not have an orderIen until
    they are saved.
    
  • ORREN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    SEQUENCE NUMBER:   7
    DESCRIPTION:   
    Is the order being renewed.  Input is a boolean 1 or 0
    The ORIFN is required if ORREN is set to 1.
    
RETURN PARAMETER DESCRIPTION
orderIen^orderCheckIen^CDL^message
      Note:  An order check that is returned with the double pipe (||) as 
noted above is the indication that this RPC needs to be run.
 
Final output may contain a mix of order checks with and without extra 
lines.
    orderIen = NEW for new orders.
    CDL = Clinic Danger Level.  If CDL = 1, an override comment will be
required during processing order checks during the signing process.
 
Each order check returned will be evaluated for extra lines:
 
    Example:  NEW^25^2^||63679,54957,NEW&These checks could not be
completed for this patient: