diff --git a/rescueapp/lib/start_triage_system/triage_data.dart b/rescueapp/lib/start_triage_system/triage_data.dart new file mode 100644 index 0000000000000000000000000000000000000000..371abda930eb7bca3f0ec30d28525d054a310cf5 --- /dev/null +++ b/rescueapp/lib/start_triage_system/triage_data.dart @@ -0,0 +1,52 @@ +class SuperCategory { + bool isAmbulatory; + bool isSpontaneousBreathingPresent; + + SuperCategory(this.isAmbulatory, this.isSpontaneousBreathingPresent); +} + +class CategoryT1A extends SuperCategory { + bool isAfterOpeningAirways = true; + + CategoryT1A(this.isAfterOpeningAirways) : super(false, false); +} + +class CategoryT1B extends SuperCategory { + bool isBreathingFrequencyPerMinute = true; + + CategoryT1B( + this.isBreathingFrequencyPerMinute, + ) : super(false, true); +} + +class SuperCategory2 extends SuperCategory { + bool isBreathingFrequencyPerMinute; + bool isCirculation; + + SuperCategory2(this.isBreathingFrequencyPerMinute, this.isCirculation) + : super(false, true); +} + +class CategoryT1C extends SuperCategory2 { + CategoryT1C() : super(false, true); +} + +class CategoryT1D extends SuperCategory2 { + bool isNeurology = false; + CategoryT1D(this.isNeurology) : super(false, false); +} + +class CategoryT2 extends SuperCategory2 { + bool isNeurology = true; + CategoryT2(this.isNeurology) : super(false, false); +} + +class CategoryT3 extends SuperCategory { + CategoryT3() : super(true, null); +} + +class CategoryT4 extends SuperCategory { + bool isAfterOpeningAirways = false; + + CategoryT4(this.isAfterOpeningAirways) : super(false, false); +}