Beispiel #1
0
 public Record(Patient Patient, DateTime Date, string ID, bool[] Flag, string _data)
 {
     this.DoctorID = Patient.DoctorID;
     this.DoctorName = Patient.DoctorName;
     this.PatientID = Patient.ID;
     this.PatientName = Patient.Name;
     this.ID = ID;
     this.Date = Date;
     this.Flag = Flag;
     this._data = _data;
 }
        public MonitorForm(Patient Patient)
        {
            this.Patient = Patient;

            InitializeComponent();
            InitializeScreen(Patient);
            InitializeData();
            InitializeComponents();

            state = state.Wait;
        }
        public MonitorForm(Patient Patient, Record Record)
        {
            this.Patient = Patient;
            //this.Record  = Record;

            InitializeComponent();
            InitializeData(Record);
            InitializeComponents();
            InitializeScreen(Patient, Record);

            state = state.History;
        }
        public RecordLabel(Doctor Doctor, Patient Patient, int RecordIndex, Point Point)
        {
            InitializeComponent();
            this.Location = Point;

            this.Doctor   = Doctor;
            this.Patient  = Patient;
            this.Record   = Patient.Records[RecordIndex];

            // load record info
            Label.Text = Record.Date.ToString("h : m  d / M / yyyy");
            subLabel.Text   = Record.ID;
        }
        public MonitorForm()
        {
            InitializeComponent();
            InitializeScreen();
            InitializeData();
            InitializeComponents();

            Patient = new Patient();
            Patient.ID = "P20120001";
            Patient.Name = "Simulator Patient";

            state = state.Wait;
        }
Beispiel #6
0
        public Patient[] LoadAllPatient()
        {
            Patient[] AllPatient = null;
            WebService.Patient[] _allPatient = Service.getAllPatient();
            if (_allPatient != null)
            {
                int count = _allPatient.Count();

                AllPatient = new Patient[count];
                for (int i = 0; i < count; i++) AllPatient[i] = new Patient(_allPatient[i]);
            }

            return AllPatient;
        }
Beispiel #7
0
        public void reLoadPatient()
        {
            WebService.Patient[] _patients = Service.getPatientByResDoctor(this.ID);
            if (_patients != null)
            {
                int count = _patients.Count();

                this.Patients = new Patient[count];
                for (int i = 0; i < count; i++)
                {
                    Patients[i] = new Patient(_patients[i]);
                    Patients[i].DoctorID   = this.ID;
                    Patients[i].DoctorName = this.Name;
                }
            }
        }
        public PatientManager(Patient Patient)
        {
            InitializeComponent();
            InitializeFullScreen();
            this.Patient = Patient;

            LoadRecord();

            // patient info
            AvatarBox.Image   = Patient.Avatar;
            NameBox.Text      = Patient.Name;
            DoctorBox.Text    = Patient.ID;
            SexBox.Text       = Patient.Sex.ToString();
            BirthdayBox.Value = Patient.Birthday;
            WeightBox.Value   = (int) Patient.Weight;
            JobBox.Text       = Patient.Job;
            AddressBox.Text   = Patient.Address;
        }
        public RecordManager(Doctor Doctor, Patient Patient, Record Record)
        {
            InitializeComponent();
            this.Bounds = Screen.PrimaryScreen.Bounds;

            this.Doctor  = Doctor;
            this.Patient = Patient;
            this.Record  = Record;

            LoadComment();

            DateTimeLabel.Text          = Record.Date.ToString("d/M/yyyy - h:m");
            AvatarBox.Image             = Patient.Avatar;
            PatientNameLabel.Text       = Patient.Name;
            TreatDoctorNameLabel.Text   = "Doctor: " + Record.DoctorName;
            CommentsNumerLabel.Text     = Record.Comment == null ? "No Comment" : Record.Comment.Count().ToString() + " Comments";
            RecordLeghtLabel.Text       = "Record Time: " + Record.Leght.Hour + " : " + Record.Leght.Minute + " : " + Record.Leght.Second;
        }
        public PatientManager(Doctor Doctor, Patient Patient)
        {
            InitializeComponent();
            InitializeFullScreen();

            this.Doctor  = Doctor;
            this.Patient = Patient;

            LoadRecord();

            // patient info
            AvatarBox.Image     = Patient.Avatar;
            NameBox.Text        = Patient.Name;
            DoctorBox.Text          = Patient.ID;
            SexBox.Text         = Patient.Sex.ToString();
            BirthdayBox.Value   = Patient.Birthday;
            WeightBox.Value     = (int)Patient.Weight;
            JobBox.Text         = Patient.Job;
            AddressBox.Text     = Patient.Address;

            // editable
            //EditButton.Enabled = Doctor.ID == Patient.DoctorID;
        }
        private void InitializeScreen(Patient Patient)
        {
            // set patient info
            AvatarBox.Image       = Patient.Avatar;
            PatientNameLabel.Text = Patient.Name;

            // clear Record Data Lable text
            RecordInfoLable.Text  = "";
            RecordLeghtLabel.Text = "";
        }
        private void InitializeScreen(Patient Patient, Record Record)
        {
            InitializeScreen(Patient);

            // set record info
            RecordInfoLable.Text = "Record: " + Record.Date.ToShortDateString() + " " + Record.Date.ToShortTimeString();
            RecordLeghtLabel.Text = ""; // Record.Leght + "ms";

            // draw graph
            for (int i = 0; i < 12; i++) Graph[i].ResetPanel();
        }