Esempio n. 1
0
        private void UpdatePatient()
        {
            if (_Patient == null)
            {
                _Patient = new WCFPatient();
            }
            _Patient.PatientID             = comboBoxPatientId.Text;
            _Patient.IssuerOfPatientID     = textBoxIssuerOfPatientId.Text;
            _Patient.PatientNamePrefix     = textBoxPrefix.Text;
            _Patient.PatientNameFamilyName = textBoxFamily.Text;
            _Patient.PatientNameGivenName  = textBoxGiven.Text;
            _Patient.PatientNameSuffix     = textBoxSuffix.Text;

            if (dateTimePickerBirth.Checked)
            {
                _Patient.PatientBirthDate = new DicomDateRangeValue()
                {
                    Date1 = new DicomDateValue(dateTimePickerBirth.Value)
                }
            }
            ;

            _Patient.PatientSex      = comboBoxSex.Text;
            _Patient.SpecialNeeds    = textBoxSpecialNeeds.Text;
            _Patient.PatientComments = textBoxComments.Text;
        }
Esempio n. 2
0
        private void SetPatientInfo()
        {
            if (MainForm.Mpps.Patient != null)
            {
                WCFPatient p = MainForm.Mpps.Patient;

                labelPatient.Text = string.Format("[{0}] {1} {2}", p.PatientID, p.PatientNameGivenName, p.PatientNameFamilyName);
            }
            else
            {
                labelPatient.Text = "Not Associated With A Patient";
            }
        }
Esempio n. 3
0
        private void GetPatientInformation()
        {
            ProgressDialog      dlgProgresss = new ProgressDialog();
            BrokerServiceClient client       = GetWizard().Tag as BrokerServiceClient;
            string pid  = comboBoxPatientId.Text;
            string ipid = textBoxIssuerOfPatientId.Text;

            dlgProgresss.Title       = "Querying";
            dlgProgresss.Description = "Getting patient information";
            dlgProgresss.Action      = () =>
            {
                _Patient = client.FindPatient(pid, ipid);
            };

            _Update                    = false;
            _OriginalPatientId         = string.Empty;
            _OriginalIssuerOfPatientId = string.Empty;
            if (dlgProgresss.ShowDialog(this) == DialogResult.OK)
            {
                if (_Patient != null)
                {
                    _Update = true;
                    UpdateUI();
                    _OriginalPatientId         = _Patient.PatientID;
                    _OriginalIssuerOfPatientId = _Patient.IssuerOfPatientID;
                    errorProvider.Clear();
                }
                else
                {
                    Messager.ShowError(this, "Patient not found.");
                }
            }
            else
            {
                if (dlgProgresss.Exception != null)
                {
                    Messager.ShowError(this, dlgProgresss.Exception);
                }
            }
        }