Difference between revisions of "MediaWiki:PatientCalculators/anatomy.js"
From WikiAnesthesia
Chris Rishel (talk | contribs) |
Chris Rishel (talk | contribs) |
||
| Line 3: | Line 3: | ||
anatomy: { | anatomy: { | ||
bmi: { | bmi: { | ||
name: 'Body mass index', | |||
abbreviation: 'bmi', | abbreviation: 'bmi', | ||
requiredData: [ 'height', 'weight' ], | |||
calculate: function( patientData ) { | calculate: function( patientData ) { | ||
console.log( 'Calculating BMI!' ); | console.log( 'Calculating BMI!' ); | ||
console.log( this ); | |||
}, | }, | ||
units: 'kg/m^2' | units: 'kg/m^2' | ||
} | } | ||
Revision as of 07:29, 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: 'kg/m^2'
}
}
}
}( jQuery, mediaWiki ) );