Difference between revisions of "MediaWiki:PatientCalculators/common.js"
From WikiAnesthesia
Chris Rishel (talk | contribs) (Created page with "( function ( $, mw ) { mw.patientCalculators.addCalculationData( { age: { type: "number", defaultValue: "40", units: [...") |
(No difference)
|
Revision as of 13:51, 1 July 2021
( function ( $, mw ) {
mw.patientCalculators.addCalculationData( {
age: {
type: "number",
defaultValue: "40",
units: [
"yr",
"mo",
"wk"
]
defaultUnits: "yr",
},
gender: {
type: "string",
options: [
"F",
"M"
]
},
height: {
type: "number"
defaultValue: "175",
units: [
"cm",
"m",
"in",
"ft"
],
defaultUnits: "cm"
},
weight: {
type: "number",
defaultValue: "75",
units: [
"kgwt",
"lbwt",
"gwt"
],
defaultUnits: "kgwt"
}
} );
}( jQuery, mediaWiki ) );