public ConfigurationViewModel() { Layouts = new ObservableCollection <string>() { "L Shape", "Parallel" }; _icuDataModel = new IcuDataModel("", 1, Layouts[0]); AddIcuCommand = new Command.DelegateCommandClass(AddIcuWrapper, CanExecuteWrapper); }
public AdmitPatientViewModel(string bedId) { _patientDataModel = new PatientDataModel { BedId = bedId, PatientAge = 50, ContactNo = 88888888 }; Message = ""; AdmitNewPatientCommand = new Command.DelegateCommandClass(AdmitNewPatientWrapper, CanExecuteWrapper); }
public UpdateVitalsViewModel(string patientId, string bedId) { _vitalsDataModel = new VitalsDataModel(patientId, bedId); VitalsDataModel responseObj = HttpClientUtility.GetVitalData(patientId).Result; Bpm = responseObj.Bpm; Spo2 = responseObj.Spo2; RespRate = responseObj.RespRate; Message = ""; UpdateVitalsCommand = new Command.DelegateCommandClass(UpdateVitalsWrapper, CanExecuteWrapper); }
public BedViewModel(BedDataModel bed) { _bedDataModel = bed; AlertMessage = ""; AlertMessageHistory = ""; CheckPatientVitalsCommand = new Command.DelegateCommandClass(CheckPatientVitalsWrapper, CanExecuteWrapper); DischargePatientCommand = new Command.DelegateCommandClass(DischargePatientWrapper, CanExecuteWrapper); StopAlertCommand = new Command.DelegateCommandClass(StopAlertWrapper, CanExecuteWrapper); UndoAlertCommand = new Command.DelegateCommandClass(UndoAlertWrapper, CanExecuteWrapper); }