|
@@ -26,18 +26,36 @@ namespace PTMedicalInsurance.Business
|
|
|
return Exception("转换HIS费用", outParam);
|
|
|
}
|
|
|
|
|
|
+ Decimal total = 0;
|
|
|
JArray jaFeeDetail = JArray.Parse(JsonHelper.getDestValue(JObject.Parse(outParam), "data"));
|
|
|
jaFeeDetail.ToList().ForEach((fee) =>
|
|
|
{
|
|
|
fee["chrg_bchno"] = Global.pat.adm_Dr.ToString();
|
|
|
fee["med_type"] = Global.pat.medType;
|
|
|
+ fee["med_list_spc"] = fee["spec"];
|
|
|
+ dynamic expContent = new JObject();
|
|
|
+ JProperty exp = fee.Children<JProperty>().FirstOrDefault(p => p.Name == "expContent");
|
|
|
+ if (exp != null)
|
|
|
+ {
|
|
|
+ exp.Remove();
|
|
|
+ }
|
|
|
+ string item_sum = JsonHelper.getDestValue((JObject)fee, "det_item_fee_sumamt");
|
|
|
+ if (!string.IsNullOrEmpty(item_sum)) {
|
|
|
+ total += Decimal.Parse(item_sum);
|
|
|
+ }
|
|
|
+
|
|
|
+ expContent.selfpay_prop = fee["SelfPayPercent"];
|
|
|
+ expContent.drord_no = fee["drord_no"];
|
|
|
+
|
|
|
+ fee["exp_content"] = expContent;
|
|
|
});
|
|
|
|
|
|
JObject joSettlement = (JObject)input["settlement"];
|
|
|
- joSettlement["medfee_sumamt"] = joHisFee["total"];
|
|
|
+ joSettlement["medfee_sumamt"] = total;
|
|
|
+
|
|
|
|
|
|
//合并参数
|
|
|
- JObject joInput = new JObject();
|
|
|
+ dynamic joInput = new JObject();
|
|
|
joInput.Add("feedetail", jaFeeDetail);
|
|
|
joInput = mergeJson(joInput, (JObject)input["patInfo"]);
|
|
|
joInput = mergeJson(joInput, (JObject)input["data"]);
|
|
@@ -46,6 +64,12 @@ namespace PTMedicalInsurance.Business
|
|
|
joInput.Add("diseinfo_list",input["diseinfo"]);
|
|
|
joInput.Add("feedetail_list", jaFeeDetail);
|
|
|
|
|
|
+ dynamic joExpContent = new JObject();
|
|
|
+ joExpContent.op_swssc_flag = "0";
|
|
|
+ joExpContent.itnt_hosp_flag = "0";
|
|
|
+ joExpContent.mulaid_flag = "0";
|
|
|
+ joInput.exp_content = joExpContent;
|
|
|
+
|
|
|
outParam = JsonHelper.toJsonString(joInput);
|
|
|
|
|
|
return Success();
|