public void CreatePatient()                                                                              //Responsible for patient creation
        {
            PatientClass newPatient = _patientCatalog.CreatePatient                                              //Sends data to the PatientCatalog in the model
                                          (SSN, PName, PAddress, PAge, RName, RTlf, Relationship, CID, ValidTo); //layer and assigns the Patient it returns

            PatientViewModelCollection.Add(newPatient);                                                          //Adds the patient to ObservableCollection so it's useable in the view layer
        }
Beispiel #2
0
 private void RegisterNewPatient()
 {
     if (Age < 18)
     {
         _pc.CreatePatientWithRelative(Name, HsCard, Relative, Address, SSN, Age, ValidTo, RName, RPhone, Relationship);
     }
     else
     {
         _pc.CreatePatient(HsCard, Name, Address, SSN, Age, ValidTo);
     }
 }