import 'package:get/get.dart';
import 'package:vnote_device_plugin/consts/types.dart';
import 'package:vitalapp/pages/medical/models/item.dart';

class MedicalState {
  final RxnString _currentTab = RxnString(null);
  final RxList<MedicalItem> _medicalMenuList = RxList<MedicalItem>([
    // MedicalItem(key: DeviceTypes.TEMP, diagnosticItem: '体温'),
    // MedicalItem(key: DeviceTypes.SUGAR, diagnosticItem: '血糖'),
    // MedicalItem(key: DeviceTypes.NIBP, diagnosticItem: '血压'),
    // MedicalItem(key: DeviceTypes.SPO2, diagnosticItem: '血氧'),
    // MedicalItem(key: DeviceTypes.WEIGHT, diagnosticItem: 'BMI'),
  ]);

  // final Rx<Map<String, dynamic>> _diagnosisDataValue = Rx({});

  String? get currentTab => _currentTab.value;
  set currentTab(String? val) => _currentTab(val);

  /// 健康检测列表
  set medicalMenuList(List<MedicalItem> value) => _medicalMenuList(value);
  List<MedicalItem> get medicalMenuList => _medicalMenuList;

  // Map<String, dynamic> get diagnosisDataValue => _diagnosisDataValue.value;
  // set diagnosisDataValue(Map<String, dynamic> val) => _diagnosisDataValue(val);
}
