|
||||||
|
Relate Components | RelateScript | BlueStep.js |
drugDrugByProductID(...)
The drugDrugByProductID(...) function is used to see if a drug will interact with another drug. The result of drugDrugByProductID(...) is an array of type String[String] with three specific values: drugInteraction = drugDrugByProductID( productID_1, productID_2); drugInteraction["severity"]: Severity of the drug interaction Syntax:
The drugInteraction["description"] contains two place holders for the actual drug names. These place holders are called {CS1} and {CS2}. Use the replace(...) function to insert the correct drug Name. Example: description = drugInteraction["description"].replace("{CS1}", drugName1) |