Exemplo n.º 1
0
        public void EditAppt(int clinicId, Appointment appointment)
        {
            MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(appointment.apptID, appointment.unitnum);

            mark.ShowDialog();
            User.setClinicID(clinicId);
            AddAppointmentView view = new AddAppointmentView(appointment, clinicId, AddAppointmentView.Mode.Edit);

            view.ShowDialog();

            SessionManager.Instance.ClearActivePatient();
        }
Exemplo n.º 2
0
        public void CopyAppt(int clinicId, Appointment toCopy)
        {
            User.setClinicID(clinicId);

            Appointment copiedFromExisting = new Appointment(toCopy, clinicId);

            MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(copiedFromExisting.apptID, copiedFromExisting.unitnum);

            mark.ShowDialog();

            AddAppointmentView view = new AddAppointmentView(
                copiedFromExisting,
                clinicId,
                AddAppointmentView.Mode.Copy);

            view.ShowDialog();
        }
Exemplo n.º 3
0
        /// <summary>
        /// User for new appointment.
        /// </summary>
        /// <param name="mrn"></param>
        /// <param name="clinicId">clinic to default to when opening wizard</param>
        public AddAppointmentView(string mrn, int?clinicId) : this()
        {
            this._mode = Mode.Add;

            InitializeModeConditions();

            this._patient = new Patient(mrn);
            this._patient.Providers.LoadFullList();

            SessionManager.Instance.SetActivePatient(this._patient.unitnum, this._patient.apptid);

            this._appointment = new Appointment(clinicId, mrn)
            {
                ClinicList = this._clinics
            };

            this._clinicId = clinicId;

            MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(this._appointment.apptID, this._appointment.unitnum);

            mark.ShowDialog();
        }