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;
 }
Example #2
0
 public AddReceptViewModel(PhysicianShellViewModel containingVm, string patientId, Physician physician)
 {
     this.patientId    = patientId;
     addReceptModel    = new ReceptModel(patientId, physician);
     this.containingVm = containingVm;
     AddToDbCommand    = new AddToDbCommand(this);
     DrugCollection    = new ObservableCollection <Drug>(addReceptModel.DrugList);
     OperationCommand  = new CreatePDFCommand(this);
     IsEnabledPDF      = false;
 }
Example #3
0
 public HistoricalMedicalRecordsViewModel(PhysicianShellViewModel containingVm, string patientId, Physician physician)
 {
     this.containingVm        = containingVm;
     this.medicalRecordM      = new MedicalRecordModel(patientId, physician);
     MedicalRecordsCollection = new ObservableCollection <MedicalRecord>(medicalRecordM.MedicalRecordsList);
     BackCommand        = new BackCommand(this);
     EditingItemCommand = new EditingItemCommand(this);
     this.physician     = physician;
     this.patientId     = patientId;
 }
 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);
 }
 public AddMedicalRecordViewModel(PhysicianShellViewModel containingVm, string patientId, Physician physicianUser, MedicalRecord medicalRecordExists = null)
 {
     if (medicalRecordExists == null)
     {
         this.medicalRecordModel = new MedicalRecordModel(patientId, physicianUser);
     }
     else
     {
         this.medicalRecordModel = new MedicalRecordModel(patientId, physicianUser, medicalRecordExists);
     }
     this.containingVm  = containingVm;
     AddToDbCommand     = new AddToDbCommand(this);
     this.patientId     = patientId;
     this.physicianUser = physicianUser;
 }
Example #6
0
 public PatientDetailsViewModel(PhysicianShellViewModel viewModel, string patientId)
 {
     containingShellVm   = viewModel;
     physicianShellModel = new PhysicianShellModel(patientId);
 }
 public void InitPhysicianSell(IUser user)
 {
     physicianShellVM = new PhysicianShellViewModel(this, (Physician)user);
     CurrentVm        = physicianShellVM;
 }