Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Data Conversion 
String Functions 
HTML/CSS/JavaScript 
Array Functions 
Date/Time Functions 
Mathematical Functions 
Advanced Functions 
Alert Functions 
compileSASS(String Sass) 
createChart(...) 
doLookup(...)
B.lookup
 
drugAllergyByProductID(...)
B.Drug.allergyInteractionsWith
 
drugDrugByProductID(...)
B.Drug.drugInteractionsWith
 
drugFoodByProductID(...)
B.Drug.foodInteractions
 
getCurrentNav(...) 
getHTTPRequester(...)
B.fetch
 
getPageInfo()
B.pageInfo
 
getPDF(...)
B.pdf
 
getRecentRecords(...)
B.optRecentRecords,BaseRecord.optRecentRecords,User.recentRecords
 
getSecurityGroup(...)
B.findSecurityGroup
 
getUserData(...)
B.sessionData,User.userData
 
getZipOutput(...)
B.zip
 
isLayout() 
log(...) 
Medispan 
newPatientProfile() 
newPatientDrug(...) 
newEmail(...)
B.email
 
readZip(...)
B.zip
 
sendEmail(...)
B.email
 
sendIntramail(...) 
sendMessage(...)
B.sendMessage
 
sendRedirect(...)
B.response.sendRedirect
 
sleep(...) 
Restricted Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

The newPatientProfile() method creates a PatientProfile object that is used to preform various Medispan related calculations. These include, Drug to Drug Interactions, Dose Screenings, and different Contraindication Screenings. The PatientProfile object is a wrapper for different data points used to make these calculations such as weight, gender, age, and Medications.

Syntax:
newPatientProfile( )

PatientProfile Object

Field/Function Description
setGender(value) Takes a string of "Male" or "Female" to set the Gender.
setBirthDate(value) Takes a date in the format "dd/MM/yyyy" to set the Birthdate.
setWeight(value, unit) The first parameter is a string value of the weight, the second parameter takes a string of "lb" or "kg" to specify the unit of measure.
addMed(PatientDrug) Takes a PatientDrug object and adds it to the profile.
drugDrugInteractions() Calculates Drug to Drug Interactions. Returns an array of type [Integer]String
diseaseContraindications() Calculates Disease Contraindications. Returns an array of type [Integer]String
genderContraindications() Calculates Gender Contraindications. Returns an array of type [Integer]String
ageContraindications() Calculates Age Contraindications. Returns an array of type [Integer]String
pregnancyContraindications() Calculates Pregnancy Contraindications. Returns an array of type [Integer]String
lactationContraindications() Calculates Lactation Contraindications. Returns an array of type [Integer]String
doseScreening() Preforms a dose screening. Returns an array of type [Integer]String
ingredientDoseScreening() Preforms an ingredient dose screening. Returns an array of type [Ineger]String