Namespace: calculate

calculate

Functions called by event listeners to calculate and display results

Source:

Methods

(static) allForPatient()

Call all methods that depend on patient data

Source:

(static) amgWeight()

Input and output for aminoglycoside dosing

Source:
Requires:

(static) createVancoTable(obj) → {String}

Generate HTML for a table of dosing options. Data can be provided as an array to display different values in each column, or as a number to repeat the same number in each column.

Parameters:
Name Type Description
obj Object

Input parameters

Properties
Name Type Attributes Description
rows Array.<Object>

Table row parameters

Properties
Name Type Attributes Description
title String <optional>

Row header

units String <optional>

Units for values

roundTo Number <optional>

Rounding factor if values are to be rounded

data Number | Array.<Number> <optional>

Data for cells

highlightColumns Array.<Boolean> <optional>

Whether column is to be highlighted

Source:
Requires:

(static) ivig() → {undefined}

Input and output for IVIG calculation

Source:
Requires:

(static) patientData() → {undefined}

Input and output for patient parameters including CrCl, weights, etc.

Source:
Requires:

(static) peakTiming()

For peak level timing, calculate and output time to draw peak

Since:
  • v1.1.1
Source:
Requires:

(static) peakTimingDuration()

For peak level timing, calculate and output infusion time for the selected dose

Since:
  • v1.1.1
Source:
Requires:

(static) secondDose() → {undefined}

Input and output for Second Dose tab

Source:
Requires:

(static) syncCurrentDFT(src) → {undefined}

Sync dose, frequency, and trough inputs between tabs

Parameters:
Name Type Description
src String

id prefix of element to use as the source

Source:
Requires:

(static) vancoAUC(resetIntervalopt) → {undefined}

Input and output for AUC calculation

Parameters:
Name Type Attributes Default Description
resetInterval Boolean <optional>
true

whether recommended interval should override user input

Source:
Requires:

(static) vancoAUCDates() → {undefined}

Input and output for AUC date/time calculation modal

Source:
Requires:

(static) vancoInitial() → {undefined}

Input and output for initial protocol dosing and initial PK dosing

Source:
Requires:

(static) vancoRevision() → {undefined}

Input and output for linear and kinetic single-level dose adjustments

Source:
Requires:

(static) vancoSteadyStateCheck() → {undefined}

Input and output for Steady State Check on single-level tab

Source:
Requires:

(static) vancoTwolevel(resetIntervalopt) → {undefined}

Input and output for Two-Level kinetic calculation

Parameters:
Name Type Attributes Default Description
resetInterval Boolean <optional>
true

whether recommended interval should override user input

Source:
Requires: