public MedicalFileViewModel(PhysicianShellViewModel containingShellVm, string patientId, Physician physicianUser) { this.containingShellVm = containingShellVm; medicalFileM = new MedicalFileModel(patientId); AddToDbCommand = new AddToDbCommand(this); ScreenReplacementCommand = new ScreenReplacementCommand(this); this.physicianUser = physicianUser; }
public ConsumptionOfDrugsViewModel(PhysicianShellViewModel containingVm, string patientId) { medicalFileModel = new MedicalFileModel(patientId); this.containingVm = containingVm; DrugsPreviouslyTaken = new ObservableCollection <Recept>(medicalFileModel.AllRecepts.Where(x => x.TreatmentEndDate < DateTime.Now)); DrugsTake = new ObservableCollection <Recept>(medicalFileModel.AllRecepts.Where(x => x.TreatmentEndDate >= DateTime.Now)); ListDisplay = new ObservableCollection <Recept>(DrugsTake); BackCommand = new BackCommand(this); ChangeListDisplayCommand = new ChangeListDisplayCommand(this); RemoveFromDb = new DeleteItemCommand(this); }