|
@@ -333,15 +333,73 @@ namespace VitalService.Factury
|
|
|
dic.Add("exchkdoctor", "");// 审核医生
|
|
|
dic.Add("repdt", reportInfo.CreateTime.ToLocalTime().ToString("yyyy-MM-dd"));
|
|
|
dic.Add("exdt", reportInfo.UpdateTime.ToLocalTime().ToString("yyyy-MM-dd"));
|
|
|
-
|
|
|
-
|
|
|
// 检验医生
|
|
|
dic.Add("chkdoctorbasesign", DownloadFileAsync(GetReportElementValue(reportVaules, "DigitalSignature")).Result);
|
|
|
+ // 审核医生
|
|
|
dic.Add("exdoctorbasesign", DownloadFileAsync(GetReportElementValue(reportVaules, "ReportPhysician")).Result);
|
|
|
dic.Add("diagnosis", GetReportElementValue(reportVaules, "PatientEcgDiagnosticResult"));
|
|
|
- dic.Add("result", reportInfo.HealthDiagnosis == 2 ? "正常" : "异常");
|
|
|
+ dic.Add("result", reportInfo.HealthDiagnosis == 1 ? "正常" : "异常");
|
|
|
var imageList = GetReportElementArray(reportVaules, "PatientECGImage");
|
|
|
- dic.Add("pic1base64", DownloadFileAsync(imageList.FirstOrDefault()).Result);
|
|
|
+ if (imageList.Count >= 1)
|
|
|
+ {
|
|
|
+ dic.Add("pic1base64", DownloadFileAsync(imageList[0]).Result);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dic.Add("pic1base64", "");
|
|
|
+ }
|
|
|
+
|
|
|
+ return JsonConvert.SerializeObject(dic);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 转换超声报告
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="examInfo"></param>
|
|
|
+ /// <param name="registerInfo"></param>
|
|
|
+ /// <param name="url"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string GetUSReportPostContentAsync(RegisterPersonInfoDTO registerInfo, FacturyOrgModel facturyInfo, WingInterfaceLibrary.DTO.Report.ReportDTO reportInfo, out string url)
|
|
|
+ {
|
|
|
+ url = $"{_serverUrl}/api/ultinf";
|
|
|
+
|
|
|
+ var jingQiInfos = registerInfo.JingQiExamInfos;
|
|
|
+ var pyhId = GetValue(jingQiInfos, "pyhid");
|
|
|
+
|
|
|
+ var dic = new Dictionary<string, string>();
|
|
|
+ dic.Add("pyhid", pyhId);
|
|
|
+
|
|
|
+ var reportVaules = reportInfo.ReportDatasJson;
|
|
|
+
|
|
|
+ dic.Add("barcode", reportInfo.ReportCode);
|
|
|
+ dic.Add("chkdoctor", GetReportElementValue(reportVaules, "InspectionPhysician"));
|
|
|
+ dic.Add("exchkdoctor", GetReportElementValue(reportVaules, "ReportPhysician"));
|
|
|
+ dic.Add("repdt", reportInfo.CreateTime.ToLocalTime().ToString("yyyy-MM-dd"));
|
|
|
+ dic.Add("exdt", reportInfo.UpdateTime.ToLocalTime().ToString("yyyy-MM-dd"));
|
|
|
+ // 检验医生
|
|
|
+ dic.Add("chkdoctorbasesign", DownloadFileAsync(GetReportElementValue(reportVaules, "DigitalSignature")).Result);
|
|
|
+ // 审核医生
|
|
|
+ // dic.Add("exdoctorbasesign", DownloadFileAsync(GetReportElementValue(reportVaules, "ReportPhysician")).Result);
|
|
|
+ dic.Add("describe", GetReportElementValue(reportVaules, "ReportDescription"));
|
|
|
+ dic.Add("diagnosis", GetReportElementValue(reportVaules, "ReportSummary"));
|
|
|
+ dic.Add("result", reportInfo.HealthDiagnosis == 1 ? "正常" : "异常");
|
|
|
+ var imageList = GetReportElementArray(reportVaules, "ReportImages");
|
|
|
+ if (imageList.Count >= 1)
|
|
|
+ {
|
|
|
+ dic.Add("pic1base64", DownloadFileAsync(imageList[0]).Result);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dic.Add("pic1base64", "");
|
|
|
+ }
|
|
|
+ if (imageList.Count >= 2)
|
|
|
+ {
|
|
|
+ dic.Add("pic2base64", DownloadFileAsync(imageList[1]).Result);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dic.Add("pic2base64", "");
|
|
|
+ }
|
|
|
|
|
|
return JsonConvert.SerializeObject(dic);
|
|
|
}
|