public string SyncLisByVisitID(string patientID, decimal visitID, EventHandler eventHandle) { string ret = ""; _eventHandle = eventHandle; using (System.ComponentModel.BackgroundWorker worker = new System.ComponentModel.BackgroundWorker()) { worker.DoWork += delegate(object sender, System.ComponentModel.DoWorkEventArgs e) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "LIS001"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = (int)visitID; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " visitid : " + paramIn.Patient.VisitId; RecordInterFaceLog("ANESMGR", "LIS", "LIS001", parmInString); ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); }; worker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(worker_RunWorkerCompleted); worker.RunWorkerAsync(); } return(ret); }
/// <summary> /// 同步病人申请或预约信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncScheduleInfoByDateTime(string patientID, DateTime startTime, DateTime endTime) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "HIS201"; if (!string.IsNullOrEmpty(patientID)) { paramIn.Patient.PatientId = patientID; } else { paramIn.Patient.PatientId = "ALL"; } paramIn.Operation.StartDataTime = startTime; paramIn.Operation.StopDataTime = endTime; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " startdatetime : " + paramIn.Operation.StartDataTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); parmInString += " stopdatetime : " + paramIn.Operation.StopDataTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); RecordInterFaceLog("ANESMGR", "HIS", "HIS201", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
/// <summary> /// 回写手术状态到HIS /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncWriteHisOper(string patientID, int visitID, int operID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = (int)visitID; paramIn.Operation.OperId = operID; paramIn.Code = "HIS202"; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " visitid : " + paramIn.Patient.VisitId; parmInString += " operid : " + paramIn.Operation.OperId; parmInString = "performedcode : " + paramIn.Code; RecordInterFaceLog("ANESMGR", "HIS", "HIS202", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
/// <summary> /// 同步病人申请或预约信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncScheduleInfo(string patientID, DateTime operDateTime) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); if (!string.IsNullOrEmpty(patientID)) { paramIn.Patient.PatientId = patientID; } else { paramIn.Patient.PatientId = "ALL"; } paramIn.Code = "HIS201"; paramIn.Operation.StartDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 00:00:00"); paramIn.Operation.StopDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 23:59:59"); string parmInString = ""; parmInString = "patientID : " + paramIn.Patient.PatientId; RecordInterFaceLog("ANESMGR", "HIS", "HIS201", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
public string SyncOPER503W(string patientID, int visitId, int operId, int operStatus) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "OPER503W"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = (decimal)visitId; paramIn.Operation.OperId = (decimal)operId; paramIn.Operation.OperStatus = (decimal)operStatus; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
/// <summary> /// 同步病人申请或预约信息 /// </summary> /// <param name="operDateTime"></param> /// <returns></returns> public string SyncWrite_OPER101(DateTime operDateTime) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "OPER101"; paramIn.App = "排班系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Operation.StartDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 00:00:00");; paramIn.Operation.StopDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 23:59:59"); return(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson(), AppSettings.InterFacePath)); }
public string SyncEMR(string patientID, decimal visitID, EventHandler eventHandle) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "EMR101"; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; paramIn.OpenClient = true; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
public string SyncAnesVisit(string patientID, int visitID, int operID) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "PAT201"; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; paramIn.Operation.OperId = operID; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
/// <summary> /// 同步病人申请或预约信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncScheduleInfoByDeptCode(string performedcode) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = performedcode; string parmInString = ""; parmInString = "performedcode : " + paramIn.Code; RecordInterFaceLog("ANESMGR", "HIS", "HIS201", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
public string SyncOPER505W(MED_EMR_ARCHIVE_DETIAL medEmrArchiveDetial) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "OPER505W"; paramIn.Patient.PatientId = medEmrArchiveDetial.PATIENT_ID; paramIn.Patient.VisitId = (decimal)medEmrArchiveDetial.VISIT_ID; paramIn.EmrDocUpLoad.MrClass = medEmrArchiveDetial.MR_CLASS; paramIn.EmrDocUpLoad.MrSubClass = medEmrArchiveDetial.MR_SUB_CLASS; paramIn.EmrDocUpLoad.ArchiveKey = decimal.Parse(medEmrArchiveDetial.ARCHIVE_KEY); paramIn.EmrDocUpLoad.ArchiveTimes = (decimal)medEmrArchiveDetial.ARCHIVE_TIMES; paramIn.EmrDocUpLoad.EmrFileIndex = (decimal)medEmrArchiveDetial.EMR_FILE_INDEX; paramIn.EmrDocUpLoad.EmrFileName = medEmrArchiveDetial.EMR_FILE_NAME; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
public string SyncPACSNoAndType(string inpNo) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "PACS01"; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.InpNo = inpNo; paramIn.OpenClient = false; string strSync = InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson()); Logger.Info("PACS01返回值:" + strSync); string ret = GetRetFromSync(strSync); return(ret); }
public string SyncEMR(string patientID, decimal visitID, EventHandler eventHandle) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "EMR001"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = (int)visitID; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " visitid : " + paramIn.Patient.VisitId; RecordInterFaceLog("ANESMGR", "EMR", "EMR001", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
/// <summary> /// 医嘱信息接口同步ORDER103(HIS103) /// </summary> /// <param name="patientID">patientID</param> /// <param name="visitID">visitID</param> /// <returns></returns> public string SyncWrite_ORDER103(string patientID, int visitID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "ORDER103"; paramIn.App = "排班系统"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; return(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson(), AppSettings.InterFacePath)); } else { return("空的患者ID"); } }
/// <summary> /// 回传手术状态HIS203 /// </summary> public string SyncHIS203(string patientID, int visitID, int operID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "OPER502W"; paramIn.App = "手麻系统"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; paramIn.Operation.OperId = operID; string ret = InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson(), AppSettings.InterFacePath); return(ret); } else { return("空的患者ID"); } }
public string SyncPatientInfoAndInHospital(string patientID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "PAT101"; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.PatientId = patientID; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
/// <summary> /// 同步病人申请或预约信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncScheduleInfo(string patientID, DateTime operDateTime) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "OPER101"; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.PatientId = patientID; paramIn.Operation.StartDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 00:00:00");; paramIn.Operation.StopDataTime = DateTime.Parse(operDateTime.ToString("yyyy-MM-dd") + " 23:59:59"); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
public string SyncLis(string patientID, int visitId, EventHandler eventHandle) { string ret = ""; _eventHandle = eventHandle; using (System.ComponentModel.BackgroundWorker worker = new System.ComponentModel.BackgroundWorker()) { worker.DoWork += delegate(object sender, System.ComponentModel.DoWorkEventArgs e) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "LIS101"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitId; paramIn.App = "手麻系统"; ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); }; worker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(worker_RunWorkerCompleted); worker.RunWorkerAsync(); } return(ret); }
/// <summary> /// 同步单病人医嘱信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncOrderInfo(string patientID, int visitID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "HIS103"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " visitid : " + paramIn.Patient.VisitId; RecordInterFaceLog("ANESMGR", "HIS", "HIS103", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
public string SyncPACS(string patientID, decimal visitID, EventHandler eventHandle) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Code = "PACS001"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = (int)visitID; paramIn.Operation.OperId = 1; paramIn.Operation.StartDataTime = System.DateTime.Today.AddDays(-1); paramIn.Operation.StopDataTime = System.DateTime.Today; string parmInString = ""; parmInString = "patientid : " + paramIn.Patient.PatientId; parmInString += " visitid : " + paramIn.Patient.VisitId; parmInString += " operid : " + paramIn.Operation.OperId; parmInString += " startdatetime : " + paramIn.Operation.StartDataTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); parmInString += " stopdatetime : " + paramIn.Operation.StopDataTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); RecordInterFaceLog("ANESMGR", "PACS", "PACS001", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); }
public string SyncWriteHisOperStatus(string patientID, int visitID, int operID, int state) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); string sycID = ""; switch (state) { case 0: sycID = "OPER501W"; break; case 1: sycID = "OPER502W"; break; case 2: sycID = "OPER504W"; break; } paramIn.Code = sycID; paramIn.App = "手麻系统"; paramIn.OperatorBase.Operator = "操作人"; paramIn.OperatorBase.OperatorDept = "操作人所属科室"; paramIn.Patient.PatientId = patientID; paramIn.Patient.VisitId = visitID; paramIn.Operation.OperId = operID; string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
///<summary> /// 同步单病人基本信息及住院信息 /// </summary> /// <param name="patientID"></param> /// <returns></returns> public string SyncPatientInfoAndInHospital(string patientID) { if (!string.IsNullOrEmpty(patientID)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Patient.PatientId = patientID; paramIn.Code = "HIS101"; string parmInString = ""; parmInString = "patientID : " + paramIn.Patient.PatientId; RecordInterFaceLog("ANESMGR", "HIS", "HIS101", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的患者ID"); } }
/// <summary> /// 同步单病人基本信息及住院信息 /// </summary> /// <param name="inpno">住院号</param> /// <returns></returns> public string SyncPatientInfoAndInHospitalByInpNo(string inpNo) { if (!string.IsNullOrEmpty(inpNo)) { InterFaceV5.ParamInputDomain paramIn = new InterFaceV5.ParamInputDomain(); paramIn.Patient.InpNo = inpNo; paramIn.Code = "HIS104"; string parmInString = ""; parmInString = "inpNo : " + paramIn.Patient.InpNo; RecordInterFaceLog("ANESMGR", "HIS", "HIS104", parmInString); string ret = GetRetFromSync(InterFaceV5.InterFaceV5.SysMsgExchange(paramIn.ToJson())); return(ret); } else { return("空的住院号"); } }
private string RunInterFace(string strapptype, string assystemclass, string asinterfacetype, InterFaceV5.ParamInputDomain parmIn) { //return InterFaceV5.InterFaceV5.of_systeminterface(strapptype, assystemclass, asinterfacetype, parmIn); return(string.Empty); }