コード例 #1
0
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public PatientDetailsViewModel(PhysicianShellViewModel viewModel, string patientId)
 {
     containingShellVm   = viewModel;
     physicianShellModel = new PhysicianShellModel(patientId);
 }
コード例 #7
0
 public void InitPhysicianSell(IUser user)
 {
     physicianShellVM = new PhysicianShellViewModel(this, (Physician)user);
     CurrentVm        = physicianShellVM;
 }