|
@@ -1147,6 +1147,8 @@ $(function () {
|
|
|
"入院记录": false,
|
|
|
"首次病程录": false,
|
|
|
"查房记录": false,
|
|
|
+ "会诊申请单": false,
|
|
|
+ "会诊结果单": false,
|
|
|
"出院小结": false
|
|
|
}
|
|
|
// $().attr('contenteditable', isEditing);
|
|
@@ -1160,27 +1162,37 @@ $(function () {
|
|
|
console.log("编辑中");
|
|
|
$(this).text('保存');
|
|
|
} else {
|
|
|
+ let state
|
|
|
switch (global_activeTab) {
|
|
|
case "病案首页":
|
|
|
- let state = saveOrUpdate()
|
|
|
- if (state === true) {
|
|
|
- console.log("保存成功");
|
|
|
- } else {
|
|
|
- console.log("保存失败");
|
|
|
- }
|
|
|
+ state = saveOrUpdate()
|
|
|
+
|
|
|
$(this).text('编辑');
|
|
|
break
|
|
|
case "入院记录":
|
|
|
+ state = saveAdmissionRecordUpdate()
|
|
|
$(this).text('编辑');
|
|
|
break
|
|
|
default:
|
|
|
$(this).text('编辑');
|
|
|
}
|
|
|
|
|
|
+ if (state === true) {
|
|
|
+ console.log("保存成功");
|
|
|
+ } else {
|
|
|
+ console.log("保存失败");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
$(`.content-item[code=${global_activeTab}]`).find('p, .embed-table .table-1 td, .opera-table td,.embed-table .table-2 td,.inner-table td').attr('contenteditable', isEditing[global_activeTab]);
|
|
|
});
|
|
|
|
|
|
+ /**保存入院记录数据更新*/
|
|
|
+ function saveAdmissionRecordUpdate() {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ /**保存病案首页数据更新*/
|
|
|
function saveOrUpdate() {
|
|
|
/**病案首页编号*/
|
|
|
const homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
@@ -1200,9 +1212,9 @@ $(function () {
|
|
|
/**健康卡号*/
|
|
|
const healthCard = ""
|
|
|
/**住院次数*/
|
|
|
- const behospitalNum = ""
|
|
|
+ const behospitalNum = $('#anchor22338 p').text()
|
|
|
/**病案号*/
|
|
|
- const fileCode = ""
|
|
|
+ const fileCode = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
/**病人姓名*/
|
|
|
const name = $('#anchor2242 p').text()
|
|
|
/**病人性别*/
|
|
@@ -1356,73 +1368,107 @@ $(function () {
|
|
|
/** 颅脑损伤患者昏迷后分钟 */
|
|
|
const tbiAfterMinute = '';
|
|
|
|
|
|
+ let str_anchor2291 = $('#anchor2291 p').text()
|
|
|
+ let matchs_anchor2291_1 = str_anchor2291.match(/总费用(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2291_2 = str_anchor2291.match(/自付金额(\d+\.?\d+)/)
|
|
|
/** 总费用 */
|
|
|
- const totalFee = $('#anchor2291 p').text().match(/总费用(\d+\.?\d+)/)[1] || '';
|
|
|
+ const totalFee = matchs_anchor2291_1 ? matchs_anchor2291_1[1] : '';
|
|
|
/** 自付金额 */
|
|
|
- const ownFee = $('#anchor2291 p').text().match(/自付金额(\d+\.?\d+)/)[1] || '';
|
|
|
- /** 一般医疗服务费 */
|
|
|
- const generalFee = $('#anchor2292 p').text().match(/一般医疗服务费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const ownFee = matchs_anchor2291_2 ? matchs_anchor2291_2[1] : '';
|
|
|
|
|
|
- const str_anchor2292 = $('#anchor2292 p').text()
|
|
|
- const matchs_anchor2292 = str_anchor2292.match(/一般治疗服务费:(\d+\.?\d+)/)
|
|
|
+ let str_anchor2292 = $('#anchor2292 p').text()
|
|
|
+ let matchs_anchor2292_1 = str_anchor2292.match(/一般医疗服务费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2292_2 = str_anchor2292.match(/一般治疗服务费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2292_3 = str_anchor2292.match(/护理费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2292_4 = str_anchor2292.match(/其他费用:(\d+\.?\d+)/)
|
|
|
+ /** 一般医疗服务费 */
|
|
|
+ const generalFee = matchs_anchor2292_1 ? matchs_anchor2292_1[1] : '';
|
|
|
/** 一般治疗服务费 */
|
|
|
- const serviceFee = matchs_anchor2292 ? matchs_anchor2292[1] : "";
|
|
|
+ const serviceFee = matchs_anchor2292_2 ? matchs_anchor2292_2[1] : "";
|
|
|
/** 护理费 */
|
|
|
- const nurseFee = $('#anchor2292 p').text().match(/护理费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const nurseFee = matchs_anchor2292_3 ? matchs_anchor2292_3[1] : '';
|
|
|
/** 其他费用 */
|
|
|
- const otherFee = $('#anchor2292 p').text().match(/其他费用:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const otherFee = matchs_anchor2292_4 ? matchs_anchor2292_3[1] : '';
|
|
|
+
|
|
|
+ let str_anchor2293 = $('#anchor2293 p').text()
|
|
|
+ let matchs_anchor2293_1 = str_anchor2293.match(/病理诊断费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2293_2 = str_anchor2293.match(/实验室诊断费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2293_3 = str_anchor2293.match(/实验室诊断费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2293_4 = str_anchor2293.match(/影像学诊断费:(\d+\.?\d+)/)
|
|
|
/** 病理诊断费 */
|
|
|
- const pathologyFee = $('#anchor2293 p').text().match(/病理诊断费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const pathologyFee = matchs_anchor2293_1 ? matchs_anchor2293_1[1] : '';
|
|
|
/** 实验室诊断费 */
|
|
|
-
|
|
|
- const labFee = $('#anchor2293 p').text().match(/实验室诊断费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const labFee = matchs_anchor2293_2 ? matchs_anchor2293_2[1] : '';
|
|
|
/** 影像学诊断费 */
|
|
|
- const pacsFee = $('#anchor2293 p').text().match(/影像学诊断费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const pacsFee = matchs_anchor2293_3 ? matchs_anchor2293_3[1] : '';
|
|
|
/** 临床诊断项目费 */
|
|
|
- const clinicDiagnoseFee = $('#anchor2293 p').text().match(/临床诊断项目费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const clinicDiagnoseFee = matchs_anchor2293_4 ? matchs_anchor2293_4[1] : '';
|
|
|
+
|
|
|
+ let str_anchor2294 = $('#anchor2294 p').text()
|
|
|
+ let matchs_anchor2294_1 = str_anchor2294.match(/非手术治疗项目费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2294_2 = str_anchor2294.match(/临床物理治疗费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2294_3 = str_anchor2294.match(/手术治疗费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2294_4 = str_anchor2294.match(/麻醉费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2294_5 = str_anchor2294.match(/手术费:(\d+\.?\d+)/)
|
|
|
/** 非手术治疗项目费 */
|
|
|
- const notOperationFee = $('#anchor2294 p').text().match(/非手术治疗项目费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const notOperationFee = matchs_anchor2294_1 ? matchs_anchor2294_1[1] : '';
|
|
|
/** 临床物理治疗费 */
|
|
|
- const clinicPhysicFee = $('#anchor2294 p').text().match(/临床物理治疗费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const clinicPhysicFee = matchs_anchor2294_2 ? matchs_anchor2294_2[1] : '';
|
|
|
/** 手术治疗费 */
|
|
|
- const operationTreatFee = $('#anchor2294 p').text().match(/临床物理治疗费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const operationTreatFee = matchs_anchor2294_3 ? matchs_anchor2294_3[1] : '';
|
|
|
/** 麻醉费 */
|
|
|
- const anaesthesiaFee = $('#anchor2294 p').text().match(/麻醉费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const anaesthesiaFee = matchs_anchor2294_4 ? matchs_anchor2294_4[1] : '';
|
|
|
/** 手术费 */
|
|
|
- const operationFee = $('#anchor2294 p').text().match(/手术费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const operationFee = matchs_anchor2294_5 ? matchs_anchor2294_5[1] : '';
|
|
|
+
|
|
|
|
|
|
let matchs_anchor2295 = $('#anchor2295 p').text().match(/康复费:(\d+\.?\d+)/)
|
|
|
/** 康复类 */
|
|
|
const healthTypeFee = matchs_anchor2295 ? matchs_anchor2295[1] : '';
|
|
|
|
|
|
+ let matchs_anchor2296 = $('#anchor2296 p').text().match(/中医治疗费:(\d+\.?\d+)/)
|
|
|
/** 中医治疗费 */
|
|
|
- const chnTreatFee = $('#anchor2296 p').text().match(/中医治疗费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const chnTreatFee = matchs_anchor2296 ? matchs_anchor2296[1] : '';
|
|
|
+
|
|
|
+ let str_anchor2297 = $('#anchor2297 p').text()
|
|
|
+ let matchs_anchor2297_1 = str_anchor2297.match(/西药费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2297_2 = str_anchor2297.match(/抗菌药物费用:(\d+\.?\d+)/)
|
|
|
/** 西药费 */
|
|
|
- const westernMedFee = $('#anchor2297 p').text().match(/西药费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const westernMedFee = matchs_anchor2297_1 ? matchs_anchor2297_1[1] : '';
|
|
|
/** 抗菌药物费用 */
|
|
|
- const antibiosisFee = $('#anchor2297 p').text().match(/抗菌药物费用:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const antibiosisFee = matchs_anchor2297_2 ? matchs_anchor2297_2[1] : '';
|
|
|
+
|
|
|
+ let str_anchor2298 = $('#anchor2298 p').text()
|
|
|
+ let matchs_anchor2298_1 = str_anchor2298.match(/中成药费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2298_2 = str_anchor2298.match(/中草药费:(\d+\.?\d+)/)
|
|
|
/** 中成药费 */
|
|
|
- const chnMedFee = $('#anchor2298 p').text().match(/中成药费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const chnMedFee = matchs_anchor2298_1 ? matchs_anchor2298_1[1] : '';
|
|
|
/** 中草药费 */
|
|
|
- const chnHerbFee = $('#anchor2298 p').text().match(/中草药费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const chnHerbFee = matchs_anchor2298_2 ? matchs_anchor2298_2[1] : '';
|
|
|
+
|
|
|
+ // 血液和血液制品类
|
|
|
+ let str_anchor2299 = $('#anchor2299 p').text()
|
|
|
+ let matchs_anchor2299_1 = str_anchor2299.match(/血费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2299_2 = str_anchor2299.match(/白蛋白类制品费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2299_3 = str_anchor2299.match(/球蛋白类制品费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2299_4 = str_anchor2299.match(/凝血因子类制品费:(\d+\.?\d+)/)
|
|
|
+ let matchs_anchor2299_5 = str_anchor2299.match(/细胞因子类制品费:(\d+\.?\d+)/)
|
|
|
/** 血费 */
|
|
|
- const bloodFee = $('#anchor2299 p').text().match(/血费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const bloodFee = matchs_anchor2299_1 ? matchs_anchor2299_1[1] : '';
|
|
|
/** 白蛋白类制品费 */
|
|
|
- const albumenFee = $('#anchor2299 p').text().match(/白蛋白类制品费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const albumenFee = matchs_anchor2299_2 ? matchs_anchor2299_2[1] : '';
|
|
|
/** 球蛋白类制品费 */
|
|
|
- const globulinFee = $('#anchor2299 p').text().match(/球蛋白类制品费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const globulinFee = matchs_anchor2299_3 ? matchs_anchor2299_3[1] : '';
|
|
|
/** 凝血因子类制品费 */
|
|
|
- const bloodFactorFee = $('#anchor2299 p').text().match(/凝血因子类制品费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const bloodFactorFee = matchs_anchor2299_4 ? matchs_anchor2299_4[1] : '';
|
|
|
/** 细胞因子类制品费 */
|
|
|
- const cellFactorFee = $('#anchor2299 p').text().match(/细胞因子类制品费:(\d+\.?\d+)/)[1] || '';
|
|
|
+ const cellFactorFee = matchs_anchor2299_5 ? matchs_anchor2299_5[1] : '';
|
|
|
|
|
|
//耗材类
|
|
|
let str_anchor2300 = $('#anchor2300 p').text()
|
|
|
-
|
|
|
let matchs_anchor2300_1 = str_anchor2300.match(/检查用一次性医用耗材费:(\d+\.?\d+)/)
|
|
|
let matchs_anchor2300_2 = str_anchor2300.match(/治疗用一次性医用耗材费:(\d+\.?\d+)/)
|
|
|
let matchs_anchor2300_3 = str_anchor2300.match(/手术用一次性医用耗材费:(\d+\.?\d+)/)
|
|
|
-
|
|
|
/** 检查用一次性医用材料费 */
|
|
|
const checkMaterialFee = matchs_anchor2300_1 ? matchs_anchor2300_1[1] : "";
|
|
|
/** 治疗用一次性医用材料费 */
|
|
@@ -1688,11 +1734,12 @@ $(function () {
|
|
|
"homePageId": ""
|
|
|
};
|
|
|
diagsObj.diagnoseName = $(this).find('td').eq(0).text()
|
|
|
- diagsObj.icdCode = $(this).find('td').eq(1).text()
|
|
|
+ diagsObj.icdCode = $(this).find('td').eq(1).text() || "未填"
|
|
|
diagsObj.behospitalType = $(this).find('td').eq(2).text()
|
|
|
diagsObj.leaveHospitalType = $(this).find('td').eq(3).text()
|
|
|
diagsObj.diagnoseOrderNo = global_diagList[i].诊断序号
|
|
|
- diagsObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
+ // diagsObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
+ diagsObj.homePageId = $(`.content-item[code=${global_activeTab}] .title`).text().match(/\d+/)[0]
|
|
|
|
|
|
|
|
|
if (rowIndex === 2) {
|
|
@@ -1736,8 +1783,9 @@ $(function () {
|
|
|
"shamOperationName": ""
|
|
|
}
|
|
|
operationObj.operationOrderNo = global_operaList[i].手术序号
|
|
|
- operationObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
- operationObj.operationCode = $(this).find('td').eq(0).text()
|
|
|
+ // operationObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
+ operationObj.homePageId = $(`.content-item[code=${global_activeTab}] .title`).text().match(/\d+/)[0]
|
|
|
+ operationObj.operationCode = $(this).find('td').eq(0).text() || "-"
|
|
|
operationObj.operationDate = $(this).find('td').eq(1).text()
|
|
|
operationObj.operationLevel = $(this).find('td').eq(2).text()
|
|
|
operationObj.operationName = $(this).find('td').eq(3).text()
|