Пример #1
0
        public EmrNote(AuthorInfo authorInfo, XmlElement emrNote, NoteEditMode editMode,
                       string registryID, MainForm etp)
        {
            emrTaskPane    = etp;
            this.editModes = editMode;
            merge          = emrNote.Attributes[AttributeNames.Merge].Value;
            if (emrNote.Attributes[AttributeNames.StartTime] != null)
            {
                startTime = emrNote.Attributes[AttributeNames.StartTime].Value;
            }

            noteInfo = new NoteInfo(authorInfo, registryID, false,
                                    emrNote.Attributes[AttributeNames.Header].Value,
                                    emrNote.Attributes[AttributeNames.Unique].Value);
            noteInfo.sexOption = (emrNote.Attributes[AttributeNames.Sex].Value == StringGeneral.Yes);
            sexOption          = emrNote.Attributes[AttributeNames.Sex].Value;
            author             = new UCAuthor(authorInfo, false, emrTaskPane);

            if (emrNote.Attributes[AttributeNames.Header].Value == StringGeneral.None)
            {
                XmlNode theader = emrNote.SelectSingleNode(ElementNames.Header);
                if (theader != null)
                {
                    header = theader.Clone();
                }
            }

            noteInfo.SetEditMode(editMode);
            // SetEditModes();
        }
Пример #2
0
        private void EmrPattern(AuthorInfo authorInfo, string registryID)
        {
            XmlNode emrNote = Globals.emrPattern.GetEmrNote(authorInfo.NoteID);

            if (emrNote == null)
            {
                return;
            }
            if (emrNote.Attributes[AttributeNames.ShowName] != null)
            {
                if (emrNote.Attributes[AttributeNames.ShowName].Value != "")
                {
                    authorInfo.NoteName = emrNote.Attributes[AttributeNames.ShowName].Value;
                }
            }


            emrTaskPane.wordApp.ScreenUpdating = false;
            if (emrNote.Attributes[AttributeNames.Sign3] != null)
            {
                authorInfo.WriterLable = emrNote.Attributes[AttributeNames.Sign3].Value;
            }
            if (emrNote.Attributes[AttributeNames.Sign2] != null)
            {
                authorInfo.CheckerLable = emrNote.Attributes[AttributeNames.Sign2].Value;
            }
            if (emrNote.Attributes[AttributeNames.Sign1] != null)
            {
                authorInfo.FinalCheckerLable = emrNote.Attributes[AttributeNames.Sign1].Value;
            }
            startTime = emrNote.Attributes[AttributeNames.StartTime].Value;
            merge     = emrNote.Attributes[AttributeNames.Merge].Value;

            noteInfo = new NoteInfo(authorInfo, registryID, true,
                                    emrNote.Attributes[AttributeNames.Header].Value,
                                    emrNote.Attributes[AttributeNames.Unique].Value);


            //if (startTime == StartTime.Consult)
            //{
            //    /* private property lastConsult has the result. */
            //    if (Globals.PatientConsultSequence != null && Globals.PatientConsultSequence != "")
            //    {
            //        GetLastConsultFiled(noteID.GetNoteID(), Globals.PatientConsultSequence, patientInfo.RegistryID);
            //    }
            //}
            //else if (startTime == StartTime.Operation)
            //{
            //    /* private property lastConsult has the result. */


            //    GetLastOperationInfo(noteID.GetNoteID(), patientInfo.RegistryID);
            //}

            author = new UCAuthor(authorInfo, true, emrTaskPane);
            emrTaskPane.wordApp.ScreenRefresh();
            emrTaskPane.wordApp.ScreenUpdating = true;
            return;
        }