|
@@ -1190,7 +1190,12 @@ $(function () {
|
|
|
$(this).text('编辑');
|
|
|
break
|
|
|
case "首次病程录":
|
|
|
-
|
|
|
+ firstRecordUpdate().then(res => {
|
|
|
+ getRecordDetailUpdate()
|
|
|
+ $.alerModal({ "message": "保存成功", type: "tip", time: '1000', win: true });
|
|
|
+ }).catch(err => {
|
|
|
+ $.alerModal({ "message": '保存失败,请重试~', type: "tip", time: '1000', win: 'default' });
|
|
|
+ })
|
|
|
break
|
|
|
default:
|
|
|
$(this).text('编辑');
|
|
@@ -1208,15 +1213,15 @@ $(function () {
|
|
|
/**姓名*/
|
|
|
const name = $('#anchor2019 p').text()
|
|
|
/**性别*/
|
|
|
- const sex = $('anchor1954 p').text()
|
|
|
+ const sex = $('#anchor1954 p').text()
|
|
|
/**年龄*/
|
|
|
const age = $('#anchor1956 p').text().replace("岁", "")
|
|
|
/**科别*/
|
|
|
- const deptName = $('anchor2032 p').text()
|
|
|
+ const deptName = $('#anchor2032 p').text()
|
|
|
/**床号*/
|
|
|
- const bedNo = $('anchor2030 p').text()
|
|
|
+ const bedNo = $('#anchor2030 p').text()
|
|
|
/**病历日期*/
|
|
|
- const recordDate = $('anchor2027 p').text()
|
|
|
+ const recordDate = $('#anchor2027 p').text()
|
|
|
/** 标题 */
|
|
|
const recTitle = '';
|
|
|
|
|
@@ -1224,62 +1229,105 @@ $(function () {
|
|
|
const chief = '';
|
|
|
|
|
|
/** 现病史 */
|
|
|
- const present = '现病史';
|
|
|
+ const present = '';
|
|
|
|
|
|
/** 既往史 */
|
|
|
- const pastHistory = '既往史';
|
|
|
+ const pastHistory = '';
|
|
|
|
|
|
/** 查体 */
|
|
|
- const vital = '查体';
|
|
|
+ const vital = '';
|
|
|
|
|
|
/** 辅检 */
|
|
|
- const assistantExam = '辅检';
|
|
|
+ const assistantExam = '';
|
|
|
|
|
|
/** 病例特点 */
|
|
|
- const caseCharacter = '病例特点';
|
|
|
+ const caseCharacter = $('#anchor1959 p').text();
|
|
|
|
|
|
/** 初步诊断 */
|
|
|
- const tentativeDiagnosis = '初步诊断';
|
|
|
+ const tentativeDiagnosis = $('#anchor1968 p').text();
|
|
|
|
|
|
/** 诊断依据 */
|
|
|
- const supplyDiagnosis = '诊断依据';
|
|
|
+ const supplyDiagnosis = $('#anchor1973 p').text();
|
|
|
|
|
|
/** 鉴别诊断 */
|
|
|
- const revisedDiagnosis = '鉴别诊断';
|
|
|
+ const revisedDiagnosis = $('#anchor1976 p').text();
|
|
|
|
|
|
/** 诊疗计划(方案) */
|
|
|
- const treatPlan = '诊疗计划(方案)';
|
|
|
+ const treatPlan = $('#anchor1979 p').text();
|
|
|
|
|
|
/** 记录医生 */
|
|
|
- const recDoctor = '记录医生';
|
|
|
+ const recDoctor = $('#anchor1986 p').text();
|
|
|
|
|
|
/** 记录时间 */
|
|
|
- const recDate = '记录时间';
|
|
|
+ const recDate = $('#anchor1988 p').text();
|
|
|
|
|
|
/** 审核医生 */
|
|
|
- const auditDoctor = '审核医生';
|
|
|
+ const auditDoctor = $('#anchor1989 p').text();
|
|
|
|
|
|
/** 审核时间 */
|
|
|
- const auditDate = '审核时间';
|
|
|
+ const auditDate = $('#anchor1992 p').text();
|
|
|
|
|
|
/** 主诊医生 */
|
|
|
- const chiefDoctor = '主诊医生';
|
|
|
+ const chiefDoctor = $('#anchor2025 p').text();
|
|
|
|
|
|
/** 发热 */
|
|
|
- const fever = '发热';
|
|
|
+ const fever = $('#anchor2038 p').text();
|
|
|
|
|
|
/** 咳嗽等呼吸道症状 */
|
|
|
- const coughSymptom = '咳嗽等呼吸道症状';
|
|
|
+ const coughSymptom = $('#anchor2041 p').text();
|
|
|
|
|
|
/** 入院时使用的治疗性药物 */
|
|
|
- const entryMedication = '入院时使用的治疗性药物';
|
|
|
+ const entryMedication = $('#anchor2816 p').text() || "无"
|
|
|
|
|
|
/** 成瘾药物 */
|
|
|
- const addiMedication = '成瘾药物';
|
|
|
+ const addiMedication = $('#anchor2034 p').text();
|
|
|
|
|
|
/** 入院时间 */
|
|
|
- const behospitalDate = '入院时间';
|
|
|
+ const behospitalDate = $('#anchor2027 p').text();
|
|
|
+ const params = {
|
|
|
+ "behospitalCode": behospitalCode, // 入院编码
|
|
|
+ "hospitalId": hospitalId, // 医院 ID
|
|
|
+ "name": name, // 姓名
|
|
|
+ "sex": sex, // 性别
|
|
|
+ "age": age, // 年龄
|
|
|
+ "deptName": deptName, // 科室名称
|
|
|
+ "bedNo": bedNo, // 床号
|
|
|
+ "recordDate": recordDate, // 记录日期
|
|
|
+ "recTitle": recTitle, // 标题
|
|
|
+ "chief": chief, // 主诉
|
|
|
+ "present": present, // 现病史
|
|
|
+ "pastHistory": pastHistory, // 既往史
|
|
|
+ "vital": vital, // 查体
|
|
|
+ "assistantExam": assistantExam, // 辅检
|
|
|
+ "caseCharacter": caseCharacter, // 病例特点
|
|
|
+ "tentativeDiagnosis": tentativeDiagnosis, // 初步诊断
|
|
|
+ "supplyDiagnosis": supplyDiagnosis, // 诊断依据
|
|
|
+ "revisedDiagnosis": revisedDiagnosis, // 鉴别诊断
|
|
|
+ "treatPlan": treatPlan, // 诊疗计划(方案)
|
|
|
+ "recDoctor": recDoctor, // 记录医生
|
|
|
+ "recDate": recDate, // 记录时间
|
|
|
+ "auditDoctor": auditDoctor, // 审核医生
|
|
|
+ "auditDate": auditDate, // 审核时间
|
|
|
+ "chiefDoctor": chiefDoctor, // 主诊医生
|
|
|
+ "fever": fever, // 发热
|
|
|
+ "coughSymptom": coughSymptom, // 咳嗽等呼吸道症状
|
|
|
+ "entryMedication": entryMedication, // 入院时使用的治疗性药物
|
|
|
+ "addiMedication": addiMedication, // 成瘾药物
|
|
|
+ "behospitalDate": behospitalDate // 入院时间
|
|
|
+ };
|
|
|
+
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ post1(api.editFirstRecordInfos, params).then(res => {
|
|
|
+ if (res.data.code === '0') {
|
|
|
+ resolve(true)
|
|
|
+ } else {
|
|
|
+ reject(false)
|
|
|
+ }
|
|
|
|
|
|
+ }).catch(err => {
|
|
|
+ reject(false)
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
}
|
|
|
|