Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
The if Statement 
The while Loop Statement 
The do/while Loop Statement 
The for Loop Statement 
The for/in Loop Statement 
The continue Statement 
The break Statement 
The Array Creation Statement 
Functions 
Data Conversion 
String Functions 
HTML/CSS/JavaScript 
Array Functions 
Date/Time Functions 
Mathematical Functions 
Advanced Functions 
Restricted Functions 
clearCache()
B.clearCache
 
clearLock(...)
B.clearLock
 
End Point request/response
B.request,B.response
 
executeQuery(...)
B.executeQuery
 
logKeyword(...) 
Mckesson Functions 
getActivePatients(...) 
getDispensesByRX(...) 
getDispensesByDate(...) 
getFieldByID(...) 
getDispense(...) 
getDispenseMap(...) 
getPatientMap(...) 
prepareLookup(...) 
setBioImage() 
storeString(...) 
storeURL(...) 
Web Services 
Working with Relate Data 
Field Data 
Text Fields 
Memo Fields 
Date/Time Fields 
Number Fields 
Boolean Fields 
Single Select Fields 
Multiple Select Fields 
Signature Fields 
Document Fields 
Relationship Fields 
Biometric Fields 
Password Fields 
Accessing Forms and Fields 
Special Data and Functions 
How Formulas Work 
Related Topics 

The getDispense(...) function retrieves a Dispense Object from the Mckesson Database by passing it a rxID and dispenseNumber. 

Syntax:
getDispense( rxID, dispenseNumber )
rxID.getDispense( dispenseNumber );

Parameter Description
rxID A String value containing the id assigned to the RX.
dispenseNumber A String value containing the dispense number assigned to the dispense.

The Dispense Object

Field Description
rxID A String value containing the id assigned to the RX.
dispenseID A String value containing the id assigned to the dispense.
dispenseNumber A Integer value containing the dipense number of the dispense.
item A String value containing the item name assigned to the RX.
prescriber A String value containing the prescriber's name assigned to the RX. 
dispenseQty A Integer value containing the quantity in the dispense.
dispenseDailyQty A Integer value containing the quantity to be given daily for the dispense.
instructions A String value containing the instructions for dispensing the RX. 
daysSupply A Integer value containing the number of days supplied for the dispense.
dispenseDate A Date value containing the date of the dispense.

Method Description
getFieldByID(String fieldID) This function results in a String containing the value for that field for that dispense.
getDispenseMap(DispenseCustomObject dispense) This function results in a Map always in case the soap call returns a Map of items, however, it is used to make webservice calls to a soap client.