import 'package:fis_jsonrpc/rpc.dart'; import 'package:get/get_rx/src/rx_types/rx_types.dart'; import 'package:vitalapp/consts/rpc_enum_labels.dart'; import 'package:vitalapp/pages/check/follow_up/models/select_model.dart'; class FollowUpState { final Rx _followUpTime = Rx( DateTime( DateTime.now().year, DateTime.now().month, DateTime.now().day, 23, 59, 59, ), ); final Rx _nextFollowUpTime = Rx(null); final Rx _followUpMode = Rx(FollowUpModeEnum.Outpatient); final Rx _followUpPhoto = Rx(''); final Rx _followUp3_6_Year = Rx(FollowUpChild3_6YearEnum.ThreeYear); DateTime? get followUpTime => _followUpTime.value; set followUpTime(DateTime? val) => _followUpTime.value = val; DateTime? get nextFollowUpTime => _nextFollowUpTime.value; set nextFollowUpTime(DateTime? val) => _nextFollowUpTime.value = val; FollowUpModeEnum? get followUpMode => _followUpMode.value; set followUpMode(FollowUpModeEnum? val) => _followUpMode.value = val; FollowUpChild3_6YearEnum? get followUp3_6_Year => _followUp3_6_Year.value; set followUp3_6_Year(FollowUpChild3_6YearEnum? val) => _followUp3_6_Year.value = val; String? get followUpPhoto => _followUpPhoto.value; set followUpPhoto(String? val) => _followUpPhoto.value = val; final followUpModeEnumSelectList = [ SelectModel( code: FollowUpModeEnum.Outpatient, name: '门诊'), SelectModel(code: FollowUpModeEnum.Visit, name: '家庭'), SelectModel(code: FollowUpModeEnum.Phone, name: '电话'), ]; final followUpChild3_6YearSelectList = [ SelectModel( code: FollowUpChild3_6YearEnum.ThreeYear, name: '3岁', ), SelectModel( code: FollowUpChild3_6YearEnum.FourYear, name: '4岁', ), SelectModel( code: FollowUpChild3_6YearEnum.FiveYear, name: '5岁', ), SelectModel( code: FollowUpChild3_6YearEnum.SixYear, name: '6岁', ), ]; }