public static string PutDoctor(WSShieldsApps.Doctor doctor) { ENUMMESSAGE output = ENUMMESSAGE.UNKNOWN; string exceptionText = GenericUtility.BLANK; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { doctor.DoctorId = client.InsertUpdateDoctor(out output, doctor); } catch (Exception ex) { client.Close(); } } return(GenericUtility.GetHL7TextForServiceMessage(DOCTOR_UPDATE, (exceptionText == GenericUtility.BLANK) ? output.ToString() : output.ToString() + exceptionText, doctor.DoctorId.ToString(), ENTERPRISE_DEFAULT)); }
public static string PostReport(WSShieldsApps.Report report, int addendumIteration) { ENUMMESSAGE output = ENUMMESSAGE.UNKNOWN; string exceptionText = GenericUtility.BLANK; int reportId = -1; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { reportId = client.InsertReport(out output, report); } catch (Exception ex) { exceptionText = EXCEPTION_FOUND + ex.ToString(); client.Close(); } } return(GenericUtility.GetHL7TextForServiceMessage(ADDENDUM_INSERTED + "&" + addendumIteration, (exceptionText == GenericUtility.BLANK) ? output.ToString() : output.ToString() + exceptionText, reportId.ToString(), ENTERPRISE_DEFAULT)); }
public static string PutDoctor(WSShieldsApps.Doctor doctor) { ENUMMESSAGE output = ENUMMESSAGE.UNKNOWN; string exceptionText = ""; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { doctor.DoctorId = client.InsertUpdateDoctor(out output, doctor); } catch (Exception ex) { client.Close(); } } return(output.ToString() + " " + exceptionText + " " + doctor.DoctorId.ToString()); }
public static string PostReport(WSShieldsApps.Report report, int addendumIteration) { ENUMMESSAGE output = ENUMMESSAGE.UNKNOWN; string exceptionText = ""; int reportId = -1; using (ShieldsAppsClient client = new ShieldsAppsClient()) { try { reportId = client.InsertReport(out output, report); } catch (Exception ex) { exceptionText = ex.ToString(); client.Close(); } } return(output.ToString() + " " + exceptionText + " " + reportId.ToString()); }