PSB GETORDERTAB (1176)    REMOTE PROCEDURE (8994)

Name Value
NAME PSB GETORDERTAB
TAG RPC
ROUTINE PSBVDLTB
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY PUBLIC
WORD WRAP ON TRUE
VERSION 3
DESCRIPTION
Gives the client VDL information for the specified patient and time frame.
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    The patient IEN from ^DPT.
    
  • VDL TAB
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The tab from the VDL that is being requested.
    
  • VDL DATE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    The date of the requested data.  If not passed then current date/time are
    used.
    
  • PSBSIOPI
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
     This parameter is a true/false flag (1/0).  If true use the new SI/OP Wp
     fields and return data in the Results array to the GUI Client.
      
     The field is not required, so a null will convert into a 0, for false,
     making this backwards compatible.
    
  • PSBCLINORD
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    This parameter is a True/False flag (1/0).  If true, then return only
    Clinic Orders and not Inpatient Medication orders to BCMA, else if false, 
    return only Inpatient Medication orders to BCMA.
     
    The field is not required, so a null will convert into a 0, for a 
    default false value, making this backwards compatible.
    
RETURN PARAMETER DESCRIPTION
 
  Results[0] =  ^1      The number of lines returned(count)
                  ^2    SOLUTION IEN
                  ^3    SOLUTION NAME
                  ^4    VOLUME
                  ^5    - not inuse -
                  ^7    HIGH RISK/ALERT INDICATOR
                           0 (null) Not High Risk
                           1 High Risk No Witness Required
                           2 High Risk Recommend Witness              
                           3 High Risk Witness Required
                  ^8     HAZARDOUS TO HANDLE INDICATOR   0/1 (Yes/No)
 
                  ^9     HAZARDOUS TO DISPOSE INDICATOR  0/1 (Yes/No)
  ^Results[n]
   ID list        ^1    LITERAL "ID"
                  ^2    ID NUMBER
                  ^3    ADDITIVE IEN
                  ^...  EACH ADDITIONAL ADDITIVE IEN
  ^Results(n)
   SI WP text     ^1    LITERAL "SI"
                  ^2    SPECIAL INSTRUCTIONS LONG WP TEXT LINES
 
  Results[1] =  ^1      Data for the Unit Dose tab (0=no, 1=yes)
  ^Results[n]     ^1    LITERAL "END" TO INDICATE END OF BLOCK
                ^2      Data for the Piggy Back tab (0=no, 1=yes)
                ^3      Data for the IV tab (0=no, 1=yes)
                ^4      Transfer type if there was a patient movement
                ^5      Movement type if there was a patient movement
                ^6      Count of Inpatient Orders for this patient
                ^7      Count of Clinic Orders for this patient
                ^8      IV's still infusing indicator light
If a valid list of orders are found they are returned in a block format
                ^9      Patch still on indicator light 
 
  Results[2] =  ^1      DFN
                ^2      ORDER NUMBER (20V)
                ^3      NUMERIC PORTION OF ORDER NUMBER (20)
                ^4      ALPHA PORTION OF ORDER NUMBER (V)
                ^5      SCHEDULE TYPE (prn/continuous)
                ^6      SCHEDULE (Q4H)
                ^7      SELF MED (SM or HSM)
                ^8      DRUG NAME
with the word 'END' delimiting orders/administrations.  Lines for
                ^9      DOSAGE/FLOW RATE
                ^10     MED ROUTE
                ^11     LAST ACTION DATE/TIME (FM format)
                ^12     MED LOG IEN (blank if no action)
                ^13     LAST ACTION STATUS (this entry)
                ^14     SCHEDULED ADMIN DATE/TIME
                ^15     ORDERABLE ITEM IEN (^ORD(101.43)
                ^16     INJECTABLE (0=no, 1=yes)
                ^17     VARIABLE DOSE (0=no, 1=yes)
                ^18     DOSEAGE FORM
subsequent block are numbered sequential.  They are not reset to 1 for
                ^19     VERIFYING NURSE INITIALS (*** if none)
                ^20     LAST ACTION STATUS (whole order)
                ^21     ORDER START DATE/TIME (FM)
                ^22     ORDER STATUS
                ^23     UNIQUE ID OF BAG
                ^24     NURSES IEN
                ^25     TRANSACTION TYPE
                ^26     ORDER STOP DATE (FM)
                ^27     LAST "GIVEN" DATE (FM)
                ^28     GIVEN PATCH (1=yes)
each
                ^29     OVERRIDE/INTERVENTION REASONS EXIST (0=No;1=Yes)
                ^30     LAST INJECTION SITE TEXT (per Orderable Item)
                ^31     PIGGYBACK TAB- ROTATION TYPE IV ORDER INJECTABLE 
                        FLAG  (0 or null = No ; 1 = Yes)
                ^32     CLINIC NAME (if a Clinic order)
                ^33     CLINIC IEN POINTER (if a Clinic order)
                ^34     PROMPT FOR REMOVAL IN BCMA CODE
                          (0 for Non-removal type meds)              [def]
                          (1 = remove time is next admin dt/time)
                          (3 = remove time is prior to next admin dt/time)
block.
                ^35     REMOVE DATE/TIME for MMR type meds.
                          (populated for Prompt code of 1 or 3 only)
                ^36     HAZARDOUS TO HANDLE INDICATOR   0/1 (Yes/No)
                ^37     HAZARDOUS TO DISPOSE INDICATOR  0/1 (Yes/No)
 
  ^Results[3] = ^1      SPECIAL INSTRUCTIONS (short field)
                        ("!"  <- BCMA FLAG may precede Text)
  ^Results[n] =
   Dispense Drug  ^1     LITERAL "DD"
                  ^2     DISPENSE DRUG IEN
 
                  ^3     DISPENSE DRUG NAME
                  ^4     UNITS PER DOSE
                  ^5     INACTIVE DATE
                  ^7     HIGH RISK/ALERT INDICATOR
                           0 (null) Not High Risk
                           1 High Risk No Witness Required
                           2 High Risk Recommend Witness
                           3 High Risk Witness Required
                  ^8     PROMPT FOR REMOVAL IN BCMA 
                          (0 for Non-removal type meds)             
 
                          (1 = remove time is next admin dt/time)
                          (3 = remove time is prior to next admin dt/time 
                  ^9     HAZARDOUS TO HANDLE INDICATOR   0/1 (Yes/No)
                  ^10    HAZARDOUS TO DISPOSE INDICATOR  0/1 (Yes/No)
  ^Results[n]
   Additive       ^1    LITERAL "ADD"
                  ^2    ADDITIVE IEN
                  ^3    ADDITIVE NAME
                  ^4    STRENGTH
                  ^5    BOTTLE
 
                  ^7    HIGH RISK/ALERT INDICATOR                      
                           0 (null) Not High Risk
                           1 High Risk No Witness Required
                           2 High Risk Recommend Witness              
                           3 High Risk Witness Required
                  ^8     HAZARDOUS TO HANDLE INDICATOR   0/1 (Yes/No)
                  ^9     HAZARDOUS TO DISPOSE INDICATOR  0/1 (Yes/No)
  ^Results[n]
 
   Solution       ^1    LITERAL "SOL"