Ejemplo n.º 1
0
        private void anesthesiaBlank_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            values.Add("{time}", DateTime.Now.ToShortTimeString());
            TemplatesUtils.fillBlankTemplate(DbDataService.GetInstance(), "blank_anastesia_template.doc", hospitalSessionId, values);
        }
Ejemplo n.º 2
0
        private void manipulationAggreementItem_Click(object sender, EventArgs e)
        {
            IEnumerator it = hospitalPatientsTbl.SelectedRows.GetEnumerator();

            if (it.MoveNext())
            {
                DataGridViewRow             row    = (DataGridViewRow)it.Current;
                DataGridViewCell            cell   = row.Cells[0];
                string                      value  = cell.Value.ToString();
                Dictionary <string, string> values = new Dictionary <string, string>();
                TemplatesUtils.fillBlankTemplate(service, "blank_yes_manipulation_template.doc", value, values);
            }
        }
Ejemplo n.º 3
0
        private void anastesiaItem_Click(object sender, EventArgs e)
        {
            IEnumerator it = hospitalPatientsTbl.SelectedRows.GetEnumerator();

            if (it.MoveNext())
            {
                DataGridViewRow             row    = (DataGridViewRow)it.Current;
                DataGridViewCell            cell   = row.Cells[0];
                string                      value  = cell.Value.ToString();
                Dictionary <string, string> values = new Dictionary <string, string>();
                values.Add("{time}", DateTime.Now.ToShortTimeString());
                TemplatesUtils.fillBlankTemplate(service, "blank_anastesia_template.doc", value, values);
            }
        }
Ejemplo n.º 4
0
        private void alcoExamItem_Click(object sender, EventArgs e)
        {
            IEnumerator it = hospitalPatientsTbl.SelectedRows.GetEnumerator();

            if (it.MoveNext())
            {
                DataGridViewRow             row      = (DataGridViewRow)it.Current;
                DataGridViewCell            cell     = row.Cells[0];
                string                      value    = cell.Value.ToString();
                DdtAlcoProtocol             protocol = service.GetDdtAlcoProtocolService().GetByHospitalSession(value);
                Dictionary <string, string> values   = new Dictionary <string, string>();
                values.Add("{patient.behavior}", protocol == null ? "неустойчивое" : protocol.Behavior);
                values.Add("{patient.bio}", protocol == null ? "1,81 ‰" : protocol.Bio);
                values.Add("{patient.breathe}", protocol == null ? "20 дыхательных движений в минуту" : protocol.Breathe);
                values.Add("{patient.cause}", protocol == null ? "медицинская помощь" : protocol.Cause);
                values.Add("{patient.conclusion}", protocol == null ? "" : protocol.Conclusion);
                values.Add("{docs}", protocol == null ? " " : protocol.Docs);
                values.Add("{patient.drunk}", protocol == null ? "0,5 литра водки" : protocol.Drunk);
                values.Add("{patient.vascular}", protocol == null ? "фотореакции живые" : protocol.Eyes);
                values.Add("{patient.illness}", protocol == null ? "отрицает" : protocol.Illness);
                values.Add("{patient.look}", protocol == null ? "опрятен" : protocol.Look);
                values.Add("{patient.mimics}", protocol == null ? "вялая" : protocol.Mimics);
                values.Add("{patient.motions}", protocol == null ? "без патологии" : protocol.Motions);
                values.Add("{patient.nistagm}", protocol == null ? "nistagmTxt" : protocol.Nistagm);
                values.Add("{patient.orientation}", protocol == null ? "ориентирован" : protocol.Orientation);
                values.Add("{patient.pressure}", protocol == null ? "130/90 мм рт.ст." : protocol.Pressure);
                values.Add("{patient.eyes}", protocol == null ? "фотореакции живые" : protocol.Eyes);
                values.Add("{patient.pribor}", protocol == null ? " " : protocol.Pribor);
                values.Add("{patient.pulse}", protocol == null ? "pulseTxt" : protocol.Pulse);
                values.Add("{patient.skin}", protocol == null ? "гиперемия лица" : protocol.Skin);
                values.Add("{patient.smell}", protocol == null ? " " : protocol.Smell);
                values.Add("{patient.talk}", protocol == null ? "смазана" : protocol.Speech);
                values.Add("{patient.touch_nose}", protocol == null ? "с промахиванием" : protocol.TouchNose);
                values.Add("{patient.tremble}", protocol == null ? "да" : protocol.Tremble);
                values.Add("{patient.trub}", protocol == null ? " " : protocol.Trub);
                values.Add("{patient.walk}", protocol == null ? "не проводилась" : protocol.Walk);
                values.Add("{datetime}", DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString());
                values.Add("{analysis.date}", DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString());
                values.Add("{patient.work}", " ");
                values.Add("{reason}", " ");
                TemplatesUtils.fillBlankTemplate(service, "blank_alco_examination_template.doc", value, values);
            }
        }
Ejemplo n.º 5
0
        private void dataProcessingBlank_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            TemplatesUtils.fillBlankTemplate(DbDataService.GetInstance(), "blank_common_consent_template.doc", hospitalSessionId, values);
        }
Ejemplo n.º 6
0
        private void refusalDeadInspectionItem_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            TemplatesUtils.fillBlankTemplate(service, "blank_refusal_dead_inspection_template.doc", null, values);
        }