static void Main11() { Console6.ServiceReference1.PUB0018SoapClient p = new ServiceReference1.PUB0018SoapClient(); string[] strs = new string[] { "2058022", "1454135", "1536138", "1617700", "1784938", "1796655", "2032540" }; foreach (var item in strs) { string postStr3 = GetString_Advice(item, "2018-08-01", "2018-08-27"); string result3 = p.HIPManagerInfo("S0085", postStr3); if (result3.StartsWith("-1")) { continue; } Log("获取患者 医嘱 发送", postStr3); Log("获取患者 医嘱 返回", result3); } Console.ReadKey(); }
static void Main22(string[] args) { Console6.ServiceReference1.PUB0018SoapClient p = new ServiceReference1.PUB0018SoapClient(); string PATPatientID = "0001143418"; string PAADMVisitNumber = "2066900"; string postString = GetPostString_PatientInfo(PATPatientID); string result = p.HIPManagerInfo("S0083", postString); //Log("获取患者 基本信息 发送", postString); //Log("获取患者 基本信息 返回", result); string postString2 = GetPostString_PatientInfo(PATPatientID); string result2 = p.HIPManagerInfo("S0084", postString2); //Log("获取患者 就诊信息 发送", postString2); //Log("获取患者 就诊信息 返回", result2); string[] strs = new string[] { "2068764" }; foreach (var item in strs) { string postStr33 = GetString_Advice(item, "2018-08-27", "2018-08-28"); string result33 = p.HIPManagerInfo("S0085", postStr33); if (result33.StartsWith("-1")) { continue; } Log("获取患者 医嘱 发送", postStr33); Log("获取患者 医嘱 返回", result33); } string postStr3 = GetString_Advice(PAADMVisitNumber, "2018-08-01", "2018-08-27"); string result3 = p.HIPManagerInfo("S0085", postStr3); //Log("获取患者 医嘱 发送", postStr3); //Log("获取患者 医嘱 返回", result3); //=========================================================================================== string PATPatientID2 = "00001143418"; string PAADMVisitNumber2 = "1722839";//1722839 2066900 ServiceReference2.PUB0001SoapClient p2 = new ServiceReference2.PUB0001SoapClient(); //01:检验结果, 02:超声检查结果, 04:内镜检查结果, 07:PET-CT检查结果, 08:ECT检查结果 15:微生物结果, 16:心电检查结果 string postString11 = GetPostString_DocList(PATPatientID2, PAADMVisitNumber2, "99", "2015-01-01", "2018-08-31", "xml");//S0034 var result11 = p2.HOSDocumentRetrieval("S0034", postString11); Log("文档列表 发送", postString11); Log("文档列表 返回", result11); string DocumentID = "2042111"; string DocumentType2 = "01"; string postString22 = GetPostString_DocDetail(PATPatientID2, PAADMVisitNumber2, DocumentType2, DocumentID); string result22 = p2.HOSDocumentSearch("S0035", postString22); Log("文档详细 发送", postString22); Log("文档详细 返回", result22); DataSet set = XmlHelper.GetDataSet(result22); Console.ReadKey(); }