12345678910111213141516171819202122232425262728293031323334353637 |
- import 'dart:math' as math;
- import 'package:fis_measure/interfaces/enums/species.dart';
- import 'package:fis_measure/process/calcuators/formulas/cardiac.dart';
- abstract class GlobalPatientConfig {
- static double weight = 0;
- static double height = 0;
-
-
-
- static double bsa = 0;
- static updateBSAbyWH() {
- if (weight == 0 || height == 0) {
- bsa = 0;
- }
- bsa = math.sqrt((height * weight) / 3600);
- }
-
- static int? hr;
-
- static SpeciesType speciesType = SpeciesType.animals;
-
- static switchSpecies(SpeciesType type) {
- speciesType = type;
- CardiacFormulas.reinitialize();
- }
- }
|