Difference between revisions of "MediaWiki:PatientCalculators/common.js"
From WikiAnesthesia
Chris Rishel (talk | contribs) |
Chris Rishel (talk | contribs) |
||
Line 4: | Line 4: | ||
type: "number", | type: "number", | ||
default: { | default: { | ||
value: | value: 40, | ||
units: "yr" | units: "yr" | ||
}, | }, | ||
Line 24: | Line 24: | ||
type: "number", | type: "number", | ||
default: { | default: { | ||
value: | value: 175, | ||
units: "cm" | units: "cm" | ||
}, | }, | ||
Line 37: | Line 37: | ||
type: "number", | type: "number", | ||
default: { | default: { | ||
value: | value: 75, | ||
units: "kgwt" | units: "kgwt" | ||
}, | }, |
Latest revision as of 15:19, 1 July 2021
( 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 ) );