Difference between revisions of "MediaWiki:PatientCalculators/anatomy.js"
From WikiAnesthesia
Chris Rishel (talk | contribs) |
Chris Rishel (talk | contribs) |
||
| Line 3: | Line 3: | ||
bmi: { | bmi: { | ||
name: 'Body mass index', | name: 'Body mass index', | ||
abbreviation: ' | abbreviation: 'BMI', | ||
requiredData: [ 'height', 'weight' ], | requiredData: [ 'height', 'weight' ], | ||
calculate: function( patientData ) { | calculate: function( patientData ) { | ||
Revision as of 07:48, 1 July 2021
( function ( $, mw ) {
mw.patientCalculators.calculations.anatomy = {
bmi: {
name: 'Body mass index',
abbreviation: 'BMI',
requiredData: [ 'height', 'weight' ],
calculate: function( patientData ) {
console.log( 'Calculating BMI!' );
console.log( this.units );
},
units: 'kg/m^2'
}
}
}( jQuery, mediaWiki ) );