public static string PutExam(Exam exam) { WSShieldsApps.ENUMMESSAGE output = WSShieldsApps.ENUMMESSAGE.UNKNOWN; int examId = -1; string exceptionText = GenericUtility.BLANK; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { examId = client.InsertExamByHl7(out output, exam, ENTERPRISE_DEFAULT); } catch (Exception ex) { exceptionText = EXCEPTION_FOUND + ex.ToString(); client.Close(); } } return(GenericUtility.GetHL7TextForServiceMessage(EXAM_UPDATE, (exceptionText == GenericUtility.BLANK) ? output.ToString() : output.ToString() + exceptionText, examId.ToString(), ENTERPRISE_DEFAULT)); }
public static string PutExam(Exam exam) { WSShieldsApps.ENUMMESSAGE output = WSShieldsApps.ENUMMESSAGE.UNKNOWN; string exceptionText = ""; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { exam.ExamId = client.InsertExamByHl7(out output, exam, 1); } catch (Exception ex) { exceptionText = ex.ToString(); client.Close(); } } return(output.ToString() + " " + exceptionText + " " + exam.ExamId.ToString()); }