PSB MED LOG LOOKUP (1974)    REMOTE PROCEDURE (8994)

Name Value
NAME PSB MED LOG LOOKUP
TAG RPC
ROUTINE PSBMLLKU
RETURN VALUE TYPE ARRAY
AVAILABILITY PUBLIC
INACTIVE ACTIVE
VERSION 3
DESCRIPTION
BCMA Medication Log Look Up Remote Procedures.
                      "SELECTAD" (selected admin.)
               (1)     values to use per lookup. (DFN per ADMLKUP)
                       value of selected item. (PSB IEN per SELECTAD)
               (2)     search date per ADMLKUP
    
Output: RESULTS (array)
        RESULTS(0)    number of lookup matches
               (1)    error message or data per match/selection
               (n)    data per subsequent match/selection.
 
 
"PTLKUP" results data format:
RPC Call: PSB MED LOG LOOKUP
RESULTS(0) = 1
RESULTS(1) = 
piece 1         Patient's DFN               ("-1" if error/message)
piece 2         Patient's Name
piece 3         Sex
piece 4         Date of Birth (FM format)
piece 5         Social Security Number
piece 6         ""
This routine is a conglomerate of  Medication Log lookup functionality
piece 7         ""
piece 8         ""
piece 9         ""
piece 10        Date Of Birth (displayable format)
piece 11        Social Security Number (displayable format)
 
 
 
"ADMLKUP" results data format:
RESULTS(0)=Number of lines returned.
per the BCMA Graphical User Interface software.
 
RESULTS(1)=
piece 1         DFN of Patient
piece 2         DATE of Activity
piece 3         Orderable Item_" "_Dosage Form
piece 4         IV Unique ID
piece 5         Action Status
piece 6         Schedule Type
piece 7         Action Date/Time (FileMan)
piece 8         Action By Initials
 
piece 9         PRN Reason
piece 10        PRN Effectiveness
 
 
 
"SELECTAD" results data format:
 
RESULTS(0)=Number of lines returned.
 
RESULTS(1)=
Input:  PSBREC (array)
piece 1         PSBIEN of the administration selected for edit. ("-1" if error/message)
piece 2         DFN of Patient                                
piece 3         Patient Name
piece 4         SSN
piece 5         Medication
piece 6         BagID
piece 7         AdminStat
piece 8         "for possible later use"
piece 9         AdminD/T
piece 10        BodySiteTxt "|I" or "D"   (Injection or Dermal site)
        PSBREC (0)     determine  "lookup" function 
piece 11        "IV"/"PB"/"UD"
piece 12        "for possible later use"
piece 13        Order Status
piece 14        Schedul. Type
piece 15        Order Number_U/V
piece 16        Order has given MRR or patch or infusing IVbag - Flag
 
RESULTS(2)=
piece 1         PRN Reason
piece 2         PRN Effectiveness
                      "PTLKUP" (patient file (#2) lookup)
 
RESULTS(3..n) [for each dd/add/sol] =
piece 1         "DD"/"ADD"/"SOL"
piece 2         drug IEN
piece 3         drug Name
piece 4         Units Ordered
piece 5         Units Given
piece 6         Units of Administration
piece 7         High Risk flag
piece 8         Medication Requires Removal (MRR) flag
                      "ADMLKUP" (MedLog administration lookup)
INPUT PARAMETER
  • PSBREC
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    PSBREC  (array)
    (0)     determines  "lookup" function 
            "PTLKUP"  (patient file (#2) lookup)
            "ADMLKUP"  (administration lookup)
            "SELECTAD" (process selected administration. 
    (1)     values to use for the lookup.  (DFN for the ADMLKUP)
            "SELECTAD" must present the PSBIEN value
            of the user-chosen administration.
    (2)     search date for ADMLKUP
    
RETURN PARAMETER DESCRIPTION
RESULTS (array)
(0)     number of lookup matches
(1)     error message or detail data per lookup match
(n)     continued data per subsequent lookup match.
        per SELECTAD - administration data ...