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