Namespace: pt

pt

Object representing the patient.

Properties:
Name Type Description
_sex string | number

patient's sex, or 0 if invalid input

_age number

petiant's age in years, or 0 if invalid input

_wt number

patient's weight in kg, or 0 if invalid input

_ht number

petiant's height in cm, or 0 if invalid input

_scr number

patient's serum creatinine, or 0 if invalid input

outlierSelected boolean

PK outlier checkbox was clicked

Source:

Members

(static, constant) config

Contains the min and max values for input validation

Source:

Methods

(static) adjBW() → {number}

Gets the patient's adjusted body weight, using a factor of 0.4. Returns 0 if age < 18.

Source:
See:

(static) age(xopt) → {number}

Gets/sets the age of the patient. Accepts in years, months, days, or months/days.

Parameters:
Name Type Attributes Description
x string | number <optional>

Patient's age in days, months, or years

Source:
Requires:
Example
pt.age("50");    // sets patient's age to 50 years
pt.age("23m");   // sets patient's age to 23 months (getter returns in years)
pt.age("16m3d"); // sets patient's age to 16 months, 3 days (getter returns in years)
pt.age("300d");  // sets patient's age to 300 days (getter returns in years)

(static) ageContext() → {string}

Gets the age context of the patient. Possible values are adult (default), child, and infant

Source:

(static) bmi() → {number}

Gets the patient's body mass index

Source:
See:

(static) bsa() → {number}

Gets the patient's body surface area using the Mosteller formula if patient is 14 years of age or older.

Source:
See:

(static) cg(weight) → {number}

Calculates the patient's Cockroft-Gault creatinine clearance

Parameters:
Name Type Description
weight number

weight in kg to use for calculation

Source:

(static) cgActual() → {number}

Gets the patient's Cockroft-Gault creatinine clearance using actual body weight.

Source:
See:

(static) cgAdjusted() → {number}

Gets the patient's Cockroft-Gault creatinine clearance using adjusted body weight.

Source:
See:

(static) cgIdeal() → {number}

Gets the patient's Cockroft-Gault creatinine clearance using ideal body weight.

Source:
See:

(static) crcl() → {number}

Gets the patient's Protocol CrCl (equation and weight depend on age and percent over/under IBW.

Source:
See:

(static) ht(xopt) → {number}

Gets/sets the height of the patient.

Parameters:
Name Type Attributes Description
x number <optional>

Patient's height

Source:
Requires:

(static) ibw() → {number}

Gets the patient's ideal body weight. Returns 0 if age < 18.

Source:
See:

(static) lbw() → {number}

Gets the patient's lean body weight. Returns 0 if age < 18.

Source:
See:

(static) overUnder() → {number}

Gets the percent the patient is over or under ideal body weight. Returns 0 if age < 18.

Source:
See:
Example
If patient is 30% above their IBW, returns `30`

(static) schwartz() → {number}

Gets the patient's Schwartz CrCl

Source:
See:

(static) schwartzK(xopt) → {number}

Gets/sets the k value for the Schwartz CrCl equation.

Parameters:
Name Type Attributes Description
x number <optional>

selectedIndex of k value input element where 0 is "term infant" and 1 is "LBW infant"

Source:
See:

(static) scr(xopt) → {number}

Gets/sets the patient's serum creatinine.

Parameters:
Name Type Attributes Description
x number <optional>

Patient's SCr

Source:
Requires:

(static) sex(xopt) → {string|number}

Gets/sets the sex of the patient. Accepts a single letter - m or f - and stores as uppercase. If invalid, stores 0.

Parameters:
Name Type Attributes Description
x any <optional>

Patient's sex

Source:

(static) wt(xopt) → {number}

Gets/sets the weight of the patient.

Parameters:
Name Type Attributes Description
x number <optional>

Patient's weight

Source:
Requires: