예제 #1
0
        /**************************************************************************************************/
        private void activePatientLoaded(object sender, RunWorkerCompletedEventArgs e)
        {
            if (tasks != null)
                tasks.ReleaseListeners(this);

            tasks = proband.Tasks;
            tasks.AddHandlersWithLoad(TaskListChanged,
                                      TaskListLoaded,
                                      TaskChanged);
        }
예제 #2
0
        public static List <HRA4.ViewModels.Tasks> FromRATaskList(this RiskApps3.Model.PatientRecord.Communication.TaskList apps)
        {
            List <HRA4.ViewModels.Tasks> tasks = new List <HRA4.ViewModels.Tasks>();

            foreach (RAT.Task app in apps)
            {
                tasks.Add(app.FromRATTasks());
            }
            return(tasks);
        }
예제 #3
0
파일: Patient.cs 프로젝트: mahitosh/HRA4
        public Patient(string p_unitnum)
        {
            unitnum = p_unitnum;

            relativeID = 1;
            relationship = "Self";

            FHx = new FamilyHistory(this);
            owningFHx = FHx;

            MedHx = new MedicationHx(this);
            SocialHx = new SocialHistory(this);
            PhysicalExam = new PhysicalExamination(this);
            ObGynHx = new ObGynHistory(this);
            // deprecated diet = new Diet(this);
            procedureHx = new ProcedureHx(this);
            breastImagingHx = new BreastImagingHx(this);
            transvaginalImagingHx = new TransvaginalImagingHx(this);
            labsHx = new LabsHx(this);
            follupSatus = new FollowupStatus(unitnum, apptid);
            Tasks = new TaskList(this);
            Providers = new ProviderList(this);
            cdsBreastOvary = new CDSBreastOvary(this);
            guiPreferences = new GUIPreferenceList(this);
            PediatricCDS = new PediatricConsiderations(this);
            SurveyReponses = new SurveyResponseList(this);
            MammographyHx = new MammographyHx(this);
        }
예제 #4
0
        public void DeleteTasks(int _institutionId, string unitnum, int apptid)
        {
            //SetUserSession();
            string assignedBy = "";
            if (SessionManager.Instance.ActiveUser != null)
            {
                if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                {
                    assignedBy = SessionManager.Instance.ActiveUser.ToString();
                }
            }
            SessionManager.Instance.SetActivePatient(unitnum, apptid);
            RiskApps3.Model.PatientRecord.Patient p = SessionManager.Instance.GetActivePatient();
            //Creating task object
            RiskApps3.Model.PatientRecord.Communication.Task t = new RiskApps3.Model.PatientRecord.Communication.Task(p, "Task", null, assignedBy, DateTime.Now);
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            TaskList tList = new TaskList(p);
            tList.LoadFullList();

            AppointmentList apt = new AppointmentList();
            apt.LoadFullList();

            foreach (RiskApps3.Model.PatientRecord.Communication.Task task in tList)
            {
                PtFollowupList fList = new PtFollowupList(task);
                fList.LoadFullList();
                HraModelChangedEventArgs args1 = new HraModelChangedEventArgs(null);
                args1.Delete = true;
                foreach (PtFollowup followup in fList)
                {
                    followup.BackgroundPersistWork(args1);
                }
                task.BackgroundPersistWork(args1);
            }
            //Creating folowup object
        }