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;
 }
Exemplo n.º 2
0
 public AddPhysicianViewModel(AdminShellViewModel containingShellVm)
 {
     addPhysicianM     = new AddPhysicianModel();
     this.containingVm = containingShellVm;
     UpdateDbCommand   = new AddToDbCommand(this);
     IsNewPhysician    = true;
     BackCommand       = new BackCommand(this);
     Physician         = new Physician();
 }
 public AddPatientViewModel(AdminShellViewModel containingVm)
 {
     addPatientM       = new AddPatientModel();
     this.containingVm = containingVm;
     UpdateDbCommand   = new AddToDbCommand(this);
     TodayDate         = DateTime.Today;
     IsNewPatient      = true;
     BackCommand       = new BackCommand(this);
     Patient           = new Patient();
 }
Exemplo n.º 4
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;
 }
 public AddDrugViewModel(AdminShellViewModel containingVm)
 {
     addDrugM                = new AddDrugModel();
     this.containingVm       = containingVm;
     UpdateDbCommand         = new AddToDbCommand(this);
     IsNewDrug               = true;
     BackCommand             = new BackCommand(this);
     IngredientToAdd         = new ActiveIngredient();
     Ingredients             = new ObservableCollection <ActiveIngredient>();
     AddIngredientCommand    = new AddIngredientToDrugCommand(this);
     DeleteIngredientCommand = new DeleteItemCommand(this);
     FileDialogCommand       = new OpenFileDialogCommand(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;
 }