示例#1
0
        /// <summary>
        /// 返回一个体温实体
        /// </summary>
        /// <param name="pid"></param>
        /// <param name="bed_no"></param>
        /// <param name="time"></param>
        /// <returns></returns>
        public Class_T_CHILD_VITAL_SIGNS GetTempers(string child_id, string time)
        {
            if (this.txtTemper.Text == "" && chkTemperture.Checked == false)
            {
                if (this.cbEvent.SelectedIndex == 0 || this.cbEvent.SelectedIndex == 1)
                {
                    this.cbEvent.SelectedIndex = 0;
                    if (this.lbEvents.Items.Count < 1)
                    {
                        return(null);
                    }
                }
            }
            Class_T_CHILD_VITAL_SIGNS tvs = new Class_T_CHILD_VITAL_SIGNS();

            tvs.Patient_id   = child_id; //床号
            tvs.Measure_time = time;

            if (this.txtTemper.Text != "")
            {
                tvs.Temperature_value = float.Parse(this.txtTemper.Text);        //体温测量值
            }
            else if (chkTemperture.Checked == true)
            {
                float value = 34;
                tvs.Temperature_value = value;
            }
            if (this.txtDown.Visible)
            {
                if (this.txtDown.Text != "")
                {
                    if (float.Parse(this.txtDown.Text) > 0)
                    {
                        tvs.Cooling_value = float.Parse(this.txtDown.Text);
                    }
                }
            }
            if (cbReiteration.Checked == true)   //复测标志
            {
                tvs.Re_measure = "Y";
            }
            else
            {
                tvs.Re_measure = "N";
            }

            //switch (this.cbEvent.Text) //测量状态
            //{
            //    case "已测":
            //        tvs.Temp_state = "F";
            //        break;
            //    case "私自外出":
            //        tvs.Temp_state = "O";
            //        break;
            //    case "请假":
            //        tvs.Temp_state = "L";
            //        break;
            //    case "拒测":
            //        tvs.Temp_state = "R";
            //        break;
            //}

            string eventsString = "";


            if (this.lbEvents.Items.Count > 0)
            {
                foreach (object var in this.lbEvents.Items)
                {
                    eventsString += var.ToString() + "|";
                }
                tvs.Describe = eventsString.Substring(0, eventsString.Length - 1);
            }


            return(tvs);
        }
示例#2
0
        /// <summary>
        /// 返回一个体温实体
        /// </summary>
        /// <param name="pid"></param>
        /// <param name="bed_no"></param>
        /// <param name="time"></param>
        /// <returns></returns>
        public Class_T_CHILD_VITAL_SIGNS GetTempers(string pid, string bed_no, string time, string pid_Ids)
        {
            if (this.txtTemper.Text == "" && this.txtPulse.Text == "" && this.txtBreathing.Text == "")
            {
                if (this.cbEvent.SelectedIndex == 0 || this.cbEvent.SelectedIndex == 1)
                {
                    this.cbEvent.SelectedIndex = 0;
                    if (this.lbEvents.Items.Count < 1)
                    {
                        return(null);
                    }
                }
            }
            Class_T_CHILD_VITAL_SIGNS tvs = new Class_T_CHILD_VITAL_SIGNS();

            tvs.ID           = App.GenId().ToString();
            tvs.Bed_no       = bed_no; //床号
            tvs.Pid          = pid;    //住院病人ID
            tvs.Measure_time = time;
            tvs.Patient_id   = pid_Ids;

            if (this.txtTemper.Text != "")
            {
                tvs.Temperature_value = float.Parse(this.txtTemper.Text);      //体温测量值
            }
            tvs.Temperature_body = this.cbTemperType.SelectedIndex.ToString(); //测量部位

            if (cbReiteration.Checked)                                         //复测标志
            {
                tvs.Re_measure = "Y";
            }
            else
            {
                tvs.Re_measure = "N";
            }

            if (this.txtDown.Visible)
            {
                if (this.txtDown.Text != "")
                {
                    if (float.Parse(this.txtDown.Text) > 0)
                    {
                        tvs.Cooling_value = float.Parse(this.txtDown.Text);
                    }
                }
            }

            tvs.Cooling_type = ""; //降温措施

            if (this.PulseCheck.Checked)
            {
                tvs.Is_briefness = "Y";
            }
            else
            {
                tvs.Is_briefness = "N";
            }
            if (this.txtHeartRate.Text != "")
            {
                tvs.Heart_rhythm = Convert.ToInt32(this.txtHeartRate.Text);//心率测量值
            }
            if (this.PulseCheck.Checked)
            {
                tvs.Is_assist_hr = "Y";  //心率器械辅助
            }
            else
            {
                tvs.Is_assist_hr = "N";
            }


            if (this.txtPulse.Text != "")
            {
                tvs.Pulse_value = int.Parse(this.txtPulse.Text);
            }



            if (this.txtBreathing.Text != "")
            {
                tvs.Breath_value = Convert.ToInt32(this.txtBreathing.Text); //呼吸测量值
            }
            if (this.ckBreath.Checked)
            {
                tvs.Is_assist_br = "Y";//呼吸器械辅助
            }
            else
            {
                tvs.Is_assist_br = "N";
            }
            tvs.Remark = "";

            string eventsString = "";

            switch (this.cbEvent.Text) //测量状态
            {
            case "已测":
                tvs.Measure_state = "F";
                break;

            case "私自外出":
                tvs.Measure_state = "O";
                break;

            case "请假":
                tvs.Measure_state = "L";
                break;

            case "劝阻无效外出":
                tvs.Measure_state = "Q";
                break;

            case "拒测":
                tvs.Measure_state = "R";
                break;
            }

            if (this.lbEvents.Items.Count > 0)
            {
                foreach (object var in this.lbEvents.Items)
                {
                    eventsString += var.ToString() + "|";
                }
                tvs.Describe = eventsString.Substring(0, eventsString.Length - 1);
            }
            return(tvs);
        }