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: [...") |
Chris Rishel (talk | contribs) |
||
| Line 8: | Line 8: | ||
"mo", | "mo", | ||
"wk" | "wk" | ||
] | ], | ||
defaultUnits: "yr", | defaultUnits: "yr", | ||
}, | }, | ||
| Line 19: | Line 19: | ||
}, | }, | ||
height: { | height: { | ||
type: "number" | type: "number", | ||
defaultValue: "175", | defaultValue: "175", | ||
units: [ | units: [ | ||
Revision as of 14:01, 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 ) );