Exemple #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();
        }
Exemple #2
0
 /****zlg****/
 public NoteInfo(string NoteID, string ChildID, string NoteName, bool newEmrNote)
 {
     childID  = ChildID;
     noteID   = NoteID;
     noteName = NoteName;
     newNote  = newEmrNote;
     editMode = NoteEditMode.Writing;
     //registryID = patientInfo.RegistryID;
 }
Exemple #3
0
 public NoteInfo(AuthorInfo authorInfo, string registryID, Boolean newEmrNote,
                 string header, string unique)
 {
     childID         = authorInfo.ChildID;
     noteID          = authorInfo.NoteID;
     noteName        = authorInfo.NoteName;
     newNote         = newEmrNote;
     editMode        = NoteEditMode.Writing;
     templateType    = authorInfo.TemplateType;
     templateName    = authorInfo.TemplateName;
     this.registryID = registryID;
     headerText      = header;
     uniqueText      = unique;
 }
Exemple #4
0
 public void SetEditMode(NoteEditMode mode)
 {
     editMode = mode;
 }