private void SavePatient()
        {
            //var user = (Patient)FindUserByCid(_hyPrDevice.CurrentRfid);
            var user = (Patient)FindUserByCid(SelectedUser.Cid);

            if (user != null)
            {
                user.UpdateAllProperties(SelectedUser.Patient);
                SelectedUser = new PatientViewModel(user);
                _wardNode.UpdatePatient(user);
            }
            else
            {
                user = new Patient
                {
                    Name  = SelectedUser.Name,
                    Color = SelectedUser.Color,
                    Cid   = SelectedUser.Cid,
                    Tag   = SelectedUser.Tag
                };

                _wardNode.AddPatient(user);

                SelectedUser.UpdateAllProperties(user);
            }
        }
Ejemplo n.º 2
0
 private void AddNewAnonymousPatient()
 {
     WardNode.AddPatient(new Patient());
 }