MediaWiki:PatientCalculators/common.js
From WikiAnesthesia
< MediaWiki:PatientCalculators
Revision as of 14:19, 1 July 2021 by Chris Rishel (talk | contribs)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
( function ( $, mw ) {
mw.patientCalculators.addCalculationData( {
age: {
type: "number",
default: {
value: 40,
units: "yr"
},
units: [
"yr",
"mo",
"wk"
]
},
gender: {
type: "string",
default: "F",
options: [
"F",
"M"
]
},
height: {
type: "number",
default: {
value: 175,
units: "cm"
},
units: [
"cm",
"m",
"in",
"ft"
]
},
weight: {
type: "number",
default: {
value: 75,
units: "kgwt"
},
units: [
"kgwt",
"lbwt",
"gwt"
]
}
} );
}( jQuery, mediaWiki ) );