public IenResult CreateNote(TiuNoteTitle noteTitle, string dfn, string noteText, string noteSubject, Dictionary <string, string> noteData, string pregIen) { IenResult returnResult = new IenResult(); if (this.broker != null) { DsioCreateANoteCommand command = new DsioCreateANoteCommand(broker); //string noteTitleText = "MCC DASHBOARD NOTE"; string noteTitleText = TiuNoteTitleInfo.TiuNoteTitleText[(int)noteTitle]; command.AddCommandArguments(dfn, noteTitleText, noteText, noteSubject, noteData, pregIen); RpcResponse response = command.Execute(); returnResult.Success = (response.Status == RpcResponseStatus.Success); returnResult.Message = response.InformationalMessage; if (response.InformationalMessage.Equals("Unable to assemble XWB broker message: Attempted to L-Pack a string longer than 999 characters.", StringComparison.CurrentCultureIgnoreCase)) { returnResult.Message = "Individual lines within a note must be less than 1000 characters."; } if (returnResult.Success) { returnResult.Ien = command.Ien; } } return(returnResult); }
public static string GetDescription(TiuNoteTitle noteTitle) { string returnVal = ""; MccPatientCallType callType = GetCallType(noteTitle); returnVal = MccPatientCallTemplateName[(int)callType]; return(returnVal); }
public static TiuNoteTitle GetTitle(string titleText) { TiuNoteTitle returnVal = TiuNoteTitle.Unknown; int temp = Array.IndexOf(TiuNoteTitleText, titleText); if (temp >= 0) { returnVal = (TiuNoteTitle)temp; } return(returnVal); }
public static MccPatientCallType GetCallType(TiuNoteTitle noteTitle) { MccPatientCallType returnVal = MccPatientCallType.PhoneCall_1; int index = Array.IndexOf(titles, noteTitle); if (index >= 0) { returnVal = (MccPatientCallType)index; } return(returnVal); }
public MccPatientCallTemplate(string noteTitle) { this.TabList = new List <MccPatientCallTab>(); TiuNoteTitle title = TiuNoteTitleInfo.GetTitle(noteTitle); int index = Array.IndexOf(titles, title); if (index >= 0) { this.CallType = (MccPatientCallType)index; } }
public static string GetTitleText(TiuNoteTitle title) { return(TiuNoteTitleText[(int)title]); }
public static bool IsCall(TiuNoteTitle noteTitle) { return(titles.Contains(noteTitle)); }