@@ -3,6 +3,8 @@ import Foundation
func determineBolusEventType(for event: PumpHistoryEvent) -> EventType {
if event.isExternalInsulin ?? false {
return .nsExternalInsulin
+ } else if event.isSMB ?? false {
+ return .SMB
}
return event.type
@@ -46,6 +46,7 @@ struct PumpHistoryEvent: JSON, Equatable {
enum EventType: String, JSON {
case bolus = "Bolus"
+ case SMB = "SMB"
case mealBolus = "Meal Bolus"
case correctionBolus = "Correction Bolus"
case snackBolus = "Snack Bolus"