//public void Destroy(string registryID, PermissionLevel permission) //{ // if (emrDoc == null) return; // if (permission != PermissionLevel.ReadOnly) // { // if (!Globals.offline) // { // ThisAddIn.SetTrafficLightToGreen(registryID); // } // } // if (emrDoc.HasChildNodes) emrDoc.RemoveAll(); //} private string ConsultSequence(string registryID, string noteID) { XmlNode consults = null; ThisAddIn.ConsultTime(registryID, Globals.PatientConsultSequence, ref consults); if (consults == null) { return(null); } return(consults.FirstChild.Attributes[AttributeNames.Sequence].Value); }