|
@@ -2753,7 +2753,7 @@ function setSelectSize() {
|
|
|
dropuAuto: false,
|
|
|
size: 10
|
|
|
});
|
|
|
- //$('#icdCodeBeHospitalized').parent().addClass("hide");
|
|
|
+ dynamicSelect("editZd",'/thmz/getAllZdIcdCommonParams?commonParams=');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -9557,90 +9557,43 @@ function showMzBlRecordModal(patientId, times, type) {
|
|
|
// } else {
|
|
|
// $("#firstOrNotTitle").text("初诊");
|
|
|
// }
|
|
|
- if (mzBlRecord.emrChiefComplaint != null && mzBlRecord.emrChiefComplaint != "") {
|
|
|
- $("#editEmrChiefComplaint").val(mzBlRecord.emrChiefComplaint);
|
|
|
- $("#editEmrChiefComplaint").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editEmrChiefComplaint").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.emrHpi != null && mzBlRecord.emrHpi != "") {
|
|
|
- $("#editEmrHpi").val(mzBlRecord.emrHpi);
|
|
|
- $("#editEmrHpi").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editEmrHpi").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.emrPs != null && mzBlRecord.emrPs != "") {
|
|
|
- $("#editEmrPs").val(mzBlRecord.emrPs);
|
|
|
- $("#editEmrPs").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editEmrPs").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.personalHistory != null && mzBlRecord.personalHistory != "") {
|
|
|
- $("#editPersonalHistory").val(mzBlRecord.personalHistory);
|
|
|
- $("#editPersonalHistory").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editPersonalHistory").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.familyHistory != null && mzBlRecord.familyHistory != "") {
|
|
|
- $("#editFamilyHistory").val(mzBlRecord.familyHistory);
|
|
|
- $("#editFamilyHistory").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editFamilyHistory").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.obstericalHistory != null && mzBlRecord.obstericalHistory != "") {
|
|
|
- $("#editObstericalHistory").val(mzBlRecord.obstericalHistory);
|
|
|
- $("#editObstericalHistory").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editObstericalHistory").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- var tz = getTz(mzBlRecord);
|
|
|
- if (tz != null && tz != "") {
|
|
|
- $("#editTgjc").val(tz);
|
|
|
- $("#editTgjc").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editTgjc").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.emrPe != null && mzBlRecord.emrPe != "") {
|
|
|
- $("#editQtjc").val(mzBlRecord.emrPe);
|
|
|
- $("#editQtjc").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editQtjc").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (res.icdText != null && res.icdText != "") {
|
|
|
- $("#editZd").val(res.icdText);
|
|
|
- $("#editZd").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editZd").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
+ $("#editEmrChiefComplaint").val(mzBlRecord.emrChiefComplaint == null?"":mzBlRecord.emrChiefComplaint);
|
|
|
+ $("#editEmrHpi").val(mzBlRecord.emrHpi == null?"":mzBlRecord.emrHpi);
|
|
|
+ $("#editEmrPs").val(mzBlRecord.emrPs == null?"":mzBlRecord.emrPs);
|
|
|
+ $("#editPersonalHistory").val(mzBlRecord.personalHistory == null?"":mzBlRecord.personalHistory);
|
|
|
+ $("#editFamilyHistory").val(mzBlRecord.familyHistory == null?"":mzBlRecord.familyHistory);
|
|
|
+ $("#editObstericalHistory").val(mzBlRecord.obstericalHistory == null?"":mzBlRecord.obstericalHistory);
|
|
|
+ $("#editQtjc").val(mzBlRecord.emrPe == null?"":mzBlRecord.emrPe);
|
|
|
+ $("#edittentativeDiagnosis").val(mzBlRecord.tentativeDiagnosis == null?"":mzBlRecord.tentativeDiagnosis);
|
|
|
+ $("#editEmrJkjy").val(mzBlRecord.emrJkjy == null?"":mzBlRecord.emrJkjy);
|
|
|
+ $("#bl_weight").val(mzBlRecord.weight==0?null:mzBlRecord.weight);
|
|
|
+ $("#bl_temperature").val(mzBlRecord.temperature==0?null:mzBlRecord.temperature);
|
|
|
+ $("#bl_sphygmus").val(mzBlRecord.sphygmus==0?null:mzBlRecord.sphygmus);
|
|
|
+ $("#bl_breathe").val(mzBlRecord.breathe==0?null:mzBlRecord.breathe);
|
|
|
+ $("#bl_pressure_high").val(mzBlRecord.pressureHigh==0?null:mzBlRecord.pressureHigh);
|
|
|
+ $("#bl_pressure_floor").val(mzBlRecord.pressureFloor==0?null:mzBlRecord.pressureFloor);
|
|
|
+ $("#bl_pressure_high_left").val(mzBlRecord.pressureHighLeft==0?null:mzBlRecord.pressureHighLeft);
|
|
|
+ $("#bl_pressure_floor_left").val(mzBlRecord.pressureFloorLeft==0?null:mzBlRecord.pressureFloorLeft);
|
|
|
if (mzBlRecord.emrProcess != null && mzBlRecord.emrProcess != "") {
|
|
|
var reg = new RegExp("</br>", "g");//g,表示全部替换。
|
|
|
var editEmrProcess = mzBlRecord.emrProcess.replace(reg, "\n");
|
|
|
reg = new RegExp(" ", "g");//g,表示全部替换。
|
|
|
editEmrProcess = editEmrProcess.replace(reg, "");
|
|
|
$("#editEmrProcess").val(editEmrProcess);
|
|
|
- $("#editEmrProcess").parent().parent().parent().css("display", "block");
|
|
|
} else {
|
|
|
- $("#editEmrProcess").parent().parent().parent().css("display", "none");
|
|
|
- }
|
|
|
- if (mzBlRecord.emrJkjy != null && mzBlRecord.emrJkjy != "" && mzBlRecord.emrJkjy != "无") {
|
|
|
- $("#editEmrJkjy").val(mzBlRecord.emrJkjy);
|
|
|
- $("#editEmrJkjy").parent().parent().parent().css("display", "block");
|
|
|
- } else {
|
|
|
- $("#editEmrJkjy").parent().parent().parent().css("display", "none");
|
|
|
+ $("#editEmrProcess").val("");
|
|
|
}
|
|
|
if (type == 1) {
|
|
|
$("#mzBlRecorTitle").html("门诊病历【编辑】");
|
|
|
$("#setOtherEmrProcess").removeClass("in").addClass("hide");
|
|
|
$("#openBlRecordModel").removeClass("hide").addClass("in");
|
|
|
$("#setEmrProcess").removeClass("hide").addClass("in");
|
|
|
- $("#newEmrProcessDiv").removeClass("hide").addClass("in");
|
|
|
$("#visitingDetailModal").modal("hide");
|
|
|
} else if (type == 2) {
|
|
|
$("#mzBlRecorTitle").html("门诊病历【预览】");
|
|
|
$("#setOtherEmrProcess").removeClass("hide").addClass("in");
|
|
|
$("#openBlRecordModel").removeClass("in").addClass("hide");
|
|
|
$("#setEmrProcess").removeClass("in").addClass("hide");
|
|
|
- $("#newEmrProcessDiv").removeClass("in").addClass("hide");
|
|
|
//因为预览的时候,关闭预览框没有清空数据,且 此时基础数据的病历次数被清空
|
|
|
if ($("#mzBlTimes").val() != null && $("#mzBlTimes").val() != "" && ($("#baseMzBlTimes").val() == null || $("#baseMzBlTimes").val() == "")) {
|
|
|
$("#baseMzBlTimes").val($("#mzBlTimes").val());
|
|
@@ -9983,4 +9936,5 @@ function xyTableOnClick(paneId) {
|
|
|
});
|
|
|
}, 400);
|
|
|
|
|
|
-}
|
|
|
+}
|
|
|
+
|